:root {
  /* Colors */
  --color-bg: #f5f5f3;
  --color-text: #0C0A00;
  --color-text-muted: #7d7d7d;
  --color-text-muted-2: #6f6f6f;
  --color-white: #ffffff;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-soft: rgba(0, 0, 0, 0.06);
  --color-line: rgba(0, 0, 0, 0.14);

  /* Footer */
  --color-footer-bg: #0C0A00;
  --color-footer-text: rgba(245, 245, 243, 0.92);
  --color-footer-text-soft: rgba(245, 245, 243, 0.78);
  --color-footer-text-muted: rgba(245, 245, 243, 0.5);

  /* Typography */
  --font-sans: "Inter", sans-serif;
  --font-serif: "Instrument Serif", serif;

  --text-h1: clamp(48px, 7vw, 84px);
  --text-h2: clamp(28px, 4vw, 30px);
  --text-h3: 18px;
  --text-body: 16px;
  --text-small: 14px;
  --text-xs: 12px;
  --text-eyebrow: 24px;

  --lh-tight: 0.96;
  --lh-heading: 1.15;
  --lh-body: 1.65;
  --lh-body-relaxed: 1.75;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 56px;
  --space-11: 72px;
  --space-12: 88px;
  --space-13: 96px;
  --space-14: 120px;

  /* Radius */
  --radius-card: 24px;
  --radius-card-lg: 28px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 12px 24px rgba(0, 0, 0, 0.14);
  --shadow-card-hover: 0 14px 28px rgba(0, 0, 0, 0.08);

  /* Layout */
  --container-width: 1180px;
  --container-width-wide: 1240px;
  --case-study-section-space: 72px;
  --case-study-subsection-space: 36px;
  --playground-world-width: 3800px;
  --playground-world-height: 2800px;
  --playground-nav-safe: 112px;
  --playground-piece-radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: transparent;
  background: var(--color-bg);
}

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

a {
  color: inherit;
}

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

.section {
  padding-left: 24px;
  padding-right: 24px;
  background-color: var(--color-bg);
}

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

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

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}

.section-header-line {
  width: 56px;
  height: 1px;
  background: var(--color-line);
}

.section-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--weight-light);
  font-size: var(--text-eyebrow);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.5);
}

