/* ==========================================================================
   PLAY NEW - Base Styles
   Reset + Typography + Essential Utilities
   ========================================================================== */

/* -------------------------------------------------------------------------
   Modern CSS Reset
   ------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: scroll;
}


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

body {
  font-family: var(--font-body);
  font-size: var(--scale-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

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

.link-muted {
  color: var(--color-text-muted);
  text-decoration: none;
}

.link-muted:hover {
  text-decoration: underline;
}

.link-external {
  color: var(--color-text-muted);
  text-decoration: none;
}

.link-external span {
  text-decoration: underline;
}

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text);
}

h1 {
  font-size: 4rem;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h5 {
  font-size: 1rem;
  line-height: 1.4;
}

h6 {
  font-size: 0.875rem;
  line-height: 1.4;
}

p {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  h2 {
    font-size: 2rem;
  }
}

.lead {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   Page Header (title + subtitle)
   ------------------------------------------------------------------------- */

.page-header {
  margin-bottom: clamp(60px, 8vw, 100px);
  text-align: center;
}

.page-header--left {
  text-align: left;
}

.page-header--left .page-title {
  margin-left: -0.04em;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 0 auto 16px;
}

.page-subtitle {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}

/* With CTA button */
.page-header .btn {
  margin-top: var(--space-8);
}

@media (max-width: 1023px) {
  .page-header {
    text-align: left;
  }

  .page-title {
    font-size: clamp(4rem, 14vw, 8rem);
    margin-left: -0.04em;
    margin-right: 0;
  }

  .page-subtitle {
    margin-bottom: 24px;
  }
}

