/* ==========================================================================
   Caitlin — portfolio · "Playground" style
   ========================================================================== */

:root {
  --ink: #111113;
  --ink-2: #55565C;
  --ink-3: #3D3D42;
  --canvas: #F4F4F2;
  --white: #FFFFFF;
  --tangerine: #FF5B23;
  --sunny: #FFD84D;
  --grape: #C9BEFF;
  --grape-deep: #B4A6FF;
  --pool: #BCD8FF;
  --mint: #B8F0CF;
  --bubblegum: #FFC4DD;
  --note: #C2410C;

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --font-hand: "Caveat", "Comic Sans MS", cursive;

  --line: 2px solid var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--ink-2); }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }

:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 18px; border: var(--line); border-radius: 999px;
  background: var(--sunny); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .container { padding-inline: 16px; } }

/* ---------- Colour + tilt helpers ---------- */

.bg-white { background: var(--white); }
.bg-canvas { background: var(--canvas); }
.bg-tangerine { background: var(--tangerine); }
.bg-sunny { background: var(--sunny); }
.bg-grape { background: var(--grape); }
.bg-pool { background: var(--pool); }
.bg-mint { background: var(--mint); }
.bg-bubblegum { background: var(--bubblegum); }
.bg-ink { background: var(--ink); color: var(--white); }

.tilt { transform: rotate(var(--r, 0deg)); }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.h-hero { font-size: clamp(48px, 6.6vw, 96px); }
.h-section { font-size: clamp(40px, 5.4vw, 76px); }
.h-sub { font-size: clamp(32px, 4vw, 54px); line-height: 1; letter-spacing: -0.04em; }

.lede { font-size: 20px; line-height: 1.6; color: var(--ink-2); max-width: 560px; }
.body-lg { font-size: 19px; line-height: 1.7; color: var(--ink-3); }
.muted { color: var(--ink-2); }

.mono-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.note {
  font-family: var(--font-hand);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--note);
}

.highlight {
  display: inline-block;
  padding: 0 0.12em;
  border: 3px solid var(--ink);
  border-radius: 0.18em;
  background: var(--sunny);
  transform: rotate(var(--r, -3deg));
  box-shadow: 5px 5px 0 var(--ink);
}

/* ---------- Buttons, chips, pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn--sm { min-height: 48px; padding: 0 22px; font-size: 15px; box-shadow: var(--shadow-sm); }
.btn--accent { background: var(--tangerine); }
.btn--ink { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--tangerine); }
.btn--ink:hover { color: var(--white); box-shadow: 6px 6px 0 var(--tangerine); }
.btn--ink.btn--on-accent { box-shadow: 4px 4px 0 var(--white); }
.btn--ink.btn--on-accent:hover { box-shadow: 6px 6px 0 var(--white); }
.btn--outline-light { background: var(--ink); color: var(--white); border-color: var(--white); box-shadow: none; }
.btn--outline-light:hover { color: var(--white); box-shadow: 4px 4px 0 var(--tangerine); }
.btn--block { display: flex; width: 100%; }

.btn svg, .link-arrow svg { width: 18px; height: 18px; flex-shrink: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.tag__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tangerine); }

.section-pill {
  align-self: flex-start;
  padding: 4px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.count-badge {
  padding: 4px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--sunny);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transform: rotate(8deg);
}

.sticker {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--sunny);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  box-shadow: var(--shadow-sm);
}

.star { position: absolute; pointer-events: none; }

.card {
  border: var(--line);
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
}

/* ---------- Scroll progress ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 8px;
  background: var(--white);
  border-bottom: var(--line);
}
.progress__fill {
  position: relative;
  height: 100%;
  width: 0;
  background: var(--tangerine);
}
.progress__fill svg {
  position: absolute;
  right: -11px;
  top: -6px;
  width: 22px;
  height: 22px;
}

/* ---------- Header / nav ---------- */