.section-title {
  text-align: center;
  font-size: var(--text-eyebrow);
  line-height: var(--lh-heading);
  letter-spacing: -0.04em;
  font-weight: var(--weight-light);
  color: var(--color-text);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  font-size: var(--text-xs);
  line-height: 1;
  color: var(--color-text-muted);
  white-space: nowrap;
}

  .serif-italic {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: rgba(0, 0, 0, 0.5); 
  }

  body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background-color: transparent;
    background-size: 28px 28px;
  }

  .hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-7) 24px var(--space-11);
    background-color: var(--color-bg);
    background-image: radial-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
    text-align: center;
  }
  
  .hero-time-pill {
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    font-size: var(--text-body);
    font-weight: var(--weight-medium);
  }
  
  .hero-name-row,
  .hero-tagline-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
  }
  
  .hero-name {
    font-size: var(--text-h1);
    line-height: var(--lh-tight);
    letter-spacing: -0.06em;
    font-weight: var(--weight-semibold);
  }
  
  .hero-tagline {
    font-size: var(--text-h1);
    line-height: var(--lh-tight);
    letter-spacing: -0.06em;
    font-weight: var(--weight-medium);
    color: #8a8a8a;
  }
  
  .hero-subtext {
    max-width: 560px;
    font-size: var(--text-body);
    line-height: var(--lh-body);
    color: var(--color-text-muted);
  }
  
  .hero-profile-card {
    width: 112px;
    height: 82px;
    border-radius: var(--radius-card);
    background: #f8f8f8;
    border: 2px solid #111;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    flex-shrink: 0;
  }
  
  .hero-badge-card {
    width: 108px;
    height: 76px;
    border-radius: 22px;
    background: #2b2b2b;
    border: 2px solid #111;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .hero-logo-marquee {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
  }

  .hero-logo-track {
    height: 100%;
    display: flex;
    align-items: center;
    width: max-content;
    padding: 0;
    will-change: transform;
    animation: hero-logo-roll 14s linear infinite;
  }

  .hero-logo-group {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
    flex-shrink: 0;
  }

  .hero-logo-track img {
    height: 44px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
  }

  .hero-logo-track .hero-logo-mando {
    transform: translateY(3px);
  }

  @keyframes hero-logo-roll {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }

  .hero.hero-intro-ready .hero-intro-item {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.985);
    filter: blur(8px);
    will-change: transform, opacity, filter;
  }

  .hero.hero-intro-play .hero-intro-item {
    animation-name: hero-text-reveal;
    animation-duration: 860ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: forwards;
  }

  .hero.hero-intro-ready .hero-anim-text.hero-intro-item,
  .hero.hero-intro-play .hero-anim-text.hero-intro-item {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .hero-anim-text .hero-word {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    filter: blur(4px);
    will-change: transform, opacity, filter;
  }

  .hero-anim-text .hero-letter {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    will-change: transform, opacity;
  }

  .hero.hero-intro-play .hero-anim-text .hero-word {
    animation: hero-word-reveal 680ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    animation-delay: calc(var(--hero-base-delay, 0ms) + var(--word-delay, 0ms));
  }

  .hero.hero-intro-play .hero-anim-text .hero-letter {
    animation: hero-letter-reveal 520ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    animation-delay: calc(
      var(--hero-base-delay, 0ms) + var(--word-delay, 0ms) + var(--letter-delay, 0ms)
    );
  }

  .hero-intro-delay-1 { animation-delay: 0.06s; }
  .hero-intro-delay-2 { animation-delay: 0.14s; }
  .hero-intro-delay-3 { animation-delay: 0.24s; }
  .hero-intro-delay-4 { animation-delay: 0.34s; }
  .hero-intro-delay-5 { animation-delay: 0.45s; }

  @keyframes hero-text-reveal {
    0% {
      opacity: 0;
      transform: translate3d(0, 28px, 0) scale(0.985);
      filter: blur(8px);
    }
    70% {
      opacity: 1;
      transform: translate3d(0, -2px, 0) scale(1);
      filter: blur(0);
    }
    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes hero-word-reveal {
    0% {
      opacity: 0;
      transform: translate3d(0, 16px, 0);
      filter: blur(4px);
    }
    70% {
      opacity: 1;
      transform: translate3d(0, -1px, 0);
      filter: blur(0);
    }
    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0);
      filter: blur(0);
    }
  }

  @keyframes hero-letter-reveal {
    0% {
      opacity: 0;
      transform: translate3d(0, 8px, 0);
    }
    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero.hero-intro-ready .hero-intro-item,
    .hero.hero-intro-play .hero-intro-item {
      opacity: 1;
      transform: none;
      filter: none;
      animation: none;
    }

    .hero-anim-text .hero-word,
    .hero-anim-text .hero-letter {
      opacity: 1;
      transform: none;
      filter: none;
      animation: none;
    }
  }
  
  /* Tablet */
  @media (max-width: 900px) {
    .hero {
      padding: 96px 20px 64px;
    }
  
    .hero-name {
      font-size: clamp(56px, 10vw, 88px);
    }
  
    .hero-tagline {
      font-size: clamp(38px, 7vw, 62px);
    }
  
    .hero-profile-card {
      width: 96px;
      height: 70px;
    }
  
    .hero-badge-card {
      width: 96px;
      height: 68px;
    }

    .hero-logo-track img {
      height: 40px;
    }
  }
  
  /* Mobile */
  @media (max-width: 600px) {
    .hero {
      padding: 88px 16px 56px;
    }
  
    .hero-time-pill {
      top: 24px;
      font-size: 14px;
      padding: 8px 14px;
    }
  
    .hero-content {
      gap: 16px;
    }
  
    .hero-name-row,
    .hero-tagline-row {
      gap: 12px;
    }
  
    .hero-name {
      font-size: 48px;
    }
  
    .hero-tagline {
      font-size: 34px;
    }
  
    .hero-profile-card {
      width: 84px;
      height: 62px;
      border-radius: 20px;
    }
  
    .hero-badge-card {
      width: 82px;
      height: 58px;
      border-radius: 18px;
    }

    .hero-logo-track img {
      height: 34px;
    }
  
    .hero-subtext {
      font-size: 14px;
      max-width: 320px;
    }
  }

  /* --------------------------Work---------------------------- */

  .work-section {
    padding: var(--space-12) 24px var(--space-13);
    background-color: var(--color-bg);
  }
  
  .work-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
  }
  
  .work-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 12px;
  }
  
  .work-header-line {
    width: 56px;
    height: 1px;
    background: var(--color-line);
  }
  
  .work-eyebrow {
    margin: 0;
  }
  
  .work-title {
    margin: 0 0 var(--space-8);
  }
  
  .work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  
  .work-card {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  
  .work-card-image {
    width: 100%;
    aspect-ratio: 1.2 / 0.9;
    border-radius: var(--radius-card-lg);
    overflow: hidden;
    background: #ececea;
    border: 1px solid var(--color-border-soft);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .work-card:hover .work-card-image {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
  }
  
  .work-card-meta {
    margin-top: var(--space-3);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
  }
  
  .work-card-title {
    font-size: var(--text-h3);
    line-height: 1.3;
    font-weight: var(--weight-light);
    color: var(--color-text-muted);
  }
  
  .work-card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-2);
  }
  
  .work-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--color-border-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    font-size: var(--text-xs);
    line-height: 1;
    color: var(--color-text-muted);
    white-space: nowrap;
  }

  @media (max-width: 600px) {
    .work-grid {
      grid-template-columns: 1fr;
    }
  
    .work-card-meta {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .work-card-tags {
      justify-content: flex-start;
    }
  }

  /* --------------------------About---------------------------- */

.about-section {
  padding: calc(var(--space-13) + 16px) 24px calc(var(--space-14) + 16px);
  background-color: var(--color-bg);
}

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

.about-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: var(--space-3);
}

