/* ── DESIGN TOKENS ────────────────────────────────────────────────────────── */
:root {
  --color-bg:        #f9f8f6;
  --color-surface:   #ffffff;
  --color-text:      #1a1a1a;
  --color-muted:     #6b7280;
  --color-accent:    #7138C8;
  --color-accent-2:  #C4256E;
  --color-accent-3:  #E87B77;
  --color-accent-4:  #F5C280;
  --color-border:    #e5e7eb;

  --font-body:       'Momo Trust Sans', sans-serif;
  --font-display:    'Momo Trust Display', sans-serif;

  --space-sm:        0.75rem;
  --space-md:        1.5rem;
  --space-lg:        3rem;
  --space-xl:        6rem;

  --max-width:       1100px;
  --radius:          12px;
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── BASE ────────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

/* ── HEADER / NAV ────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: calc(var(--space-xl) - 16px);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

header.is-scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

nav {
  max-width: var(--max-width);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

a.logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-transform: lowercase;
  color: var(--color-text);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

nav a:hover {
  color: var(--color-text);
  transform: scale(1.1);
}

.logo:hover {
  transform: scale(1.08);
}

/* active-page indicator — a yellow dot centered behind the current nav
   item's text (or behind the logo, on the homepage) */
nav a,
.logo {
  position: relative;
  z-index: 1;
}

nav a::before,
.logo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  background: var(--cs-pill);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
  z-index: -1;
}

nav a.is-active::before,
.logo.is-active::before {
  transform: translate(-50%, -50%) scale(1);
}

.logo::before {
  width: 38px;
  height: 38px;
}

@media (max-width: 600px) {
  header {
    height: calc(var(--space-xl) - 48px);
  }

  nav {
    padding-inline: calc(var(--space-sm) + 10px);
  }

  a.logo {
    font-size: 1.3rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: opacity 0.2s;
  cursor: pointer;
}

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

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

.btn:hover {
  opacity: 0.75;
}

/* ── HOMEPAGE: HERO ──────────────────────────────────────────────────────── */
#intro {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 700px) {
  #intro {
    min-height: auto;
    padding-bottom: 48px;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
}

@media (max-width: 700px) {
  .hero-content {
    padding-top: var(--space-lg);
    padding-bottom: calc(var(--space-lg) / 2);
  }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-muted);
}

.hero-photo-wrap {
  position: relative;
  width: 255px;
  height: 255px;
  border-radius: 50%;
  opacity: 0;
  animation: photo-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
}

@media (max-width: 700px) {
  .hero-photo-wrap {
    width: 204px;
    height: 204px;
  }
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--color-text);
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hero-float-btn {
  position: absolute;
  z-index: 2;
  animation: remix-float 5s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.hero-float-btn:hover {
  opacity: 1;
}

.hero-float-btn-1 {
  bottom: -4%;
  left: -10%;
  transform: rotate(-6deg);
  animation-delay: 0s;
}

.hero-float-btn-1:hover {
  transform: scale(1.07) rotate(-6deg);
}

.hero-float-btn-2 {
  bottom: 6%;
  right: -12%;
  transform: rotate(4deg);
  animation-delay: 0.8s;
}

.hero-float-btn-2:hover {
  transform: scale(1.07) rotate(4deg);
}

@media (prefers-reduced-motion: reduce) {
  .hero-float-btn {
    animation: none;
  }
}

@media (max-width: 500px) {
  .hero-float-btn {
    font-size: 0.8rem;
    padding: 0.55rem 1.1rem;
  }

  .hero-float-btn-1 {
    left: -4%;
  }

  .hero-float-btn-2 {
    right: -6%;
  }
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cs-pill);
  -webkit-text-fill-color: var(--cs-pill);
  -webkit-text-stroke: 1.5px var(--color-text);
  paint-order: stroke fill;
  text-shadow:
    -0.5px 0.5px 0 var(--color-text),
    -1px 1px 0 var(--color-text),
    -1.5px 1.5px 0 var(--color-text),
    -2px 2px 0 var(--color-text),
    -2.5px 2.5px 0 var(--color-text),
    -3px 3px 0 var(--color-text),
    -3.5px 3.5px 0 var(--color-text);
}