.site-header { position: relative; z-index: 40; padding-top: 8px; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand__badge {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--line);
  border-radius: 14px;
  background: var(--sunny);
  font-size: 19px;
  transform: rotate(-8deg);
  transition: transform 0.2s ease;
}
.brand:hover .brand__badge { transform: rotate(8deg) scale(1.05); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-pill {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
}
.nav-pill a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.nav-pill a:hover { background: var(--canvas); color: var(--ink); }
.nav-pill a[aria-current="page"] { background: var(--ink); color: var(--white); }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: var(--line);
  border-radius: 16px;
  background: var(--tangerine);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 18px;
  border: var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}
.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 760px) {
  .nav-pill, .nav-actions > .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.is-open .mobile-menu { display: flex; }
  .site-nav { padding-block: 14px; }
}

/* ---------- Home: hero ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: 48px 88px;
}
.hero__copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero__copy .tag { align-self: flex-start; background: var(--white); transform: rotate(-2deg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.hero__note svg { width: 44px; height: 26px; }

.hero__visual { flex: 1 1 440px; min-width: 0; position: relative; }
.hero__stage {
  position: relative;
  height: 580px;
  overflow: hidden;
  border: var(--line);
  border-radius: 36px;
  background: var(--grape);
  box-shadow: var(--shadow-lg);
}
.hero__blob { position: absolute; left: -60px; bottom: -70px; width: 300px; height: 300px; border-radius: 50%; background: var(--grape-deep); }
.hero__phone { position: absolute; width: 40%; }
.hero__phone--a { left: 9%; top: 64px; transform: rotate(-6deg); }
.hero__phone--b { right: 8%; top: 120px; transform: rotate(5deg); }
.hero__float { position: absolute; padding: 6px 14px; border: var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.hero__cursor { position: absolute; right: 18%; bottom: 70px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.hero__cursor span { margin-left: 18px; padding: 3px 10px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--tangerine); font-size: 13px; font-weight: 700; }
.hero__sticker { position: absolute; right: -14px; top: -26px; width: 108px; height: 108px; font-size: 17px; transform: rotate(12deg); }

@media (max-width: 600px) {
  .hero { gap: 40px; padding-block: 24px 56px; }
  .hero__stage { height: 380px; border-radius: 28px; }
  .hero__phone--a { top: 40px; width: 42%; }
  .hero__phone--b { top: 80px; width: 42%; }
  .hero__sticker { width: 84px; height: 84px; font-size: 14px; right: -6px; top: -22px; }
  .hero__float, .hero__cursor { display: none; }
}

/* ---------- Marquee ---------- */

.marquee-wrap { padding-block: 24px 40px; overflow: hidden; }
.marquee {
  margin-inline: -40px;
  padding-block: 18px;
  border-block: var(--line);
  background: var(--tangerine);
  transform: rotate(-1.5deg);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 32px;
  padding-left: 32px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 600px) { .marquee__track { font-size: 22px; gap: 20px; } }

/* ---------- Logos ---------- */