.about-header-line {
  width: 56px;
  height: 1px;
  background: var(--color-line);
}

.about-title {
  margin: 0 0 var(--space-8);
  text-align: center;
  font-size: var(--text-eyebrow);
  line-height: var(--lh-heading);
  letter-spacing: -0.04em;
  font-weight: var(--weight-light);
}

.about-main {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: var(--space-8);
  align-items: stretch;
  margin-bottom: 52px;
}

.about-image-column {
  display: flex;
}

.about-image-card {
  width: 100%;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  background: #ececea;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  aspect-ratio: 1.25 / 0.9;
}

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

.about-text-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-text-group {
  display: flex;
  flex-direction: column;
  font-size: var(--text-body);
  gap: var(--space-6);
}

.about-text-column p {
  margin: 0;
  line-height: var(--lh-body-relaxed);
  color: #262626;
}

.about-note {
  text-align: left;
  padding-top: var(--space-6);
}

.about-note-main {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-text);
}

.about-note-sub {
  margin: var(--space-1) 0 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.about-experience-list {
  width: 100%;
  margin-top: var(--space-6);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.about-bottom {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: var(--space-8);
  align-items: stretch;
}

.about-experience-column,
.about-gallery-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.about-experience-title {
  margin: 0;
  text-align: left;
  font-size: var(--text-eyebrow);
  line-height: var(--lh-heading);
  letter-spacing: -0.04em;
  font-weight: var(--weight-light);
  color: var(--color-text);
}

.about-highlights-header {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.about-exp-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.95fr);
  gap: var(--space-4);
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.about-exp-role {
  min-width: 0;
  font-size: var(--text-small);
  color: var(--color-text);
}

.about-exp-org {
  min-width: 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.about-exp-date {
  min-width: 0;
  font-size: var(--text-small);
  color: var(--color-text);
  text-align: right;
  white-space: nowrap;
}

.about-hover-board {
  margin-top: 0;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.44);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  min-height: 0;
  flex: none;
  overflow: hidden;
}

.about-hover-triggers {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
  width: 48px;
}

.about-hover-trigger {
  flex: 0 0 auto;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-hover-trigger:hover,
.about-hover-trigger:focus-visible,
.about-hover-trigger.is-active {
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.94);
  transform: none;
}

.about-hover-trigger-text {
  font-size: 12px;
  line-height: 1;
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
}

.about-hover-preview {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.about-hover-preview-frame {
  flex: 1;
  height: 100%;
  border-radius: 18px;
  border: none;
  background: transparent;
  min-height: 0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-hover-preview-frame img {
  max-width: 94%;
  max-height: 94%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

/* Tablet */
@media (max-width: 900px) {
  .about-section {
    padding: 80px 20px 100px;
  }

  .about-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-bottom {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text-column p {
    font-size: 17px;
  }

  .about-exp-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .about-hover-board {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .about-highlights-header {
    margin-bottom: var(--space-6);
  }

  .about-hover-triggers {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    order: -1;
  }

  .about-hover-trigger {
    width: 40px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .about-section {
    padding: 72px 16px 88px;
  }

  .about-header-line {
    width: 40px;
  }

  .about-eyebrow {
    font-size: 18px;
  }

  .about-title {
    font-size: 28px;
    margin-bottom: 28px;
  }

  .about-experience-title {
    font-size: 28px;
  }

  .about-text-column p {
    font-size: 16px;
    line-height: 1.7;
  }

  .about-exp-role,
  .about-exp-org,
  .about-exp-date {
    font-size: 14px;
  }

  .about-hover-board {
    padding: var(--space-4);
  }

  .about-hover-preview-frame {
    min-height: 210px;
  }
}

  /* --------------------------NavBar---------------------------- */

  .site-nav {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
  }
  
  .site-nav-inner {
    width: max-content;
    max-width: calc(100% - 32px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 7px 14px;
    border-radius: 999px;
  
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  
    pointer-events: auto;
  }
  
  .site-nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    font-size: var(--text-small);
    font-weight: var(--weight-bold);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
  }
  
  .site-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  
  .site-nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: var(--text-small);
    font-weight: var(--weight-medium);
    line-height: 1;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.24s ease, opacity 0.2s ease, color 0.24s ease;
  }
  
  .site-nav-links a:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .site-nav-links a.is-active {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.86);
  }

  html {
    scroll-behavior: smooth;
  }
  
  /* Keeps scroll anchors from hiding under sticky nav */
  #work,
  #about {
  scroll-margin-top: 110px;
  }
  
  /* Tablet */
  @media (max-width: 900px) {
    .site-nav {
      top: 14px;
    }
  
    .site-nav-inner {
      width: calc(100% - 24px);
      padding: 7px 12px;
    }
  }
  
  /* Mobile */
  @media (max-width: 600px) {
    .site-nav-inner {
      width: calc(100% - 20px);
      padding: 6px 10px;
      gap: 12px;
    }
  
    .site-nav-logo {
      width: 34px;
      height: 34px;
      font-size: 13px;
    }
  
    .site-nav-links {
      gap: 4px;
    }
  
    .site-nav-links a {
      font-size: 13px;
      padding: 7px 10px;
    }
  }

    /* --------------------------Footer---------------------------- */

  .site-footer {
    position: relative;
    overflow: hidden;
    background: #0b0b0b;
    color: #f5f5f3;
    padding: 100px 24px 100px;
  }
  
  .site-footer-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(
        110deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.01) 18%,
        rgba(255, 255, 255, 0) 42%
      ),
      repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.012) 0px,
        rgba(255, 255, 255, 0.012) 2px,
        transparent 2px,
        transparent 24px
      );
    opacity: 0.5;
  }
  
  .site-footer-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 80px;
  }
  
  .site-footer-left {
    max-width: 360px;
  }
  
  .site-footer-heading {
    font-size: 24px;
    line-height: 1.35;
    font-weight: var(--weight-regular);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
    color: rgba(245, 245, 243, 0.92);
  }
  
  .site-footer-sub {
    font-size: var(--text-small);
    line-height: 1.5;
    font-weight: var(--weight-medium);
    margin: 0;
    color: rgba(245, 245, 243, 0.78);
  }
  
  .site-footer-divider {
    width: 175px;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
    margin: 12px 0 12px;
  }
  
  .site-footer-meta {
    margin: 0;
    font-size: var(--text-small);
    line-height: 1.5;
    color: rgba(245, 245, 243, 0.5);
  }

  .site-footer-divider-bottom {
    width: 175px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 12px;
  }
  
  .site-footer-right {
    display: flex;
    gap: 64px;
    align-items: flex-start;
  }
  
  .site-footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .site-footer-links-col a {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    text-decoration: none;
    color: rgba(245, 245, 243, 0.88);
    font-size: var(--text-small);
    line-height: 1.35;
    font-weight: 400;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  
  .site-footer-links-col a span {
    display: inline-block;
    min-width: 22px;
    color: rgba(245, 245, 243, 0.42);
    font-size: var(--text-small);
    line-height: 1.35;
  }
  
  .site-footer-links-col a:hover {
    opacity: 0.65;
    transform: translateX(2px);
  }
  
  /* Tablet */
  @media (max-width: 900px) {
    .site-footer {
      padding: 64px 20px 72px;
    }
  
    .site-footer-container {
      flex-direction: column;
      gap: 40px;
    }
  
    .site-footer-right {
      gap: 48px;
    }
  }
  
  /* Mobile */
  @media (max-width: 600px) {
    .site-footer {
      padding: 56px 16px 64px;
    }
  
    .site-footer-right {
      flex-direction: column;
      gap: 24px;
    }
  
    .site-footer-heading {
      font-size: 17px;
    }
  
    .site-footer-sub,
    .site-footer-meta,
    .site-footer-links-col a,
    .site-footer-links-col a span {
      font-size: 13px;
    }
  }

/* --------------------------Case Study Template---------------------------- */

.case-study-page,
.case-study-page body {
  background: #ffffff;
}

.case-study-page .section {
  background: #ffffff;
}

.case-study-main {
  padding-top: 0;
  --case-study-text-color: #323232;
  --case-study-max-width: 760px;
  --case-study-section-space: 96px;
  --case-study-subsection-space: 56px;
  --case-study-title-gap: 14px;
  --case-study-content-gap: 20px;
}

.casestudysection,
.case-study-section {
  margin-top: var(--case-study-section-space);
}

.casestudySubSection,
.case-study-subsection {
  margin-top: var(--case-study-subsection-space);
}

.case-study-main > .casestudysection:first-child,
.case-study-main > .case-study-section:first-child,
.case-study-main > .casestudySubSection:first-child,
.case-study-main > .case-study-subsection:first-child {
  margin-top: 0;
}

.case-study-page .site-nav {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.case-study-page .site-nav.is-hidden {
  transform: translateY(-120%);
  opacity: 0;
}

.case-progress {
  position: fixed;
  top: 118px;
  left: clamp(16px, 3vw, 40px);
  z-index: 500;
  width: 160px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.case-progress.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.case-progress-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-progress-links a {
  width: fit-content;
  text-decoration: none;
  color: #656565;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, font-size 0.2s ease;
}

.case-progress-links a.is-active {
  color: #000000;
  background: rgba(0, 0, 0, 0.07);
  font-weight: 500;
}

.case-study-page .container {
  max-width: 1180px;
}

.case-study-narrow .container {
  max-width: var(--case-study-max-width);
}

.case-study-hero {
  padding: 0;
}

.case-study-hero .container {
  max-width: none;
}

.case-study-hero-frame {
  border: none;
  border-radius: 0;
  background: #cecece;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  min-height: 640px;
  padding: 76px 0 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.case-study-hero-image {
  width: min(100%, 1160px);
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

.case-study-overview {
  padding: 42px 24px 24px;
}

.case-study-wordmark {
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 500;
  margin-bottom: 12px;
}

.case-study-overview-subtitle {
  font-size: 20px;
  line-height: 1.45;
  color: var(--case-study-text-color);
  margin-bottom: 36px;
}

.case-study-meta-grid--overview {
  margin-top: 40px;
}

.case-study-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  align-items: start;
}

.case-study-meta-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-study-meta-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--case-study-text-color);
  margin: 0 0 8px;
}

.case-study-meta-title + .case-study-meta-title {
  margin-top: 8px;
}

.case-study-copy,
.case-study-meta-value,
.case-study-team-list li {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--case-study-text-color);
}

.case-study-meta-value {
  margin: 0;
}

.case-study-meta-stack .case-study-meta-value + .case-study-meta-title {
  margin-top: 16px;
}

.case-study-team-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.case-study-overview-preview {
  margin-top: 0;
}

.case-study-overview-preview .case-study-copy {
  margin: 0;
  max-width: none;
}

.case-study-intro-callout {
  text-align: center;
  padding-top: 200px;
}

.case-study-intro-callout p {
  margin: 0 auto;
  max-width: none;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #000000;
  padding: 0;
}

.case-study-intro-callout strong {
  font-weight: 500;
}

.case-study-context {
  padding: 0 24px;
  margin-top: calc(var(--case-study-subsection-space) + 24px);
}

.case-study-context-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--case-study-content-gap);
}