.hero-line {
  display: block;
  margin-bottom: 6px;
}

.hero-line:last-child {
  margin-bottom: 0;
}

.word {
  display: inline-block;
  opacity: 0;
  animation: word-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes photo-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .word {
    animation: none;
    opacity: 1;
  }

  .hero-photo-wrap {
    animation: none;
    opacity: 1;
  }
}

/* ── GRADIENT BLOBS ──────────────────────────────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  /* Yellow — top right */
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 205, 80, 0.4) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation: blob-drift-1 10s ease-in-out infinite;
}

.blob-2 {
  /* Amber — bottom right */
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(240, 175, 90, 0.35) 0%, transparent 70%);
  bottom: -80px;
  right: 80px;
  animation: blob-drift-2 12s ease-in-out infinite;
}

.blob-3 {
  /* Orange — top left, very subtle */
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230, 140, 70, 0.18) 0%, transparent 70%);
  top: -100px;
  left: -150px;
  animation: blob-drift-3 14s ease-in-out infinite;
}

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(var(--rx, 0px), var(--ry, 0px)) scale(1); }
  50% { transform: translate(calc(var(--rx, 0px) - 25px), calc(var(--ry, 0px) + 30px)) scale(1.06); }
}

@keyframes blob-drift-2 {
  0%, 100% { transform: translate(var(--rx, 0px), var(--ry, 0px)) scale(1); }
  50% { transform: translate(calc(var(--rx, 0px) + 20px), calc(var(--ry, 0px) - 25px)) scale(1.05); }
}

@keyframes blob-drift-3 {
  0%, 100% { transform: translate(var(--rx, 0px), var(--ry, 0px)) scale(1); }
  50% { transform: translate(calc(var(--rx, 0px) + 20px), calc(var(--ry, 0px) + 20px)) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .blob-1,
  .blob-2,
  .blob-3 {
    animation: none;
  }
}

/* ── GET IN TOUCH PAGE ───────────────────────────────────────────────────── */
.site-footer-bio h2 {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: var(--space-md);
  margin-left: 16px;
  padding-bottom: 0.05rem;
  border-bottom: 3px solid var(--cs-pill);
}

.site-footer-bio p {
  color: var(--color-muted);
  font-weight: 500;
  max-width: 50ch;
  margin-bottom: var(--space-sm);
}

.hello-section .site-footer-bio {
  max-width: var(--cs-col);
  margin-inline: auto;
}

.hello-section .site-footer-bio p {
  color: var(--cs-muted);
  max-width: none;
}

.site-footer-contact {
  text-align: center;
  margin-bottom: var(--space-md);
}

.site-footer-contact h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.site-footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.site-footer-contact a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.site-footer-contact a:hover {
  color: var(--color-text);
}

.hello-logos {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.hello-logos-label {
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.hello-logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.25rem;
}

.hello-logo {
  height: 26px;
  width: auto;
  max-width: 84px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.hello-logo:hover {
  opacity: 0.75;
}

/* ── WORK PAGE ───────────────────────────────────────────────────────────── */
.work-page {
  background-color: var(--color-bg);
  background-image: radial-gradient(circle, rgba(194, 199, 208, 0.7) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  padding: 3.75rem var(--space-md) 5rem;
}

@media (max-width: 700px) {
  .work-page {
    padding-top: calc(var(--space-lg) / 2);
  }
}

.work-teaser-heading {
  max-width: var(--cs-col);
  margin-inline: auto;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.work-teaser-heading span {
  display: inline-block;
  margin-left: 16px;
  padding-bottom: 0.05rem;
  border-bottom: 3px solid var(--cs-pill);
}

.case-grid {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.work-page .case-grid {
  max-width: 980px;
}

.hello-section .case-grid {
  max-width: none;
  gap: 1.5rem;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-text);
  border-radius: 24px;
  padding: 1rem;
}

.case-card:hover .case-img {
  opacity: 0.88;
  transform: scale(1.01);
}

.case-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--color-text);
  border-radius: 16px;
  transition: opacity 0.25s, transform 0.25s;
}

.case-img-placeholder {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-text);
  border-radius: 16px;
}

.case-img-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--color-text);
  border-radius: 16px;
}