.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-block: 32px 24px; }
.logos__list { flex: 1 1 560px; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.logos__list li {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border: 2px dashed #8A8B90;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-2);
}

/* ---------- Section heads ---------- */

.section { padding-block: 96px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
}
.section-head__title { display: flex; align-items: flex-start; gap: 14px; }

/* ---------- Project cards ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr));
  gap: 64px 40px;
}
@media (min-width: 760px) {
  .project-grid > .is-offset { margin-top: 40px; }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 14px 14px 24px;
  border: var(--line);
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.project-card:hover { color: var(--ink); transform: rotate(0deg) translate(-3px, -3px); box-shadow: 10px 10px 0 var(--ink); }
a.project-card:hover .arrow-btn { transform: rotate(45deg); }
.project-card[hidden] { display: none; }

.project-card__body { display: flex; flex-direction: column; gap: 10px; padding: 0 10px; }
.project-card__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-card__title { font-family: var(--font-display); font-size: 30px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.project-card__meta { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.project-card__note { position: absolute; left: -12px; top: -30px; transform: rotate(-8deg); }

.arrow-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--tangerine);
  transition: transform 0.2s ease;
}
.arrow-btn svg { width: 20px; height: 20px; }

.stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: var(--line);
  border-radius: 22px;
}
.stage__device { position: absolute; left: 30%; top: 10%; width: 40%; transform: rotate(var(--r, 0deg)); }
.stage__browser { position: absolute; left: 12%; top: 14%; width: 96%; }
.stage__star { right: 10%; top: 12%; width: 44px; height: 44px; transform: rotate(10deg); }

/* Design-system cover */
.ds-cover { position: absolute; inset: 12% 10%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ds-cover > div { border: var(--line); border-radius: 18px; background: var(--white); padding: 14px 16px; }
.ds-cover__buttons { display: flex; flex-direction: column; justify-content: center; gap: 10px; transform: rotate(-3deg); }
.ds-cover__buttons span { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.ds-cover__swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; transform: rotate(2deg); }
.ds-cover__swatches span { border-radius: 10px; }
.ds-cover__toggle { display: flex; align-items: center; gap: 12px; transform: rotate(2deg); font-size: 13px; font-weight: 600; }
.ds-cover__toggle i { position: relative; width: 52px; height: 30px; border-radius: 999px; background: var(--ink); }
.ds-cover__toggle i::after { content: ""; position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--sunny); }
.ds-cover__input { display: flex; flex-direction: column; justify-content: center; gap: 6px; transform: rotate(-2deg); font-size: 12px; font-weight: 600; }
.ds-cover__input i { height: 30px; border: var(--line); border-radius: 10px; }

/* ---------- About teaser ---------- */

.about-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 40px; border-radius: 40px; box-shadow: var(--shadow-lg); }
.about-teaser__photo { position: relative; flex: 0 1 360px; min-width: 240px; }
.about-teaser__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.about-teaser__copy .btn { align-self: flex-start; }
@media (max-width: 600px) { .about-teaser { padding: 24px; border-radius: 30px; gap: 28px; } }

.photo-placeholder {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: var(--line);
  border-radius: 28px;
  background: var(--sunny);
  transform: rotate(var(--r, -3deg));
  overflow: hidden;
}
.photo-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder svg { width: 120px; height: 120px; }
.photo-placeholder .note { color: var(--ink); }
.photo-tag { position: absolute; padding: 6px 14px; border: var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.4; }

.skill-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-chips span { padding: 8px 16px; border: var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.3; }

/* ---------- Dark band + curved hand-off ---------- */

.dark-band { background: var(--ink); color: var(--white); border-radius: 48px 48px 0 0; }
.dark-band .muted { color: #C7C7CE; }
.after-dark { background: var(--ink); }
.after-dark__inner { background: var(--canvas); border-radius: 48px 48px 0 0; }
@media (max-width: 600px) {
  .dark-band, .after-dark__inner { border-radius: 32px 32px 0 0; }
}

.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 2px solid var(--white);
  border-radius: 28px;
  color: var(--ink);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.2s ease;
}
.step-card:hover { transform: rotate(0deg) scale(1.02); }
.step-card__num { font-family: var(--font-display); font-size: 56px; line-height: 1; font-weight: 800; }
.step-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.step-card p { font-size: 16px; line-height: 1.55; }

/* ---------- Testimonials ---------- */

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 36px; }
.quote-card { display: flex; flex-direction: column; gap: 24px; padding: 36px; border-radius: 32px; transform: rotate(var(--r, 0deg)); }
.quote-card__mark { font-family: var(--font-display); font-size: 96px; line-height: 0.6; font-weight: 800; }
.quote-card blockquote { font-size: 22px; line-height: 1.45; font-weight: 500; }
.quote-card figcaption { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.4; }
.quote-card figcaption strong { display: block; font-size: 16px; }
.avatar { flex-shrink: 0; width: 52px; height: 52px; border: var(--line); border-radius: 50%; background: var(--white); }