.case-study-context-content .case-study-copy {
  margin: 0;
}

.case-study-context-list {
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  counter-reset: context-item;
}

.case-study-context-list li {
  counter-increment: context-item;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 16px;
  line-height: 1.5;
  color: var(--case-study-text-color);
}

.case-study-context-list li::before {
  content: counter(context-item, decimal-leading-zero);
  font-weight: 500;
}

.case-study-context-cta-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.case-study-context-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.case-study-context-image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.case-study-context-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.case-study-problem {
  padding: 0 24px;
  margin-top: calc(var(--case-study-subsection-space) + 24px);
  margin-bottom: 0;
}

.case-study-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.case-study-problem-image {
  width: 100%;
  border: none;
  background: transparent;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.case-study-problem-image span {
  display: flex;
  justify-content: center;
}

.case-study-problem-tomato {
  width: 132%;
  max-width: 650px;
  height: auto;
  transform: translateX(-44px) rotate(-45deg);
  transform-origin: center center;
}

.case-study-problem-content {
  padding-top: 10px;
}

.case-study-problem-number {
  margin: 0 0 12px;
  font-size: clamp(68px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #ec5100;
  font-weight: 500;
}

.case-study-problem-title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 500;
  color: #000000;
}

.case-study-problem-source {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--case-study-text-color);
}