.case-img-frame .case-img {
  border: none;
  border-radius: 0;
  transform: scale(1.1);
  transform-origin: center;
}

.case-card:hover .case-img-frame .case-img {
  transform: scale(1.111);
}

.case-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-left: 8px;
}

.case-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.case-meta {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.case-card-logo {
  height: 28px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
  filter: grayscale(1) brightness(1.3);
  opacity: 0.51;
}

/* ── CASE STUDY PAGE ─────────────────────────────────────────────────────── */
:root {
  --cs-muted:  rgba(0, 0, 0, 0.55);
  --cs-fill:        #f5f5f5;
  --cs-fill-yellow: #fbf7ce;
  --cs-pill:        #f1de00;
  --cs-col:    680px;
  --cs-wide:   784px;
}

/* hero — hugs its content, no fixed width, always centered */
.cs-hero-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  padding-inline: var(--space-md);
  padding-block: var(--space-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cs-hero {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin-inline: auto;
  background: transparent;
  padding: calc(4.5rem + 16px) calc(3rem + 16px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  animation: cs-hero-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes cs-hero-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-hero {
    animation: none;
    opacity: 1;
  }
}

.cs-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  width: 100%;
}

.cs-hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.cs-hero-photo-wrap {
  flex-shrink: 0;
  width: 195px;
  height: 195px;
  border-radius: 50%;
}

.cs-hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-text);
  display: block;
}

@media (max-width: 700px) {
  .cs-hero-wrapper {
    padding-top: var(--space-md);
    padding-bottom: calc(var(--space-md) / 2);
  }

  .cs-hero {
    padding-top: var(--space-lg);
    padding-bottom: calc(var(--space-lg) / 2);
    padding-inline: var(--space-md);
  }

  .cs-hero-row {
    flex-direction: column-reverse;
  }

  .cs-hero-photo-wrap {
    width: 143px;
    height: 143px;
  }
}

.cs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.cs-pill {
  background: var(--cs-pill);
  border-radius: 10px;
  padding: 2px 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  white-space: nowrap;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--cs-muted);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.cs-back:hover {
  gap: 0.6rem;
  color: var(--color-text);
}

.cs-eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-text);
}

.cs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cs-tldr {
  color: var(--cs-muted);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.5;
}

ul.cs-tldr {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

ul.cs-tldr li {
  position: relative;
  padding-left: 1.1rem;
}

ul.cs-tldr li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cs-pill);
}

.cs-tldr a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--cs-pill);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cs-tldr a:hover {
  background: var(--cs-pill);
}

.cs-section p a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--cs-pill);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: background 0.2s;
}

.cs-section p a:hover {
  background: var(--cs-pill);
}

/* content body — dotted background, bordered card, narrow column */
.cs-body-wrapper {
  background-color: var(--color-bg);
  background-image: radial-gradient(circle, rgba(194, 199, 208, 0.7) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  padding-inline: var(--space-md);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

@media (max-width: 700px) {
  .cs-body-wrapper {
    padding-inline: var(--space-sm);
    padding-top: calc(var(--space-lg) / 2);
  }
}

.contact-wrapper {
  min-height: calc(100vh - 89px);
  display: flex;
  align-items: center;
}

.contact-wrapper .cs-body {
  width: 100%;
}

.cs-body {
  max-width: 900px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--color-text);
  border-radius: 40px;
  padding: var(--space-lg) calc(var(--space-xl) - 32px);
}

@media (max-width: 700px) {
  .cs-body {
    padding: var(--space-lg) var(--space-md);
  }
}

.cs-section {
  max-width: var(--cs-col);
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.cs-body > .cs-section:first-child {
  margin-top: 16px;
}

.story-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.story-intro-text {
  flex: 1 1 0%;
  min-width: 0;
}

.story-photo-wrap {
  flex-shrink: 0;
  width: 252px;
  height: 252px;
}

.story-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--color-text);
  border-radius: 16px;
  display: block;
}