/* ---------- CTA + footer ---------- */

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 88px 32px;
  text-align: center;
  border: var(--line);
  border-radius: 44px;
  background: var(--tangerine);
  box-shadow: 10px 10px 0 var(--ink);
}
.cta h2 { max-width: 900px; font-size: clamp(42px, 6.4vw, 92px); line-height: 0.92; }
.cta p { font-size: 20px; font-weight: 500; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; padding: 56px 48px; text-align: left; border-radius: 40px; box-shadow: var(--shadow-lg); }
.cta--row h2 { max-width: 680px; font-size: clamp(36px, 4.4vw, 60px); }
@media (max-width: 600px) { .cta { padding: 48px 20px; border-radius: 30px; box-shadow: var(--shadow); } }

.site-footer { padding-bottom: 40px; display: flex; flex-direction: column; gap: 24px; }
.wordmark { font-family: var(--font-display); font-size: clamp(72px, 15vw, 220px); line-height: 0.85; letter-spacing: -0.06em; font-weight: 800; }
.wordmark span { color: var(--tangerine); }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: var(--line); font-size: 14px; color: var(--ink-2); }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s ease;
}
.social a:hover { background: var(--sunny); color: var(--ink); }
.dark-band .footer-bar { border-top-color: #3A3A40; color: #C7C7CE; }
.dark-band .social a { background: transparent; border-color: var(--white); color: var(--white); }
.dark-band .social a:hover { background: var(--white); color: var(--ink); }

/* ---------- Work page ---------- */

.page-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-block: 48px 40px; }
.page-intro__title { display: flex; align-items: flex-start; gap: 16px; }
.page-intro__title h1 { font-size: clamp(72px, 11vw, 160px); line-height: 0.85; letter-spacing: -0.06em; }
.page-intro__title .count-badge { margin-top: 12px; font-size: 18px; transform: rotate(10deg); }

.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.filter-btn {
  min-height: 48px;
  padding: 0 22px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.filter-btn:hover { transform: translate(-1px, -1px); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: 3px 3px 0 var(--tangerine); }

.playground-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.play-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 28px;
  border: 2px solid var(--white);
  border-radius: 28px;
  color: var(--ink);
  overflow: hidden;
  transform: rotate(var(--r, 0deg));
}
.play-tile__label { font-family: var(--font-mono); font-size: 13px; }
.play-toggle { position: relative; width: 108px; height: 60px; border: var(--line); border-radius: 999px; background: var(--ink); }
.play-toggle::after { content: ""; position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border-radius: 50%; background: var(--tangerine); }
.play-slider { position: relative; width: 70%; height: 10px; border: var(--line); border-radius: 999px; background: var(--white); }
.play-slider::before { content: ""; position: absolute; inset: 0 36% 0 0; border-radius: 999px; background: var(--ink); }
.play-slider::after { content: ""; position: absolute; left: 64%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: var(--line); border-radius: 50%; background: var(--white); }
.bubble { max-width: 80%; padding: 12px 16px; border: var(--line); font-size: 15px; line-height: 1.4; }
.bubble--in { align-self: flex-start; border-radius: 20px 20px 20px 6px; background: var(--white); }
.bubble--out { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--ink); color: var(--white); }
.typing { display: inline-flex; gap: 5px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 50% { opacity: 0.25; } }
.like-btn { width: 112px; height: 112px; display: flex; align-items: center; justify-content: center; border: var(--line); border-radius: 50%; background: var(--tangerine); box-shadow: 5px 5px 0 var(--ink); cursor: pointer; transition: transform 0.15s ease; }
.like-btn svg { width: 52px; height: 52px; transition: transform 0.2s ease; }
.like-btn[aria-pressed="true"] svg path { fill: var(--sunny); }
.like-btn:active svg { transform: scale(0.8); }
.play-tile .stage__device { left: 25%; top: 14%; width: 50%; }