.case-study-research {
  padding: 0 24px;
  margin-top: 0;
}

.case-study-research-intro {
  margin-bottom: 24px;
}

.case-study-research-intro .case-study-copy + .case-study-copy {
  margin-top: 10px;
}

.case-study-research-list {
  margin: 8px 0 0;
  padding-left: 24px;
}

.case-study-research-list li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--case-study-text-color);
}

.case-study-research-map {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  min-height: 420px;
  padding: 36px 34px;
  margin-top: 18px;
  margin-bottom: 22px;
}

.case-study-research-image {
  width: min(58%, 390px);
  margin: 0 auto;
  border: none;
  background: transparent;
}

.case-study-research-orange {
  width: 100%;
  height: auto;
  display: block;
}

.case-study-research-insight {
  margin: 0;
}

.case-study-research-methods {
  margin-top: 40px;
  margin-bottom: 20px;
}

.case-study-research-map-pill {
  position: absolute;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  color: #666666;
}

.case-study-research-map-pill--left-top {
  left: 34px;
  top: 78px;
}

.case-study-research-map-pill--right-top {
  right: 34px;
  top: 116px;
}

.case-study-research-map-pill--left-bottom {
  left: 40px;
  bottom: 56px;
}

.case-study-research-map-pill--right-bottom {
  right: 160px;
  bottom: 32px;
}