.story-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.cs-section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.cs-section p {
  color: var(--cs-muted);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.cs-section ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cs-section li {
  color: var(--cs-muted);
  line-height: 1.6;
}

.cs-note {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-style: italic;
  color: var(--cs-muted);
}

/* brief callout */
.cs-section:has(.cs-brief) {
  margin-bottom: 0;
}

.cs-brief {
  margin: var(--space-lg) 0;
  padding: var(--space-lg) var(--space-lg);
  background: var(--cs-fill);
  border: 1px solid var(--color-text);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cs-brief-line {
  flex-shrink: 0;
  align-self: center;
}

.cs-brief-content {
  flex: 1 1 0;
  min-width: 0;
}

.cs-brief h2 {
  font-size: 1.75rem;
  font-weight: 400;
  text-decoration: none;
  margin-bottom: var(--space-sm);
}

.cs-brief p {
  color: var(--cs-muted);
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* subsections (What I did) */
.cs-subsections {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-heading-tight {
  margin-bottom: 4px;
}

.cs-subsection h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.cs-subsection p {
  color: var(--cs-muted);
  font-weight: 500;
}

/* sample cards */
.cs-sample {
  max-width: var(--cs-wide);
  margin-inline: auto;
  background: var(--cs-fill);
  border: 1px solid var(--color-text);
  border-radius: 48px;
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.cs-sample--1 {
  border-radius: 56px;
  padding: 4rem var(--space-lg);
  margin-bottom: var(--space-md);
}

.cs-sample--2 {
  padding: 12px 56px 48px;
  min-height: 780px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cs-sample--side {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.cs-sample--side .cs-sample-header {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
}

.cs-sample--side .sample-images--phones {
  flex-shrink: 0;
  width: auto;
}

.cs-sample-header {
  margin-bottom: var(--space-md);
}

.cs-sample .sample-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.cs-sample h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.cs-sample p {
  color: var(--color-text);
  font-weight: 500;
  font-size: 1.125rem;
}

.sample-images--docs {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sample-images--docs img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.cs-sample .sample-caption,
.sample-caption {
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--cs-muted);
  text-align: center;
}

.cs-video-embed {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  margin: var(--space-md) auto 0;
  border: 1px solid var(--color-text);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.sample-caption a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.sample-caption a:hover {
  color: var(--cs-muted);
}

.sample-images--phones {
  display: flex;
  justify-content: center;
  gap: 35.08px;
  align-items: start;
  width: 100%;
}

.sample-images--phones img {
  flex: 1 1 0;
  min-width: 0;
  max-width: 213px;
  border: 1px solid var(--color-text);
  border-radius: 26px;
  object-fit: cover;
}

.sample-images--wide-half {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
}

.sample-images--wide-half img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.cs-sample--side .sample-images--wide-half {
  flex-shrink: 0;
  width: auto;
}

/* stats */
.cs-stats {
  max-width: var(--cs-col);
  margin: var(--space-md) auto var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-text);
  border-radius: 20px;
  padding: var(--space-lg) var(--space-md);
}

.cs-stat {
  text-align: left;
}

.stat-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 0.95;
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 4px solid var(--cs-pill);
  max-width: none;
}

.stat-label {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--cs-muted);
  max-width: none;
}

/* final image */
.cs-final-image {
  max-width: var(--cs-wide);
  margin-inline: auto;
  margin-bottom: 0;
  background: var(--cs-fill);
  border: 1px solid var(--color-text);
  border-radius: 24px;
  padding: var(--space-md);
  display: flex;
  justify-content: center;
}

.cs-final-image img {
  width: 100%;
  max-width: 620px;
  object-fit: contain;
  display: block;
}

.cs-launch-post {
  margin-top: -16px;
}

.cs-launch-post-link {
  display: block;
  border: 1px solid var(--color-text);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-launch-post-link:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

/* ── MY STORY PAGE ───────────────────────────────────────────────────────── */
.story-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-muted);
  margin-bottom: var(--space-sm);
}

.story-inline-img {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.story-fig {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-text);
  border-radius: 24px;
  padding: var(--space-lg);
}

.story-fig-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.story-fig-def {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--cs-muted);
  margin-bottom: var(--space-md);
}

.story-fig-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--cs-muted);
  margin-bottom: var(--space-sm);
}

.story-fig-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-legend-swatch {
  width: 14px;
  height: 3px;
  border-radius: 1px;
}

.story-legend-swatch--solid {
  background: var(--cs-pill);
}

.story-legend-swatch--dashed {
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0 4px, transparent 4px 7px);
}