/* ---------- Case study ---------- */

.back-link { align-self: flex-start; min-height: 44px; box-shadow: none; }
.back-link:hover { box-shadow: var(--shadow-sm); }

.cs-head { display: flex; flex-direction: column; gap: 26px; padding-block: 24px 56px; }
.cs-head h1 { max-width: 1100px; font-size: clamp(50px, 7.6vw, 112px); line-height: 0.92; letter-spacing: -0.05em; }
.cs-head .lede { max-width: 720px; font-size: 21px; }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 12px; }
.meta-grid > div { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: var(--line); border-radius: 20px; transform: rotate(var(--r, 0deg)); }
.meta-grid dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.meta-grid dd { font-size: 17px; font-weight: 700; line-height: 1.4; }

.cs-hero { position: relative; margin-bottom: 96px; }
.cs-hero__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: var(--line); border-radius: 40px; background: var(--grape); box-shadow: 10px 10px 0 var(--ink); }
.cs-hero__blob { position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: var(--grape-deep); }
.phone-trio { position: absolute; inset: 9% 6% auto; display: flex; justify-content: center; align-items: flex-start; gap: 4%; }
.phone-trio > div { width: 26%; }
.phone-trio > .is-raised { width: 29%; margin-top: 0; }
.phone-trio > .is-low { margin-top: 6%; }
@media (max-width: 600px) { .cs-hero__stage { border-radius: 24px; box-shadow: var(--shadow); } }

.cs-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; padding-bottom: 112px; }
.toc { flex: 1 1 220px; max-width: 260px; position: sticky; top: 32px; }
.toc nav { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: var(--line); border-radius: 24px; background: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.toc .note { padding: 4px 12px 10px; font-size: 26px; color: var(--ink); }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 500; }
.toc a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.toc a:hover { background: var(--canvas); color: var(--ink); }
.toc a.is-active { background: var(--sunny); font-weight: 700; }
.toc a.is-active::before { background: var(--tangerine); }
@media (max-width: 900px) {
  .toc { position: static; max-width: none; min-width: 0; flex-basis: 100%; }
  .toc nav { flex-direction: row; align-items: center; gap: 6px; overflow-x: auto; padding: 10px; border-radius: 999px; box-shadow: var(--shadow-sm); scrollbar-width: none; }
  .toc .note { display: none; }
  .toc a { flex-shrink: 0; min-height: 44px; padding: 0 14px; border-radius: 999px; white-space: nowrap; }
  .toc a::before { display: none; }
  .cs-hero { margin-bottom: 56px; }
  .cs-layout { gap: 40px; }
}

.cs-article { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 112px; }
.cs-section { display: flex; flex-direction: column; gap: 22px; scroll-margin-top: 32px; }