.case-study-research-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.case-study-research-stat {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px 30px 26px;
  background: rgba(255, 255, 255, 0.45);
}

.case-study-research-number {
  margin: 0 0 10px;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: #000000;
}

.case-study-research-label {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--case-study-text-color);
}

.case-study-research-insights {
  margin-top: 0;
  display: grid;
  gap: 16px;
}

.case-study-research-insights--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-study-research-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  padding: 24px 26px;
}

.case-study-research-card .case-study-copy {
  text-wrap: pretty;
}

.case-study-research-competitive .case-study-copy {
  margin-bottom: var(--case-study-title-gap);
}

.case-study-research-competitive-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: none;
  background: transparent;
}

.case-study-hmw {
  text-align: center;
}

.case-study-hmw .case-study-meta-title {
  margin-bottom: 12px;
}

.case-study-hmw-text {
  margin: 0 auto;
  max-width: 980px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
  color: #000000;
}

.case-study-hmw-text strong {
  font-weight: 500;
}

.case-study-goals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-study-goal-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.4);
}

.case-study-goal-number {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1;
  color: #000000;
  font-weight: 500;
}

.case-study-goal-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  color: #000000;
  font-weight: 500;
}

.case-study-goal-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--case-study-text-color);
}

.case-study-ideation-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 500;
  color: #000000;
}

.case-study-ideation .case-study-copy + .case-study-copy {
  margin-top: 14px;
}

.case-study-ideation-image {
  width: 100%;
  margin-top: 18px;
}

.case-study-ideation-image-asset {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: none;
  background: transparent;
}

.case-study-ideation-process .case-study-meta-title {
  margin-bottom: 12px;
}

.case-study-ideation-image--process {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  padding: 16px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-study-ideation-image-asset--process {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  border-radius: 10px;
}

.case-study-ideation-process-label {
  margin-top: 42px;
}

.case-study-iterate {
  padding: 0 24px;
}

.case-study-iterate-round .case-study-copy {
  margin-top: 4px;
}

.case-study-iterate-frame {
  min-height: 420px;
  margin-top: 14px;
}

.case-study-iterate-frame .case-study-ideation-image-asset--process {
  border-radius: 0;
}

.case-study-placeholder {
  padding: 0 24px;
  margin-top: calc(var(--case-study-section-space) + 24px);
}

.case-study-placeholder .case-study-copy {
  margin-top: 8px;
}

.case-study-final {
  padding: 0 24px var(--case-study-section-space);
}

.case-study-final-cover {
  width: 100%;
  height: auto;
  display: block;
  margin-top: var(--case-study-title-gap);
  border-radius: 10px;
}

.case-study-final-rows {
  margin-top: var(--case-study-title-gap);
  width: 100%;
  margin-left: 0;
}

.case-study-final-cover + .case-study-final-rows {
  margin-top: 24px;
}

.case-study-final-row {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  justify-items: start;
  justify-content: start;
  width: 100%;
}

.case-study-final-row + .case-study-final-row {
  margin-top: var(--case-study-subsection-space);
}

.case-study-final-media {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  margin-left: -22px;
}

.case-study-final-media img {
  width: 128%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: left center;
  transform: translateX(-34px) scale(1.04);
  transform-origin: left center;
}

.case-study-final-content {
  width: 100%;
}

.case-study-final-content .case-study-meta-title {
  margin-bottom: 8px;
}

.case-study-final-content .case-study-problem-title {
  margin-bottom: 8px;
}

.case-study-final-impact-lead {
  margin: 0;
}

.case-study-final-pillars {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-study-final-pillar-card {
  border: 1px solid #d7dfb8;
  border-radius: 12px;
  background: #dbe5ba;
  padding: 20px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.case-study-final-pillar-icon {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1;
  color: #1c5b42;
  font-weight: 400;
}

.case-study-final-pillar-card .case-study-goal-title {
  color: #1c5b42;
  margin-bottom: 8px;
}

.case-study-final-pillar-card .case-study-goal-copy {
  color: #1c5b42;
}

.case-study-final-next-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.case-study-final-next .case-study-ideation-image--process,
.case-study-final-next .case-study-ideation-image-asset--process {
  border-radius: 0;
}

.case-study-final-next-card {
  border: 1px solid #9e9e9e;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.15);
  padding: 26px 24px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 1180px) {
  .case-study-final-row {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .case-study-final-media {
    justify-content: flex-start;
    margin-left: 0;
  }

  .case-study-final-media img {
    max-width: 280px;
    width: 100%;
    height: auto;
    transform: none;
  }

  .case-study-final-pillars {
    grid-template-columns: 1fr;
  }

  .case-study-final-next-grid {
    grid-template-columns: 1fr;
  }

  .case-study-final-next-card {
    min-height: 260px;
  }
}

@media (max-width: 1280px) {
  .case-progress {
    left: 12px;
  }
}

@media (max-width: 1180px) {
  .case-study-main {
    --case-study-section-space: 72px;
    --case-study-subsection-space: 42px;
  }

  .case-progress {
    display: none;
  }

  .case-study-meta-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-study-problem-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-study-problem-content {
    padding-top: 0;
  }

  .case-study-research-stats,
  .case-study-goals-grid,
  .case-study-research-insights--two {
    grid-template-columns: 1fr;
  }

  .case-study-research-map {
    min-height: 360px;
    padding: 24px 20px;
  }

  .case-study-research-image {
    width: min(80%, 420px);
  }

  .case-study-research-map-pill {
    position: static;
    display: inline-flex;
    margin: 0 8px 8px 0;
  }
}

@media (max-width: 760px) {
  .case-study-main {
    --case-study-section-space: 56px;
    --case-study-subsection-space: 30px;
  }

  .case-study-hero-frame {
    min-height: 480px;
    padding-top: 72px;
  }

  .case-study-overview {
    padding-top: 28px;
  }

  .case-study-wordmark {
    font-size: 52px;
  }

  .case-study-overview-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .case-study-meta-title {
    font-size: 18px;
  }

  .case-study-intro-callout {
    padding-top: 120px;
  }

  .case-study-intro-callout p {
    font-size: 24px;
    padding: 0 12px;
  }

  .case-study-problem-number {
    font-size: 72px;
  }

  .case-study-ideation-title {
    font-size: 20px;
  }

  .case-study-ideation-image--process {
    min-height: 300px;
  }
}

/* --------------------------Playground---------------------------- */
.playground-page {
  background: var(--color-bg);
  min-height: 100vh;
}

.playground-section {
  position: relative;
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--color-bg);
}

.playground-canvas-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-left: calc(50% - 50vw);
}

.playground-scroll-area {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: auto;
  cursor: grab;
  border-radius: 0;
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
  background: transparent;
}

.playground-scroll-area:active {
  cursor: grabbing;
}

.playground-scroll-area.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.playground-scroll-area:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.46);
  outline-offset: 3px;
}