@media (max-width: 767px) {
  .page-header {
    margin-bottom: clamp(48px, 6vw, 60px);
  }

  .page-title {
    font-size: clamp(3rem, 12vw, 5rem);
    margin-bottom: 20px;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .lead {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }
}

/* Article header - for long-form content */
.article-header {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.article-header .lead {
  margin-top: 16px;
}

.mono, code, pre {
  font-family: var(--font-mono);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-dark {
  color: var(--color-text);
}

/* Figure/Box text - single paragraph with label span */
.fig-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.5);
  margin: 0;
}

.fig-text strong {
  color: var(--color-text);
  font-weight: 500;
}

/* Legacy - keep for backwards compatibility */
.fig-label,
.fig-desc {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  display: inline;
}

.fig-label {
  color: var(--color-text);
}

.fig-desc {
  color: rgba(0, 0, 0, 0.5);
}

/* Meta label - small uppercase */
.label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* Big number - for cards, stats, steps */
.num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

@media (max-width: 480px) {
  .num {
    font-size: 1.75rem;
  }
}

/* Big quote - pull quotes */
.big-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

@media (max-width: 767px) {
  .fig-label {
    letter-spacing: -0.01em;
  }

  .big-quote {
    font-size: 1.75rem;
    line-height: 1.25;
  }
}

code {
  font-size: 0.875em;
  background-color: var(--color-bg-alt);
  padding: 0.125em 0.375em;
  border-radius: var(--radius-sm);
}

pre {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

/* -------------------------------------------------------------------------
   Lists
   ------------------------------------------------------------------------- */

.list {
  padding-left: 1.25rem;
  margin: 1rem 0 1.5rem;
  list-style-position: outside;
}

ul.list {
  list-style: disc;
}

ol.list {
  list-style: decimal;
}

.list li {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.7;
  padding: 8px 0;
}

.list li strong {
  font-family: var(--font-display);
  font-weight: 500;
}

.list ol,
.list ul {
  margin: 0.5rem 0 0.5rem 1.5rem;
}

.list a {
  color: var(--color-text);
  text-decoration: none;
}

.list a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Links
   ------------------------------------------------------------------------- */

.prose a:not([class*="btn"]):not([class*="button"]),
.article-content a:not([class*="btn"]):not([class*="button"]) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:not([class*="btn"]):not([class*="button"]):hover,
.article-content a:not([class*="btn"]):not([class*="button"]):hover {
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   Selection & Scrollbar
   ------------------------------------------------------------------------- */

::selection {
  background-color: var(--color-accent);
  color: white;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-text-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   Screen Reader Only
   ------------------------------------------------------------------------- */

.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;
}

/* =========================================================================
   COMPONENTS
   ========================================================================= */

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */

.container--narrow {
  max-width: 83.333%;
  margin-left: auto;
  margin-right: auto;
}

.section {
  margin-bottom: clamp(100px, 15vw, 200px);
}

.section--dark {
  background-color: var(--color-bg-dark);
  margin-left: -24px;
  margin-right: -24px;
  padding: clamp(60px, 10vw, 120px) 24px;
}

.section--dark .container--narrow {
  max-width: 83.333%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1023px) {
  .container--narrow,
  .section--dark .container--narrow {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .section--dark {
    margin-left: -20px;
    margin-right: -20px;
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .section {
    margin-bottom: 80px;
  }

  .section--dark {
    margin-left: -16px;
    margin-right: -16px;
    padding: 48px 16px;
  }
}

/* -------------------------------------------------------------------------
   Block (content section with title)
   ------------------------------------------------------------------------- */

.block {
  margin-bottom: clamp(100px, 15vw, 200px);
}

.block-header {
  margin-bottom: var(--space-10);
}

.block-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 var(--space-6) 0;
}

.block-text {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 800px;
}

.block-title--inverse {
  color: var(--color-text-inverse);
}

.block-text--narrow {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.block-header--narrow {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.block--centered {
  text-align: center;
}

.block--final {
  margin-bottom: 0;
}

.block-meta {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-6) 0;
}

@media (max-width: 767px) {
  .block-title {
    font-size: 2.5rem;
    line-height: 1.15;
  }

  .block-text {
    font-size: 1rem;
  }

  .block--centered {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .block {
    margin-bottom: 80px;
  }
}

/* -------------------------------------------------------------------------
   Grid
   ------------------------------------------------------------------------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-2-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

@media (max-width: 767px) {
  .grid-2,
  .grid-2-wide {
    grid-template-columns: 1fr;
  }

  .grid-2-wide {
    gap: var(--space-6);
  }
}

/* -------------------------------------------------------------------------
   Figure (grey background container)
   ------------------------------------------------------------------------- */

.fig {
  margin: clamp(40px, 5vw, 64px) clamp(-80px, -6vw, -40px);
  padding: clamp(24px, 3vw, 40px);
  background: var(--color-bg-alt);
  border-radius: 20px;
  overflow-x: auto;
}

.fig--light {
  background: rgba(0, 0, 0, 0.02);
}

.fig-row {
  display: flex;
  gap: 12px;
}

.fig-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fig-box--sm {
  border-radius: var(--radius-md);
}

.fig-box--center {
  text-align: center;
}

.fig-box--flex {
  flex: 1;
}

.fig--wide {
  padding: 0;
  background: none;
  margin-left: -200px;
  margin-right: -200px;
}

.fig-caption {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
  margin-top: 32px;
  padding-top: 16px;
}

@media (max-width: 1023px) {
  .fig {
    margin-left: -24px;
    margin-right: -24px;
    border-radius: 0;
    padding: 32px 24px;
  }

  .fig--wide {
    margin-left: -60px;
    margin-right: -60px;
  }
}

@media (max-width: 767px) {
  .fig {
    margin: 40px -20px;
    padding: 28px 20px;
  }

  .fig-row {
    flex-wrap: wrap;
  }

  .fig-box--flex {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
  }

  /* 3 boxes: stack vertically */
  .fig-box--flex:first-child:nth-last-child(3),
  .fig-box--flex:first-child:nth-last-child(3) ~ .fig-box--flex {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .fig--wide {
    margin-left: -20px;
    margin-right: -20px;
  }
}

@media (max-width: 480px) {
  .fig {
    margin: 32px -16px;
    padding: 20px 16px;
  }

  /* Stack all boxes vertically on small screens */
  .fig-box--flex {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* -------------------------------------------------------------------------
   Fig Box (white box inside figure)
   ------------------------------------------------------------------------- */

.fig-box {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: white;
  border-radius: 16px;
}

.fig-box--muted {
  background: rgba(0, 0, 0, 0.05);
}

.fig-box--muted .fig-label {
  color: rgba(0, 0, 0, 0.5);
}

.fig-box .fig-label {
  display: block;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.fig-box .fig-desc {
  color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 1023px) {
  .fig-box {
    padding: 24px 20px;
  }

  .fig-box .fig-label {
    font-size: 1.125rem;
  }
}

@media (max-width: 767px) {
  .fig-box {
    padding: 20px;
    border-radius: 12px;
  }

  .fig-box .fig-label {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
  }
}

@media (max-width: 480px) {
  .fig-box {
    padding: 16px;
    border-radius: 10px;
  }

  .fig-box .fig-label {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
}

/* -------------------------------------------------------------------------
   Phases (horizontal flow diagram)
   ------------------------------------------------------------------------- */

.phases {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.phase {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phase .fig-label {
  font-size: 1rem;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.phase .fig-desc {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.5);
}

.phase--highlight {
  background: var(--color-text);
  flex: 1.5;
}

.phase--highlight .fig-label {
  color: var(--color-text-inverse);
}

.phase--highlight .fig-desc {
  color: rgba(255, 255, 255, 0.7);
}

.phase-arrow {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  color: rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
  .phases {
    flex-direction: column;
    gap: 8px;
  }

  .phase {
    padding: 16px;
  }

  .phase-arrow {
    justify-content: center;
    transform: rotate(90deg);
    font-size: 1rem;
  }
}

/* -------------------------------------------------------------------------
   Card
   ------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-bg-alt);
  border-radius: 20px;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}

.card .num {
  display: block;
  margin-bottom: var(--space-6);
}

.card .fig-label {
  display: block;
  margin-bottom: var(--space-2);
}

.card .fig-desc {
  color: rgba(0, 0, 0, 0.5);
}

/* Card with title separator */
.card--titled .fig-label {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  padding-bottom: var(--space-6);
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-border);
}

.card--titled .num {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.card-kpi {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card .fig-text {
  flex-grow: 0;
  margin-bottom: var(--space-6);
}

.card .fig-text--title {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
}

.block--dark .card .fig-text--title strong {
  color: var(--color-accent);
}

.card-kpi-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-kpi-list {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    border-radius: 16px;
    padding: var(--space-10) var(--space-8);
  }
}

@media (max-width: 480px) {
  .card {
    padding: var(--space-8) var(--space-5);
    border-radius: 10px;
  }
}

/* -------------------------------------------------------------------------
   Compare (from/to boxes)
   ------------------------------------------------------------------------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.compare-box {
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-2xl);
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

/* Staggered reveal for compare boxes */
.compare.reveal .compare-box {
  opacity: 0;
  transform: translateY(20px);
}

.compare.revealed .compare-box {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.compare.revealed .compare-box:nth-child(1) { transition-delay: 0s; }
.compare.revealed .compare-box:nth-child(2) { transition-delay: 0.15s; }

/* Staggered reveal for cards in dark blocks */
.block--dark .cards.reveal .card {
  opacity: 0;
  transform: translateY(30px);
}

.block--dark .cards.revealed .card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.block--dark .cards.revealed .card:nth-child(1) { transition-delay: 0s; }
.block--dark .cards.revealed .card:nth-child(2) { transition-delay: 0.1s; }
.block--dark .cards.revealed .card:nth-child(3) { transition-delay: 0.2s; }
.block--dark .cards.revealed .card:nth-child(4) { transition-delay: 0.3s; }
.block--dark .cards.revealed .card:nth-child(5) { transition-delay: 0.4s; }
.block--dark .cards.revealed .card:nth-child(6) { transition-delay: 0.5s; }

.compare-box--muted {
  background-color: var(--color-text-muted);
}

.compare-box--accent {
  background-color: var(--color-accent);
}

.compare-box .label {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-3);
}

.compare-price {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-3);
}

.compare-desc {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin-bottom: var(--space-6);
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare-list li {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: var(--color-text-inverse);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.compare-list li:last-child {
  border-bottom: none;
}

@media (max-width: 1023px) {
  .compare {
    gap: var(--space-4);
  }

  .compare-box {
    padding: var(--space-8) var(--space-6);
    min-height: 320px;
  }
}

@media (max-width: 767px) {
  .compare {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .compare-box {
    min-height: auto;
    padding: var(--space-10) var(--space-6);
    border-radius: var(--radius-xl);
  }

  .compare-list li {
    font-size: 1.5rem;
    padding: var(--space-2) 0;
  }
}

@media (max-width: 480px) {
  .compare-box {
    padding: var(--space-8) var(--space-5);
    border-radius: var(--radius-lg);
  }

  .compare-list li {
    font-size: 1.5rem;
  }
}

/* -------------------------------------------------------------------------
   Stats
   ------------------------------------------------------------------------- */

.stats {
  display: flex;
  gap: 64px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat .num {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-text-inverse);
}

.stat .label {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 767px) {
  .stats {
    flex-direction: column;
    gap: 24px;
  }
}

/* -------------------------------------------------------------------------
   Gallery (horizontal scroll)
   ------------------------------------------------------------------------- */

.gallery {
  margin: 0 -24px clamp(80px, 12vw, 160px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-row {
  display: flex;
  gap: 16px;
  will-change: transform;
}

.gallery-row--left {
  transform: translateX(-300px);
}

.gallery-row--right {
  transform: translateX(-50px);
}

.gallery-item {
  flex-shrink: 0;
  width: clamp(280px, 35vw, 440px);
  height: clamp(170px, 20vw, 260px);
  background: var(--color-bg-alt);
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 1023px) {
  .gallery {
    gap: 12px;
  }

  .gallery-row {
    gap: 12px;
  }

  .gallery-item {
    width: 320px;
    height: 190px;
    border-radius: 12px;
  }
}

@media (max-width: 767px) {
  .gallery {
    margin: 0 -20px 80px;
    gap: 10px;
  }

  .gallery-row {
    gap: 10px;
  }

  .gallery-item {
    width: 240px;
    height: 145px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .gallery {
    margin: 0 -16px 60px;
    gap: 8px;
  }

  .gallery-row {
    gap: 8px;
  }

  .gallery-item {
    width: 180px;
    height: 110px;
    border-radius: 8px;
  }
}

/* -------------------------------------------------------------------------
   Avatar Scroll (community/faculty cards)
   ------------------------------------------------------------------------- */

.avatar-scroll {
  width: calc(100% + ((100vw - 100%) / 2) * 2 + 48px);
  margin-left: calc(-1 * ((100vw - 100%) / 2) - 24px);
  margin-right: calc(-1 * ((100vw - 100%) / 2) - 24px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avatar-row {
  display: flex;
  gap: 16px;
  will-change: transform;
}

.avatar-row--left {
  transform: translateX(-100px);
}

.avatar-row--right {
  transform: translateX(-50px);
}

.avatar-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 32px 16px 16px;
  background: var(--color-bg-alt);
  border-radius: 100px;
  flex-shrink: 0;
}

.avatar-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--color-border);
  flex-shrink: 0;
}

.avatar-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.avatar-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.avatar-role {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .avatar-scroll {
    margin-left: -20px;
    margin-right: -20px;
  }

  .avatar-card {
    padding: 12px 24px 12px 12px;
    gap: 16px;
  }

  .avatar-photo {
    width: 56px;
    height: 56px;
  }

  .avatar-name {
    font-size: 1.125rem;
  }

  .avatar-role {
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .avatar-scroll {
    margin-left: -16px;
    margin-right: -16px;
  }

  .avatar-card {
    padding: 10px 20px 10px 10px;
    gap: 12px;
  }

  .avatar-photo {
    width: 48px;
    height: 48px;
  }

  .avatar-name {
    font-size: 1rem;
  }

  .avatar-role {
    font-size: 0.875rem;
  }
}

/* -------------------------------------------------------------------------
   Carousel (vertical images scroll)
   ------------------------------------------------------------------------- */

.carousel {
  margin-top: 64px;
  margin-left: -24px;
  margin-right: -24px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  will-change: transform;
  transform: translateX(-100px);
}

.carousel-item {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 9/16;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 1023px) {
  .carousel-item {
    width: 220px;
  }
}

@media (max-width: 767px) {
  .carousel {
    margin-left: -20px;
    margin-right: -20px;
  }

  .carousel-item {
    width: 180px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    width: 150px;
    border-radius: 8px;
  }
}

/* -------------------------------------------------------------------------
   Table
   ------------------------------------------------------------------------- */

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  background: white;
  border-radius: 16px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 20px 24px;
  text-align: left;
}

.table th {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--color-border);
}

.table td {
  border-bottom: 1px solid var(--color-border);
  color: rgba(0, 0, 0, 0.5);
}

.table td:first-child {
  color: var(--color-text);
}

.table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 1023px) {
  .table {
    font-size: 0.875rem;
  }

  .table th,
  .table td {
    padding: 16px 20px;
  }
}

@media (max-width: 767px) {
  .table {
    font-size: 1rem;
    border-radius: 12px;
  }

  .table th,
  .table td {
    padding: 14px 16px;
  }

  .table th {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .table {
    border-radius: 10px;
  }

  .table th,
  .table td {
    padding: 12px 14px;
  }
}

@media (max-width: 375px) {
  .table th,
  .table td {
    padding: 10px 12px;
  }
}

/* -------------------------------------------------------------------------
   TOC (Table of Contents)
   ------------------------------------------------------------------------- */

.toc-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  counter-reset: toc;
}

.toc-list > li {
  counter-increment: toc;
  margin-top: 8px;
}

.toc-list > li:first-child {
  margin-top: 0;
}

.toc-list > li > a {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  text-decoration: none;
}

.toc-list > li > a::before {
  content: counter(toc) ". ";
}

.toc-list > li > a:hover {
  text-decoration: underline;
}

/* Nested list */
.toc-list ol {
  list-style: none;
  padding: 0;
  margin: 0 0 0 1.5rem;
  counter-reset: toc-sub;
}

.toc-list ol li {
  counter-increment: toc-sub;
}

.toc-list ol li a {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  text-decoration: none;
}

.toc-list ol li a::before {
  content: counter(toc) "." counter(toc-sub) " ";
}

.toc-list ol li a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Definition List
   ------------------------------------------------------------------------- */

.def-list {
  margin: 1.5rem 0;
}

.def-list dt {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.def-list dt:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.def-list dd {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 4px;
  margin-left: 0;
}

/* -------------------------------------------------------------------------
   Separator List (items with border)
   ------------------------------------------------------------------------- */

.sep-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.sep-list li {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.7;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.sep-list li:last-child {
  border-bottom: none;
}

.sep-list li strong {
  font-weight: 500;
}

/* -------------------------------------------------------------------------
   Button
   ------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

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

.btn--primary:hover {
  background: #333;
  transform: translateY(-2px) !important;
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    text-align: center;
    display: block;
  }
}

/* -------------------------------------------------------------------------
   Paper (404 page background card)
   ------------------------------------------------------------------------- */

.paper {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* -------------------------------------------------------------------------
   Animations
   ------------------------------------------------------------------------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-down-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes color-shift {
  0%, 100% { color: #0066FF; }
  14% { color: #00BBDD; }
  28% { color: #00AA44; }
  43% { color: #DD9900; }
  57% { color: #FF4400; }
  71% { color: #FF0088; }
  85% { color: #8800FF; }
}

/* -------------------------------------------------------------------------
   Scroll Reveal
   ------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

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

  .block--dark .cards.reveal .card {
    opacity: 1;
    transform: none;
  }

  .block--dark .cards.revealed .card {
    transition: none;
  }
}