.checklist { display: flex; flex-direction: column; gap: 14px; padding: 28px 30px; border-radius: 28px; background: var(--sunny); transform: rotate(-0.6deg); }
.checklist h3 { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.checklist ul { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.5; }
.checklist li { display: flex; gap: 12px; }
.checklist svg { width: 22px; height: 22px; flex-shrink: 0; }

.hmw {
  position: relative;
  margin-top: 8px;
  padding: 40px 40px 36px;
  border: var(--line);
  border-radius: 32px;
  background: var(--bubblegum);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hmw__tag { position: absolute; right: 24px; top: -22px; padding: 4px 14px; border: var(--line); border-radius: 999px; background: var(--white); font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 0; transform: rotate(4deg); }
@media (max-width: 600px) { .hmw { padding: 32px 24px 28px; } }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.mini-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: var(--line); border-radius: 22px; background: var(--white); }
.mini-card .mono-label { font-size: 12px; }
.mini-card span:last-child { font-size: 17px; line-height: 1.5; font-weight: 600; }

.insight-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: var(--line); border-radius: 26px; background: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.insight-card__num { font-family: var(--font-display); font-size: 48px; line-height: 1; font-weight: 800; }
.insight-card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.insight-card p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

.affinity { position: relative; padding: 32px; border: var(--line); border-radius: 32px; background: var(--pool); transform: rotate(-0.5deg); }
.affinity__tag { position: absolute; right: 24px; top: -20px; padding: 4px 14px; border: var(--line); border-radius: 999px; background: var(--white); font-family: var(--font-hand); font-size: 24px; font-weight: 700; line-height: 1.2; transform: rotate(3deg); }
.affinity__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.affinity__cluster { display: flex; flex-direction: column; gap: 10px; }
.affinity__cluster strong { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.affinity__notes { display: flex; flex-wrap: wrap; gap: 8px; }
.affinity__notes i { width: 64px; height: 56px; border: 1.5px solid var(--ink); transform: rotate(var(--r, 0deg)); }

.persona { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.persona__who { display: flex; align-items: center; gap: 14px; }
.persona__avatar { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border: var(--line); border-radius: 50%; background: var(--bubblegum); font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.journey { display: flex; flex-direction: column; gap: 16px; padding: 28px; border: var(--line); border-radius: 28px; background: var(--mint); }
.journey strong { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.journey__stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; }

.sketch-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: var(--line); border-radius: 24px; background: var(--white); transform: rotate(var(--r, 0deg)); }
.sketch-card figcaption { font-family: var(--font-hand); font-size: 24px; font-weight: 700; line-height: 1.1; }
.sketch { aspect-ratio: 3 / 4; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 14px; }
.sketch--paper { background: #FBFBF8; border: 1.5px dashed #8A8B90; }
.sketch--paper i:nth-child(1) { height: 40px; border: 2px solid var(--ink-2); border-radius: 10px; }
.sketch--paper i:nth-child(2) { height: 8px; width: 70%; border-radius: 4px; background: #8A8B90; }
.sketch--paper i:nth-child(3) { height: 8px; width: 50%; border-radius: 4px; background: #8A8B90; }
.sketch--paper i:nth-child(4) { flex: 1; border: 2px solid var(--ink-2); border-radius: 10px; }
.sketch--lofi { background: #EDEDEA; }
.sketch--mid { background: #F6F6FB; }
.sketch__bar { height: 52px; border-radius: 10px; }
.sketch__dots { display: flex; gap: 8px; }
.sketch__dots i { flex: 1; height: 32px; border-radius: 50%; }
.sketch__line { height: 10px; border-radius: 4px; }

.design-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: var(--line); border-radius: 36px; background: var(--mint); box-shadow: var(--shadow-lg); }
.design-stage .phone-trio { inset: 8% 4% auto; gap: 5%; }
.design-stage .phone-trio > div { width: 29%; }
.callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.callouts p { padding: 18px 20px; border: var(--line); border-radius: 20px; background: var(--white); font-size: 16px; line-height: 1.5; }

.video-block {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: var(--line);
  border-radius: 32px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 16px;
}
.video-block button { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); border-radius: 50%; background: var(--tangerine); box-shadow: 5px 5px 0 var(--white); cursor: pointer; transition: transform 0.15s ease; }
.video-block button:hover { transform: scale(1.06); }
.video-block button svg { width: 40px; height: 40px; }
.video-block span { font-size: 17px; font-weight: 600; }

.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.ba-grid figure { display: flex; flex-direction: column; gap: 12px; }
.ba-grid figcaption { font-size: 15px; color: var(--ink-2); }
.ba-stage { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: var(--line); border-radius: 28px; }
.ba-stage .stage__device { left: 28%; width: 44%; }
.ba-stage--before { background: #E4E4E0; }
.ba-stage--before .stage__device { filter: grayscale(1); opacity: 0.75; }
.ba-stage__label { position: absolute; left: 16px; top: 16px; padding: 4px 14px; border: var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; }

.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.result-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border: var(--line); border-radius: 28px; box-shadow: var(--shadow); transform: rotate(var(--r, 0deg)); }
.result-card strong { font-family: var(--font-display); font-size: 64px; line-height: 1; letter-spacing: -0.04em; font-weight: 800; }
.result-card span { font-size: 16px; font-weight: 600; }
.reflection { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding: 28px 30px; border: 2px dashed var(--ink); border-radius: 28px; }

.next-project { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 20px; border: 2px solid var(--white); border-radius: 36px; background: var(--white); color: var(--ink); text-decoration: none; transition: transform 0.2s ease; }
.next-project:hover { color: var(--ink); transform: translateY(-4px); }
.next-project__stage { position: relative; flex: 1 1 400px; aspect-ratio: 16 / 10; overflow: hidden; border: var(--line); border-radius: 24px; background: var(--pool); }
.next-project__stage .stage__browser { left: 10%; width: 100%; }
.next-project__copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; padding: 12px; }
.next-project__copy .chip { align-self: flex-start; }
.next-project__copy .btn { align-self: flex-start; }

/* ---------- About page ---------- */

.about-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-block: 48px 112px; }
.about-hero__copy { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.about-hero__copy > .note { align-self: flex-start; font-size: 34px; transform: rotate(-3deg); }
.about-hero__photo { position: relative; flex: 0 1 440px; min-width: 260px; }
.about-hero__photo .photo-placeholder { border-radius: 36px; box-shadow: var(--shadow-lg); --r: 3deg; }
.about-hero__photo .photo-placeholder svg { width: 150px; height: 150px; }
.about-hero__photo .photo-tag { font-size: 15px; padding: 8px 16px; }

.skill-card { display: flex; flex-direction: column; gap: 16px; padding: 32px; border: 2px solid var(--white); border-radius: 32px; color: var(--ink); transform: rotate(var(--r, 0deg)); }
.skill-card__icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border: var(--line); border-radius: 20px; background: var(--white); }
.skill-card__icon svg { width: 30px; height: 30px; }
.skill-card h3 { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; font-weight: 800; line-height: 1.1; }
.skill-card p { font-size: 17px; line-height: 1.6; }

.timeline { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.timeline li { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 24px 28px; border: var(--line); border-radius: 26px; background: var(--white); }
.timeline li:first-child { box-shadow: 5px 5px 0 var(--ink); }
.timeline li.is-dashed { background: transparent; border-style: dashed; }
.timeline__date { padding: 6px 14px; border: var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.timeline__role { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.timeline__role strong { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; font-weight: 800; line-height: 1.15; }
.timeline__role span { font-size: 16px; color: var(--ink-2); }

.tool-chips { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tool-chips li { padding: 12px 22px; border: var(--line); border-radius: 999px; font-size: 17px; font-weight: 700; box-shadow: var(--shadow-sm); transform: rotate(var(--r, 0deg)); transition: transform 0.15s ease; }
.tool-chips li:hover { transform: rotate(0deg) translateY(-3px); }

.polaroid { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 18px; border: var(--line); border-radius: 24px; background: var(--white); box-shadow: 5px 5px 0 var(--ink); transform: rotate(var(--r, 0deg)); transition: transform 0.2s ease; }
.polaroid:hover { transform: rotate(0deg) scale(1.02); }
.polaroid__img { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 14px; overflow: hidden; }
.polaroid__img svg { width: 64px; height: 64px; }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { font-family: var(--font-hand); font-size: 28px; font-weight: 700; line-height: 1.1; text-align: center; }

/* Project identity covers */
.project-cover {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 4vw, 48px);
}
.project-cover__name {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.project-cover__name > span { color: var(--note); margin-left: 12px; }
.project-cover__caption { font-size: clamp(14px, 1.8vw, 20px); font-weight: 600; }