.story-chart-wrap {
  position: relative;
  width: 100%;
  height: 260px;
}

.story-fig figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--cs-muted);
  margin-top: var(--space-sm);
  line-height: 1.5;
}

@media (max-width: 480px) {
  .story-chart-wrap {
    height: 220px;
  }
}

/* ── CASE STUDY FOOTER ───────────────────────────────────────────────────── */
.cs-footer-full {
  background-color: var(--color-bg);
  padding-inline: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.cs-footer-nav {
  max-width: var(--cs-col);
  margin: var(--space-lg) auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.cs-nav-prev,
.cs-nav-next {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  transition: opacity 0.2s;
}

.cs-nav-next {
  align-items: flex-end;
  text-align: right;
}

.cs-nav-prev:hover,
.cs-nav-next:hover {
  opacity: 0.65;
}

.cs-nav-label {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cs-muted);
  transition: transform 0.2s ease;
}

.cs-nav-prev:hover .cs-nav-label {
  transform: translateX(-4px);
}

.cs-nav-next:hover .cs-nav-label {
  transform: translateX(4px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cs-nav-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: var(--cs-pill);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.cs-nav-meta {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cs-muted);
}

.cs-get-in-touch {
  max-width: var(--max-width);
  margin-inline: auto;
  text-align: center;
  padding: var(--space-lg) var(--space-lg) calc(var(--space-xl) * 1.25);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cs-get-in-touch h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.cs-get-in-touch ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cs-get-in-touch a {
  color: var(--cs-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
  text-transform: lowercase;
  transition: color 0.2s;
}

.cs-get-in-touch a:hover {
  color: var(--color-text);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .case-grid,
  .cs-intro,
  .cs-stats,
  .cs-footer-nav {
    grid-template-columns: 1fr;
  }

  .cs-sample {
    padding-inline: var(--space-md);
  }

  .cs-sample--1 {
    padding-inline: var(--space-md);
  }

  .cs-sample--2 {
    min-height: 0;
    padding-top: 4rem;
    padding-inline: var(--space-md);
  }

  .cs-sample--side {
    flex-direction: column;
  }

  .cs-sample p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .sample-images--phones {
    flex-direction: column;
    align-items: center;
  }

  .sample-images--phones img {
    width: 100%;
    max-width: 100%;
  }

  .cs-nav-next {
    align-items: flex-start;
    text-align: left;
  }
}

/* ── SITE FOOTER (universal, all pages) ─────────────────────────────────── */
.site-footer-mini {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.site-footer-mini-photo {
  width: 6.4375rem;
  height: 6.4375rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 4px;
}

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

.site-footer-mini-note {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: -0.005em;
  color: var(--cs-muted);
  line-height: 1.45;
}

/* ── CV PAGE ─────────────────────────────────────────────────────────────── */
.cv-wrapper {
  background-color: var(--color-bg);
  background-image: radial-gradient(circle, rgba(194, 199, 208, 0.7) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  padding: var(--space-lg) var(--space-md);
}

.cv-sheet {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--color-text);
  border-radius: 24px;
  padding: 2.75rem 3.25rem 3rem;
}

.cv-print-btn {
  display: block;
  width: fit-content;
  margin: 0 0 1.25rem auto;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--color-text);
  background: var(--cs-fill-yellow);
  border: 1px solid var(--color-text);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.cv-print-btn:hover {
  background: var(--cs-pill);
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.cv-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-color: var(--cs-pill);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.cv-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--cs-muted);
  margin-top: 0.2rem;
}

.cv-contact {
  text-align: right;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--cs-muted);
  line-height: 1.6;
}

.cv-contact a {
  color: var(--color-text);
}

.cv-section {
  margin-bottom: 1.1rem;
}

.cv-section h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.35rem;
  margin-bottom: 0.9rem;
}

.cv-summary {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--cs-muted);
  line-height: 1.55;
}

.cv-company {
  margin-bottom: 1rem;
}

.cv-company:last-child {
  margin-bottom: 0;
}

.cv-company-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.cv-company-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.cv-company-loc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--cs-muted);
  white-space: nowrap;
}