.playground-world {
  position: relative;
  width: var(--playground-world-width);
  height: calc(var(--playground-world-height) + var(--playground-nav-safe));
  padding-top: var(--playground-nav-safe);
  margin: 0 auto;
  transform: translate3d(var(--playground-follow-x, 0px), var(--playground-follow-y, 0px), 0);
  transition: transform 420ms cubic-bezier(0.16, 0.84, 0.22, 1);
}

.playground-center-anchor {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  padding-top: 0;
}

.playground-center-title {
  max-width: min(90vw, 840px);
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: rgba(0, 0, 0, 0.48);
  text-align: center;
}

.playground-center-helper {
  margin-top: var(--space-2);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: var(--text-xs);
  line-height: 1;
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.56);
}

.playground-explore-control {
  position: fixed;
  top: 102px;
  right: 34px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  line-height: 1;
  font-weight: var(--weight-medium);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.playground-explore-control:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.playground-explore-control:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.45);
  outline-offset: 2px;
}

.playground-explore-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  font-size: 13px;
}

.playground-piece {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  z-index: var(--z, 2);
  display: block;
  border-radius: var(--playground-piece-radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  transform: translate3d(0, var(--drift, 0px), 0) rotate(var(--tilt, 0deg));
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 360ms ease;
}

.playground-piece img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

.playground-piece:hover,
.playground-piece:focus-visible {
  transform: translate3d(0, calc(var(--drift, 0px) - 8px), 0)
    rotate(var(--tilt, 0deg))
    scale(1.01);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

  .playground-piece:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.42);
    outline-offset: 2px;
}