.cv-role {
  padding-left: 1rem;
  border-left: 2px solid var(--color-border);
  margin-bottom: 0.65rem;
}

.cv-role:last-child {
  margin-bottom: 0;
}

.cv-role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.cv-role-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text);
}

.cv-role-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--cs-muted);
  white-space: nowrap;
}

.cv-role ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cv-role li {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--cs-muted);
  line-height: 1.5;
}

.cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv-skill-pill {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--color-text);
  background: var(--cs-fill-yellow);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  border: 1px solid var(--color-text);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

@media (max-width: 700px) {
  .cv-wrapper {
    padding: var(--space-lg) var(--space-sm);
  }

  .cv-sheet {
    padding: 2rem 1.5rem 2.5rem;
  }

  .cv-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cv-contact {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .cv-company-header,
  .cv-role-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

@media print {
  .cv-no-print {
    display: none !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  body {
    background: #fff;
  }

  .cv-wrapper {
    background: none;
    padding: 0;
  }

  .cv-sheet {
    max-width: 100%;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .cv-header {
    margin-bottom: 0.85rem;
  }

  .cv-name {
    font-size: 1.6rem;
  }

  .cv-summary {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .cv-section {
    margin-bottom: 0.6rem;
  }

  .cv-section:has(.cv-skills) {
    margin-bottom: calc(0.6rem + 5px);
  }

  .cv-section h2 {
    margin-bottom: 0.5rem;
  }

  .cv-company {
    margin-bottom: 0.5rem;
  }

  .cv-company-header {
    margin-bottom: 0.4rem;
  }

  .cv-role {
    margin-bottom: 0.35rem;
  }

  .cv-role-title {
    font-size: 0.8rem;
  }

  .cv-role ul {
    margin-top: 0.25rem;
    gap: 0.15rem;
  }

  .cv-role li {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .cv-skills {
    gap: 0.35rem;
  }

  .cv-skill-pill {
    font-size: 0.6rem;
    padding: 0.15rem 0.45rem;
  }

  @page {
    size: A4;
    margin: 11mm;
  }
}

/* ── BACKSTORY REMIX (experimental, unlinked) ───────────────────────────── */
.remix-page-bg {
  background-color: var(--color-bg);
  background-image: radial-gradient(circle, rgba(194, 199, 208, 0.7) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.remix-hero {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  opacity: 0;
  animation: cs-hero-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@media (prefers-reduced-motion: reduce) {
  .remix-hero {
    animation: none;
    opacity: 1;
  }
}

.remix-photo-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  flex-shrink: 0;
}

.remix-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-text);
  display: block;
}

.remix-pill {
  position: absolute;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
  color: var(--color-text);
  background: var(--cs-pill);
  border: 1px solid var(--color-text);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  box-shadow: -2px 2px 0 var(--color-text);
  animation: remix-float 5s ease-in-out infinite;
}

.remix-pill-1 { top: -18px; left: -22px; transform: rotate(-8deg); animation-delay: 0s; }
.remix-pill-2 { top: 34px; right: -38px; transform: rotate(6deg); animation-delay: 0.6s; }
.remix-pill-3 { bottom: -22px; right: 20px; transform: rotate(-5deg); animation-delay: 1.2s; }
.remix-pill-4 { bottom: -20px; left: 10px; transform: rotate(7deg); animation-delay: 1.8s; }
.remix-pill-5 { top: 140px; left: -44px; transform: rotate(-10deg); animation-delay: 2.4s; }

@keyframes remix-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@media (prefers-reduced-motion: reduce) {
  .remix-pill {
    animation: none;
  }
}

.remix-hero-text {
  max-width: 420px;
}

.remix-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  color: var(--cs-pill);
  -webkit-text-fill-color: var(--cs-pill);
  -webkit-text-stroke: 1.5px var(--color-text);
  paint-order: stroke fill;
  text-shadow:
    -0.5px 0.5px 0 var(--color-text),
    -1px 1px 0 var(--color-text),
    -1.5px 1.5px 0 var(--color-text),
    -2px 2px 0 var(--color-text),
    -2.5px 2.5px 0 var(--color-text),
    -3px 3px 0 var(--color-text),
    -3.5px 3.5px 0 var(--color-text);
}

.remix-hero-text p {
  color: var(--cs-muted);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.5;
}

.remix-hint {
  margin-top: var(--space-sm);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.remix-accordion {
  max-width: 780px;
  margin-inline: auto;
  padding: 0 var(--space-md) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.remix-item {
  min-width: 0;
  border: 1px solid var(--color-text);
  border-radius: 20px;
  background: var(--color-surface);
  overflow: hidden;
}

.remix-item-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1.1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}

.remix-item-title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-text);
}

.remix-item-meta {
  flex-shrink: 0;
  margin-left: auto;
  margin-right: var(--space-md);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--cs-muted);
  white-space: nowrap;
}

.remix-item-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-text);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s ease, background 0.2s ease;
}

.remix-item.is-open .remix-item-icon {
  transform: rotate(45deg);
  background: var(--cs-pill);
}

.remix-item-panel {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.remix-item-panel-inner {
  padding: 0 1.5rem 1.5rem;
}

.remix-item[data-year="whats-next"] .remix-item-panel-inner {
  padding-bottom: calc(1.5rem + 32px);
}

.remix-item-panel-inner p {
  color: var(--cs-muted);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.remix-item-panel-inner p:last-child {
  margin-bottom: 0;
}

.remix-next-photo-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  margin: var(--space-lg) auto 0;
}

.remix-next-pill-1 { top: -14px; left: -28px; transform: rotate(-8deg); animation-delay: 0.3s; }
.remix-next-pill-2 { top: 40px; right: -46px; transform: rotate(6deg); animation-delay: 0.9s; }
.remix-next-pill-3 { bottom: -18px; left: 30px; transform: rotate(-6deg); animation-delay: 1.5s; }

.remix-next-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-text);
  display: block;
}

.remix-achievements {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px dashed var(--color-border);
}

.remix-achievements-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.remix-achievements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.remix-achievements-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.remix-achievements-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--cs-pill);
  border: 1px solid var(--color-text);
}

.remix-case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 2px solid var(--cs-pill);
  padding-bottom: 2px;
  transition: gap 0.2s ease;
}

.remix-case-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cs-pill);
  border: 1px solid var(--color-text);
  font-size: 0.75rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.remix-case-link:hover {
  gap: 0.6rem;
}

.remix-case-link:hover span {
  transform: translateX(2px);
}

.remix-charts-sub {
  color: var(--cs-muted);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.remix-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.remix-fig.story-fig {
  min-width: 0;
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .remix-hero {
    padding-top: calc(var(--space-xl) / 2);
    padding-bottom: calc(var(--space-xl) / 2);
    gap: calc(3rem + 16px);
  }

  .remix-photo-wrap {
    width: 260px;
    height: 260px;
  }

  .remix-pill {
    font-size: 0.72rem;
    padding: 0.4rem 0.8rem;
  }

  .remix-item-meta {
    margin-right: 0;
  }

  .remix-accordion {
    max-width: none;
    padding-inline: 8px;
  }

  .remix-next-photo-wrap {
    width: 220px;
    height: 220px;
  }

  .remix-next-pill-1 { top: -10px; left: -20px; }
  .remix-next-pill-2 { top: 30px; right: -34px; }
  .remix-next-pill-3 { bottom: -14px; left: 22px; }

  .remix-item[data-year="charts"] .remix-item-panel-inner {
    padding-inline: var(--space-sm);
  }

  .remix-charts-grid {
    grid-template-columns: 1fr;
  }
}

/* ── SCROLL REVEAL ────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.remix-item.reveal {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  header {
    transition: none;
  }
}