.piece-01 { --x: 240px;  --y: 220px;  --w: 360px; --tilt: -0.5deg; --drift: -2px; }
.piece-02 { --x: 820px;  --y: 180px;  --w: 520px; --tilt: 0.4deg;  --drift: 2px; }
.piece-03 { --x: 1540px; --y: 260px;  --w: 360px; --tilt: 0.5deg;  --drift: -1px; }
.piece-04 { --x: 2060px; --y: 190px;  --w: 420px; --tilt: -0.4deg; --drift: 1px; }
.piece-05 { --x: 2620px; --y: 280px;  --w: 390px; --tilt: -0.3deg; --drift: 2px; }
.piece-06 { --x: 3220px; --y: 230px;  --w: 390px; --tilt: 0.4deg;  --drift: -1px; }
.piece-07 { --x: 220px;  --y: 980px;  --w: 430px; --tilt: -0.4deg; --drift: 1px; }
.piece-08 { --x: 940px;  --y: 1040px; --w: 440px; --tilt: 0.5deg;  --drift: -1px; }
.piece-09 { --x: 1680px; --y: 970px;  --w: 350px; --tilt: -0.4deg; --drift: 2px; }
.piece-10 { --x: 2180px; --y: 1030px; --w: 690px; --tilt: 0.3deg;  --drift: 0px; }
.piece-11 { --x: 3060px; --y: 980px;  --w: 500px; --tilt: -0.3deg; --drift: 2px; }
.piece-12 { --x: 240px;  --y: 1840px; --w: 360px; --tilt: -0.4deg; --drift: 1px; }
.piece-13 { --x: 740px;  --y: 1900px; --w: 300px; --tilt: 0.5deg;  --drift: -1px; }
.piece-14 { --x: 1160px; --y: 1830px; --w: 280px; --tilt: -0.4deg; --drift: 2px; }
.piece-15 { --x: 1620px; --y: 1920px; --w: 420px; --tilt: 0.5deg;  --drift: -1px; }
.piece-16 { --x: 2220px; --y: 1820px; --w: 470px; --tilt: -0.4deg; --drift: 2px; }
.piece-17 { --x: 2860px; --y: 1910px; --w: 420px; --tilt: 0.4deg;  --drift: -1px; }
.piece-18 { --x: 760px;  --y: 2520px; --w: 780px; --tilt: -0.2deg; --drift: 1px; }
.piece-19 { --x: 1880px; --y: 2520px; --w: 900px; --tilt: 0.2deg;  --drift: -1px; }

@media (max-width: 1100px) {
  :root {
    --playground-world-width: 3200px;
    --playground-world-height: 2500px;
  }

  .playground-scroll-area {
    height: 100vh;
    min-height: 100vh;
  }

  .playground-explore-control {
    top: 94px;
    right: 20px;
  }
}

@media (max-width: 760px) {
  :root {
    --playground-world-width: 2500px;
    --playground-world-height: 2400px;
  }

  .playground-center-title {
    font-size: clamp(28px, 9vw, 42px);
    max-width: min(90vw, 540px);
  }

  .playground-center-helper {
    font-size: 11px;
    padding: 7px 11px;
  }

  .playground-explore-control {
    top: 88px;
    right: 14px;
    padding: 10px 12px;
  }

  .piece-01 { --x: 110px;  --y: 220px;  --w: 300px; }
  .piece-02 { --x: 540px;  --y: 170px;  --w: 430px; }
  .piece-03 { --x: 1140px; --y: 240px;  --w: 300px; }
  .piece-04 { --x: 1560px; --y: 180px;  --w: 340px; }
  .piece-05 { --x: 2010px; --y: 250px;  --w: 320px; }
  .piece-06 { --x: 110px;  --y: 880px;  --w: 320px; }
  .piece-07 { --x: 560px;  --y: 940px;  --w: 360px; }
  .piece-08 { --x: 1040px; --y: 910px;  --w: 360px; }
  .piece-09 { --x: 1530px; --y: 960px;  --w: 290px; }
  .piece-10 { --x: 1900px; --y: 990px;  --w: 520px; }
  .piece-11 { --x: 130px;  --y: 1540px; --w: 390px; }
  .piece-12 { --x: 650px;  --y: 1640px; --w: 300px; }
  .piece-13 { --x: 1040px; --y: 1590px; --w: 250px; }
  .piece-14 { --x: 1390px; --y: 1660px; --w: 230px; }
  .piece-15 { --x: 1700px; --y: 1600px; --w: 360px; }
  .piece-16 { --x: 2100px; --y: 1660px; --w: 360px; }
  .piece-17 { --x: 560px;  --y: 2140px; --w: 340px; }
  .piece-18 { --x: 980px;  --y: 2140px; --w: 620px; }
  .piece-19 { --x: 1680px; --y: 2140px; --w: 760px; }
}

@media (hover: none) and (pointer: coarse) {
  .playground-piece:hover,
  .playground-piece:focus-visible {
    transform: translate3d(0, var(--drift, 0px), 0) rotate(var(--tilt, 0deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .playground-scroll-area {
    scroll-behavior: auto;
  }

  .playground-piece {
    transition: none;
    transform: none;
  }

  .playground-world {
    transition: none;
    transform: none;
  }

  .playground-piece:hover,
  .playground-piece:focus-visible {
    transform: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  }
}
