/* =========================================================
   Case study pages (shared). Loaded after style.css.
   ========================================================= */

/* ---------- Case hero ---------- */
.cs-hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 24px;
  background: var(--dark);
  color: #e9edf4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0 0 var(--radius) var(--radius);
}
.cs-hero .hero__fibers { position: absolute; inset: 0; }
.cs-hero__head {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.cs-hero__title {
  font-weight: 500;
  font-size: clamp(64px, 8vw, 116px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #f2f4f8;
}
.cs-hero__sub {
  margin: 22px auto 0;
  max-width: 780px;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #d4dae5;
}
.cs-hero__lead {
  margin: 26px auto 0;
  max-width: 470px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: #8a93a3;
}

.cs-hero__screens {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0 24px;
}
/* iPhone frame (pure CSS — the screenshot is shown 1:1, never re-compressed) */
.iphone {
  position: relative;
  width: clamp(220px, 21vw, 300px);
  margin: 0;
}
.iphone__body {
  position: relative;
  padding: 1.6%;                             /* thin, modern bezel */
  border-radius: 11.6% / 5.4%;
  background: #2b2d33;                       /* soft graphite, matches the site ink */
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  will-change: transform;
}
.iphone__screen {
  position: relative;
  aspect-ratio: 859 / 1859;
  border-radius: 9.5% / 4.4%;                /* matches the mockups' own status-bar insets */
  overflow: hidden;
  background: #fff;
  transform: translateZ(0);                  /* crisp clipping in Safari */
}
.iphone__screen img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: -webkit-optimize-contrast;
}
.iphone__island {
  position: absolute;
  left: 50%;
  top: 1.75%;
  width: 25%;
  aspect-ratio: 3.4 / 1;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111215;
}


.cs-meta {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 64px;
  width: calc(100% - 2 * (var(--frame) + 24px));   /* 24px from the visible edge */
}
.cs-meta__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 30px;
  border-radius: 14px;
  background: rgba(22, 24, 30, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a93a3;
}
.cs-meta__bar b { font-weight: 400; color: #e9edf4; margin-left: 8px; }
.cs-meta__bar > :last-child { justify-self: end; }

/* ---------- Light sheet ---------- */
.cs-sheet {
  position: relative;
  z-index: 2;
  margin: 12px var(--frame) 0;
  padding: 120px 0 120px;
  border-radius: var(--sheet-radius);
  background: linear-gradient(160deg, var(--sheet-a) 0%, #eef0f4 40%, var(--sheet-b) 100%);
  color: var(--ink);
}
.cs-statement {
  width: min(960px, calc(100% - 96px));
  margin: 0 auto;
  font-size: clamp(26px, 3.1vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #3b3d43;
}
.cs-statement .w { opacity: 0.16; }

.cs-block {
  width: min(1210px, calc(100% - 128px));
  margin: 120px auto 0;
  display: grid;
  grid-template-columns: minmax(260px, 4fr) 8fr;
  gap: 48px;
}
.cs-block__title {
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: #2f3136;
}
.cs-block__lead {
  margin-top: 14px;
  max-width: 340px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: #6c717c;
}
.cs-rows { list-style: none; }
.cs-rows li {
  display: grid;
  grid-template-columns: 2fr 3fr 32px;          /* fixed tag column keeps every table on one grid */
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.cs-rows li:first-child { border-top: 1px solid var(--line); }
.cs-rows .k { font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: #26282d; }
.cs-rows .v { font-family: var(--serif); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #8b8f98; }
.cs-link { color: #26282d; border-bottom: 1px solid rgba(38, 40, 45, 0.3); transition: border-color 0.3s ease; }
.cs-link:hover { border-color: #26282d; }
.cs-rows .t { font-weight: 500; font-size: 11px; letter-spacing: 0.06em; color: #26282d; }

.footer { margin-top: 0; }


/* ---------- One home screen, three situations ---------- */
.situ {
  width: min(1210px, calc(100% - 128px));
  margin: 120px auto 0;
}
.situ__head {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) 8fr;
  gap: 48px;
  align-items: start;
}
.situ__intro {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: #6c717c;
}
.situ__track { margin-top: 40px; }
.situ__pin {                                   /* no pinning: page keeps flowing */
  display: grid;
  grid-template-columns: minmax(260px, 4fr) 8fr;
  gap: 48px;
  align-items: start;
}
.situ__list {
  position: sticky;                            /* full-height sticky box → text sits mid-screen, never above its column */
  top: 0;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
}
.situ__list { list-style: none; display: flex; gap: 34px; max-width: 470px; }
.situ__item {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0.22;
  filter: blur(0.6px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out), filter 0.7s ease;
}
.situ__item:hover { opacity: 0.5; }
/* swap mode: only the active situation is shown, stacked in one spot */
.situ.is-swap .situ__list { display: grid; align-content: center; }
.situ.is-swap .situ__item { grid-area: 1 / 1; opacity: 1; filter: none; transform: none; transition: none; visibility: hidden; cursor: default; }
.situ.is-swap .situ__item.is-active { visibility: visible; }
.situ__item.is-active { opacity: 1; transform: translateX(10px); filter: none; }
.situ__label {
  display: block;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c717c;
}
.situ__quote {
  margin-top: 10px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.12;
  color: #2f3136;
}
.situ__desc {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: #4b4f58;
}

/* right: panels scroll naturally, one per situation */
.situ__stage { display: grid; gap: 4vh; padding: 0; }
.situ__shot {
  position: relative;
  margin: 0;
  height: min(84vh, 880px);
  border-radius: 32px;
  background: rgba(210, 215, 225, 0.42);
  display: grid;
  place-items: center;
  overflow: hidden;
  will-change: transform, opacity;
}
.situ__pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 48px);
  height: 74%;
}
.situ__pair .situ__phone:last-child { transform: translateY(5%) translateZ(0); }   /* gentle stagger */
.situ__phone {                                  /* flat black iPhone, same as the hero */
  position: relative;
  display: block;
  height: 100%;
  aspect-ratio: 400 / 851;
  padding: 0;                                    /* % padding is relative to the PARENT width → bezel is drawn by sizing the screen instead */
  display: grid;
  place-items: center;
  border-radius: 11% / 5.15%;
  background: #2b2d33;
  box-shadow: 0 30px 60px -40px rgba(24, 30, 52, 0.35);
  transform: translateZ(0);
}
.situ__phone::after {                           /* Dynamic Island */
  content: "";
  position: absolute;
  left: 50%;
  top: 1.6%;
  width: 25%;
  aspect-ratio: 3.4 / 1;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111215;
}
.situ__phone img { display: block; width: 96.8%; height: auto; border-radius: 9.5% / 4.4%; background: #fff; }
.situ__cap { display: none; }

@media (max-width: 1024px) {
  .situ { width: calc(100% - 80px); margin-top: 100px; }
  .situ__head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 767px) {
  .situ { width: calc(100% - 40px); margin-top: 110px; }
  .situ__track { height: auto; margin-top: 32px; }
  .situ__pin { position: static; height: auto; display: block; }
  .situ__list { display: none; }
  .situ__stage { height: auto; background: none; border-radius: 0; overflow: visible; display: grid; gap: 56px; }
  .situ__shot, .situ__shot.is-past { position: relative; opacity: 1; transform: none; filter: none; display: block; }
  .situ__pair { height: auto; gap: 12px; padding: 0 16px; }
  .situ__pair .situ__phone { height: auto; width: calc(50% - 6px); }
  .situ__pair .situ__phone:last-child { transform: none; }
  .situ__shot { padding: 36px 0; border-radius: 24px; background: rgba(210, 215, 225, 0.42); }
  .situ__cap { display: block; margin: 22px 20px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .situ__shot, .situ__item { transition: none; }
}


/* ---------- User journey ---------- */
.jm { width: min(1210px, calc(100% - 128px)); margin: 120px auto 0; }
.jm__head { display: grid; grid-template-columns: minmax(260px, 4fr) 8fr; gap: 48px; align-items: start; }
.jm__lead { font-family: var(--serif); font-size: 15px; line-height: 1.55; color: #6c717c; }   /* full column → ends on the grid's right edge */
.jm__grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 200px repeat(4, minmax(0, 1fr));
  column-gap: 0;                       /* cells touch → row lines run unbroken */
}
.jm__cell {
  padding: 26px 32px 26px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: #4b4f58;
}
.jm__cell:nth-child(5n) { padding-right: 0; }
.jm__last { border-bottom: 1px solid var(--line); }
.jm__k { font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8b8f98; padding-top: 29px; }
.jm__stage { padding-top: 0; border-top: 0; }
.jm__num { display: block; font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; color: #8b8f98; }
.jm__title { margin-top: 10px; font-weight: 500; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: #26282d; }
.jm__goal, .jm__response { color: #26282d; }
.jm__pain { color: #a3402f; }
.jm__actions { list-style: none; display: grid; gap: 8px; }
.jm__actions li { position: relative; }
.jm__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.jm__tag { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: #26282d; background: rgba(255,255,255,.45); }

@media (max-width: 1100px) {
  .jm { width: calc(100% - 80px); margin-top: 100px; }
  .jm__head { grid-template-columns: 1fr; gap: 16px; }
  .jm__grid { grid-template-columns: 140px repeat(4, minmax(210px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
}
@media (max-width: 767px) {
  .jm { width: calc(100% - 40px); margin-top: 110px; }
  .jm__grid { display: block; margin-top: 40px; }
  .jm__block { margin-top: 44px; }
  .jm__cell { padding-right: 0; }
  .jm__cell[data-label]::before { content: attr(data-label); display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8b8f98; }
}


/* ---------- Screen flows (grid of phones) ---------- */
.flow { width: min(1210px, calc(100% - 128px)); margin: 120px auto 0; }
.flow__head { display: grid; grid-template-columns: minmax(260px, 4fr) 8fr; gap: 48px; align-items: start; }
.flow__lead { font-family: var(--serif); font-size: 15px; line-height: 1.55; color: #6c717c; }
.flow { --flow-gap: clamp(24px, 3.4vw, 48px); --flow-w: min(940px, 100%); }
.flow__row {
  display: grid;
  gap: var(--flow-gap);
  margin: 64px auto 0;                         /* centred under the heading */
}
.flow__row--3 { grid-template-columns: repeat(3, 1fr); width: var(--flow-w); }
.flow__row--2 { grid-template-columns: repeat(2, 1fr); width: calc((var(--flow-w) - 2 * var(--flow-gap)) * 2 / 3 + var(--flow-gap)); }
.flow__row + .flow__row { margin-top: var(--flow-gap); }
.flow__sub {
  margin-top: 96px;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #2f3136;
}
.flow__sub + .flow__row { margin-top: 40px; }
.flow__shot { margin: 0; }
.flow__shot .situ__phone { width: 100%; height: auto; box-shadow: 0 20px 40px -32px rgba(24, 30, 52, 0.3); }


@media (max-width: 1024px) {
  .flow { width: calc(100% - 80px); margin-top: 100px; }
  .flow__head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 767px) {
  .flow { width: calc(100% - 40px); margin-top: 90px; }
  .flow { --flow-gap: 14px; --flow-w: 100%; }
  .flow__row { margin-top: 32px; }
  .flow__row--3, .flow__row--2 { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .flow__row--2 { margin-top: 14px; }
  .flow__sub { margin-top: 64px; font-size: 22px; }
  .flow__sub + .flow__row { margin-top: 24px; }
}


/* ---------- Horizontal scroll strip (vertical scroll drives it) ---------- */
.hs { position: relative; margin-top: 40px; }
.hs__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hs__track {
  display: flex;
  gap: clamp(24px, 3vw, 44px);
  padding: 0 max(64px, calc((100% - 1210px) / 2));      /* starts on the content grid */
  will-change: transform;
}
.hs__shot { margin: 0; flex: 0 0 auto; height: min(72vh, 640px); }
.hs__shot .situ__phone { height: 100%; width: auto; box-shadow: 0 20px 40px -32px rgba(24, 30, 52, 0.3); }
@media (max-width: 767px) {
  .hs { margin-top: 28px; }
  .hs__sticky { position: static; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .hs__track { padding: 0 20px; gap: 14px; }
  .hs__shot { height: auto; width: 62vw; scroll-snap-align: center; }
  .hs__shot .situ__phone { width: 100%; height: auto; }
}


/* ---------- Key flows (tabs) ---------- */
.kf { width: min(1210px, calc(100% - 128px)); margin: 120px auto 0; }
.kf__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.kf__tab {
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4b4f58;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.kf__tab:hover { background: rgba(255, 255, 255, 0.8); }
.kf__tab.is-active { background: #26282d; border-color: #26282d; color: #fff; }
.kf__subs { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; min-height: 18px; }
.kf__sub {
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b8f98;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.kf__sub:hover { color: #4b4f58; }
.kf__sub.is-active { color: #26282d; border-color: #26282d; }

.kf__stage {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(260px, 4fr) 8fr;
  gap: 48px;
  align-items: center;
}
.kf__label { display: block; font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8b8f98; }
.kf__title { margin-top: 12px; font-weight: 400; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; color: #2f3136; }
.kf__desc { margin-top: 14px; font-family: var(--serif); font-size: 15px; line-height: 1.55; color: #4b4f58; max-width: 380px; }
.kf__shots { --gap: 28px; display: flex; justify-content: center; gap: var(--gap); }
.kf__shot { margin: 0; flex: 0 0 calc((100% - 2 * var(--gap)) / 3); }   /* same phone size for 2 or 3 screens */
.kf__shot .situ__phone { width: 100%; height: auto; box-shadow: 0 20px 40px -32px rgba(24, 30, 52, 0.3); }

/* ---------- Reflection + next case ---------- */
.cs-statement--end { margin-top: 140px; }
.nextcase {
  width: min(1210px, calc(100% - 128px));
  margin: 140px auto 0;
  display: grid;
  grid-template-columns: 168px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.nextcase__media { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.nextcase__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease-out); }
.nextcase:hover .nextcase__media img { transform: scale(1.06); }
.nextcase__label { display: block; font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8b8f98; }
.nextcase__title { display: block; margin-top: 8px; font-weight: 400; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; color: #26282d; }
.nextcase__title em { font-family: var(--display); font-weight: 300; color: #6c717c; }
.nextcase__arrow {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  font-size: 18px; color: #26282d;
  transition: background 0.4s ease, color 0.4s ease, transform 0.5s var(--ease-out);
}
.nextcase:hover .nextcase__arrow { background: #26282d; color: #fff; transform: translateX(4px); }

@media (max-width: 1024px) {
  .kf, .nextcase { width: calc(100% - 80px); margin-top: 100px; }
  .kf__stage { grid-template-columns: 1fr; gap: 28px; }
  .kf__desc { max-width: none; }
}
@media (max-width: 767px) {
  .kf, .nextcase { width: calc(100% - 40px); }
  .kf__tabs { flex-wrap: nowrap; overflow-x: auto; margin-top: 32px; padding-bottom: 4px; }
  .kf__tab { flex: 0 0 auto; padding: 10px 16px; }
  .kf__subs { gap: 18px; }
  .kf__stage { margin-top: 28px; }
  .kf__shots { --gap: 14px; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 6px; }
  .kf__shot { flex: 0 0 58vw; scroll-snap-align: center; }
  .cs-statement--end { margin-top: 90px; }
  .nextcase { grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 0; }
  .nextcase__media { border-radius: 10px; }
  .nextcase__title { font-size: 19px; }
  .nextcase__title em { display: block; }
  .nextcase__arrow { width: 40px; height: 40px; }
}


/* ---------- Audience ---------- */
.aud { width: min(1210px, calc(100% - 128px)); margin: 120px auto 0; }
.aud__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #8b8f98;
}
.aud__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #26282d; }
.aud__title {
  margin-top: 0;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #26282d;
  max-width: 1000px;
}
.aud__grid { display: grid; grid-template-columns: minmax(260px, 4fr) 8fr; gap: 48px; margin-top: 72px; }
.aud__list { list-style: none; display: grid; gap: 14px; }
.aud__list li { font-size: 17px; line-height: 1.45; color: #6c717c; }
.aud__list b { font-weight: 500; color: #26282d; }
.aud__lead { font-size: 20px; line-height: 1.45; letter-spacing: -0.01em; color: #4b4f58; max-width: 680px; }
.aud--results { margin-top: 140px; }
.aud__note { margin-top: 28px; font-family: var(--serif); font-size: 15px; line-height: 1.55; color: #6c717c; max-width: 560px; }
.aud__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 72px; }
.aud__stat {
  padding: 34px 32px 38px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(17, 18, 20, 0.05);
}
.aud__num { display: block; font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em; color: #26282d; font-variant-numeric: tabular-nums; }
.aud__cap { display: block; margin-top: 16px; font-family: var(--serif); font-size: 15px; line-height: 1.5; color: #6c717c; max-width: 260px; }

@media (max-width: 1024px) {
  .aud { width: calc(100% - 80px); margin-top: 100px; }
  .aud__grid { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
}
@media (max-width: 767px) {
  .aud { width: calc(100% - 40px); margin-top: 90px; }
  .aud__lead { font-size: 17px; }
  .aud__stats { grid-template-columns: 1fr; gap: 12px; margin-top: 48px; }
  .aud__stat { padding: 26px 24px 28px; border-radius: 22px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cs-block { width: calc(100% - 80px); grid-template-columns: 1fr; gap: 32px; margin-top: 100px; }
}
@media (max-width: 767px) {
  .cs-hero { padding-top: 96px; }
  .cs-hero__screens { margin-top: 56px; gap: 14px; }
  .iphone { width: 43vw; }
  .cs-meta__bar { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .cs-meta__bar > :last-child { justify-self: center; }
  .cs-sheet { padding: 80px 0 80px; }
  .cs-statement { width: calc(100% - 48px); }
  .cs-block { width: calc(100% - 40px); margin-top: 100px; }
  .cs-rows li { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .cs-rows .v { grid-column: 1; grid-row: 2; }
  .cs-rows .t { grid-column: 2; grid-row: 1 / span 2; }
}


/* =========================================================
   Trackside & Sport Nation case
   ========================================================= */
.ts-amp {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  margin: 0 0.04em;
  background: linear-gradient(180deg, #e6e9ef 0%, #8a909b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ts-hero .cs-hero__title { font-size: clamp(52px, 6.8vw, 100px); }
.ts-hero .cs-hero__sub { max-width: 820px; }
.ts-hero .cs-hero__lead { max-width: 520px; }

/* two overlapping browser pages */
.ts-pages {
  position: relative;
  z-index: 2;
  margin-top: 70px;
  width: min(1040px, calc(100% - 96px));
  aspect-ratio: 1040 / 520;
}
.ts-page { position: absolute; width: 61.54%; margin: 0; }
.ts-page--back  { left: 0; top: 0; }
.ts-page--front { left: 38.46%; top: 19.23%; }
.ts-page__body {
  aspect-ratio: 640 / 420;
  border-radius: 20px;
  overflow: hidden;
  background: #0b0d12;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  will-change: transform;
  transform: translateZ(0);
}
.ts-page__body img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.cs-meta__bar--4 { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 24px; }

/* two brands */
.ts-brands { width: min(1210px, calc(100% - 128px)); margin: 0 auto; }
.ts-brands__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.ts-brand__name { font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: #2f3136; }
.ts-brand__desc { margin-top: 20px; max-width: 600px; font-family: var(--serif); font-size: 15px; line-height: 1.55; color: #6c717c; }
.ts-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ts-tags li {
  padding: 5px 10px 4px;
  border: 1px solid rgba(17, 18, 20, 0.16);
  border-radius: 999px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: #6c717c;
}
.ts-brand__media { margin-top: 20px; aspect-ratio: 595 / 300; border-radius: 28px; overflow: hidden; background: #0b0d12; transform: translateZ(0); }
.ts-brand__media img { display: block; width: 100%; height: 115%; object-fit: cover; will-change: transform; }

.ts-statement { margin-top: 160px; }

/* file architecture */
.ts-files { width: min(1210px, calc(100% - 128px)); margin: 200px auto 0; }
.ts-files__head { display: grid; grid-template-columns: minmax(260px, 4fr) 8fr; gap: 48px; align-items: start; }
.ts-files__lead { justify-self: end; max-width: 560px; font-family: var(--serif); font-size: 15px; line-height: 1.55; color: #6c717c; }
.ts-files__map { position: relative; isolation: isolate; width: min(820px, 100%); margin: 60px auto 0; display: grid; gap: 64px; }
.ts-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.ts-links path { fill: none; stroke: rgba(38, 40, 45, 0.09); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.ts-links .ts-links__head { fill: none; stroke: rgba(38, 40, 45, 0.13); stroke-width: 1; }
.ts-file { z-index: 1; }
.ts-files__row { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ts-files__row--3 { grid-template-columns: repeat(3, 1fr); gap: 44px; }
.ts-files__row--1 { grid-template-columns: minmax(0, 400px); justify-content: center; }
.ts-file {
  --c: 120, 135, 150;
  position: relative;
  aspect-ratio: 400 / 218;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(70% 80% at 50% -10%, rgba(var(--c), 0.75) 0%, rgba(var(--c), 0) 70%),
    linear-gradient(180deg, #1b2028 0%, #0e1014 100%);
  box-shadow: 0 24px 50px -30px rgba(10, 12, 20, 0.55);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.ts-file:hover { box-shadow: 0 34px 60px -26px rgba(10, 12, 20, 0.7); }
.ts-file--ts   { --c: 82, 108, 132; }
.ts-file--sn   { --c: 140, 34, 38; background: radial-gradient(70% 80% at 50% -10%, rgba(var(--c), 0.8) 0%, rgba(var(--c), 0) 70%), linear-gradient(180deg, #23161a 0%, #0f0f12 100%); }
.ts-file--ds,
.ts-file--core { --c: 165, 168, 172; background: radial-gradient(85% 95% at 50% -15%, rgba(var(--c), 0.9) 0%, rgba(var(--c), 0) 72%), linear-gradient(180deg, #2a2f37 0%, #0e1014 100%); }
.ts-file--sm { aspect-ratio: 260 / 150; }
.ts-file__icon { position: absolute; top: 24px; right: 26px; width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.3; opacity: 0.9; }
.ts-file--sm .ts-file__icon { top: 18px; right: 20px; width: 20px; height: 20px; }
.ts-file__t { position: absolute; left: 24px; bottom: 22px; font-size: 24px; font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; }
.ts-file__t em { display: block; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 28px; letter-spacing: 0; color: rgba(255, 255, 255, 0.82); }
.ts-file--sm .ts-file__t { left: 20px; bottom: 18px; font-size: 19px; }
.ts-file--sm .ts-file__t em { font-size: 20px; }

.ts-files ~ .nextcase { margin-top: 160px; }

@media (max-width: 1024px) {
  .ts-brands, .ts-files { width: calc(100% - 80px); }
  .ts-files__head { grid-template-columns: 1fr; gap: 20px; }
  .ts-files__lead { justify-self: start; }
  .cs-meta__bar--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .ts-pages { width: calc(100% - 40px); margin-top: 48px; }
  .ts-page__body { border-radius: 10px; }
  .cs-meta__bar--4 { grid-template-columns: 1fr; }
  .ts-brands, .ts-files { width: calc(100% - 40px); }
  .ts-brands__grid { grid-template-columns: 1fr; gap: 64px; }
  .ts-brand__name { font-size: 36px; }
  .ts-brand__media { border-radius: 20px; }
  .ts-statement { margin-top: 110px; }
  .ts-files { margin-top: 120px; }
  .ts-files__map { gap: 12px; }
  .ts-links { display: none; }
  .ts-files__row, .ts-files__row--3 { grid-template-columns: 1fr; gap: 12px; }
  .ts-file--sm { aspect-ratio: 400 / 218; }
}

/* ---------- One component, two brands ---------- */
.ts-mode { width: min(1210px, calc(100% - 128px)); margin: 100px auto 0; }
.ts-mode__stage {
  position: relative;
  margin-top: 16px;
  height: 300px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(17, 18, 20, 0.05);
  overflow: hidden;
  touch-action: pan-y;
}
.ts-mode__glow {
  position: absolute; top: 0; bottom: 0; width: 50%;
  opacity: 0; transition: opacity 0.8s var(--ease-out); pointer-events: none;
}
.ts-mode__glow--ts { left: 0;  background: radial-gradient(60% 70% at 50% 55%, rgba(85, 85, 221, 0.14), transparent 70%); }
.ts-mode__glow--sn { right: 0; background: radial-gradient(60% 70% at 50% 55%, rgba(78, 158, 75, 0.16), transparent 70%); }
.ts-mode__stage[data-brand="ts"] .ts-mode__glow--ts,
.ts-mode__stage[data-brand="sn"] .ts-mode__glow--sn { opacity: 1; }
.ts-mode__divider { position: absolute; left: 50%; top: 24px; bottom: 54px; border-left: 1px dashed rgba(17, 18, 20, 0.12); }
.ts-mode__modes { display: grid; grid-template-columns: 1fr 1fr; margin-top: 60px; }
.ts-mode__zone {
  position: relative; justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #a2a6ae; transition: color 0.5s ease;
}
.ts-mode__zone--sn { margin-left: 2px; }
.ts-mode__zone i { display: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transition: background 0.5s ease, transform 0.5s var(--ease-out); }
.ts-mode__zone--ts[aria-pressed="true"] { color: #26282d; }
.ts-mode__zone--sn[aria-pressed="true"] { color: #26282d; }
.ts-mode__zone--ts[aria-pressed="true"] i { background: #5555dd; transform: scale(1.3); }
.ts-mode__zone--sn[aria-pressed="true"] i { background: #4e9e4b; transform: scale(1.3); }
.ts-mode__zone:focus-visible { outline: 1px solid #26282d; outline-offset: 6px; border-radius: 4px; }

.ts-mode__hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8b8f98;
  transition: opacity 0.6s ease;
}
.ts-mode__hint svg { width: 22px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.ts-mode__hint-m { display: none; }
.ts-mode.is-used .ts-mode__hint { opacity: 0; }

/* the component itself — every brand value is a variable */
.ts-player {
  --brand: #5555e5; --surface: #0d112e; --track: #070a1b; --r: 16px; --ar: 8px; --off: #aaa7b2;
  position: absolute; left: 0; top: calc(50% - 14px); z-index: 3;
  width: 420px; margin-top: -74px;
  display: grid; grid-template-columns: 90px 56px 1fr; align-items: center; gap: 16px;
  padding: 16px 16px 20px;
  border-radius: var(--r);
  background: var(--surface);
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(10, 12, 30, 0.55);
  cursor: grab; user-select: none; -webkit-user-select: none;
  transition: background-color 0.5s ease, box-shadow 0.4s ease;
  will-change: transform;
}
.ts-player[data-brand="sn"] { --brand: #23a03e; --surface: #171717; --track: #0a0a0a; --r: 12px; --ar: 6px; --off: #a3a3a3; }
.ts-player.is-drag { cursor: grabbing; box-shadow: 0 40px 70px -28px rgba(10, 12, 30, 0.6); }
.ts-player__art { position: relative; width: 90px; height: 90px; border-radius: var(--ar); overflow: hidden; }
.ts-player__art > span { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; transition: opacity 0.5s ease; }
.ts-player__art-ts { background: #5555dd; gap: 2px; }
.ts-player__art-ts img { width: 70px; display: block; }
.ts-player__art-ts b { justify-self: end; margin-right: 10px; padding: 0 3px; border-radius: 2px; background: #e8284b; font-size: 6px; font-weight: 700; font-style: italic; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.4; }
.ts-player__art-sn { background: linear-gradient(160deg, #417f40 0%, #263027 100%); opacity: 0; }
.ts-player__art-sn img { width: 58px; display: block; }
.ts-player[data-brand="sn"] .ts-player__art-sn { opacity: 1; }
.ts-player[data-brand="sn"] .ts-player__art-ts { opacity: 0; }
.ts-player__play { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); transition: background-color 0.5s ease; }
.ts-player__play svg { width: 24px; height: 24px; fill: #fff; margin-left: 2px; }
.ts-player__meta { display: grid; min-width: 0; }
.ts-player__station { position: relative; font-size: 15px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.ts-player__title { margin-top: 2px; font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-player__time { margin-top: 8px; justify-self: end; font-size: 14px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.9); }
.ts-player__bar { grid-column: 1 / -1; position: relative; height: 4px; border-radius: 4px; background: var(--track); transition: background-color 0.5s ease; }
.ts-player__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 35%; border-radius: 4px; background: var(--brand); transition: background-color 0.5s ease; }
.ts-player__bar b { position: absolute; left: 35%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; }

/* text that differs per brand: [data-ts] / [data-sn] swap with the stage mode */
.ts-mode [data-sn] { display: none; }
.ts-mode.is-sn [data-sn] { display: inline; }
.ts-mode.is-sn [data-ts] { display: none; }
.ts-mode .sw { display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 3px; vertical-align: -1px; background: var(--sw); transition: background 0.5s ease; }
.ts-mode__vars { width: 100%; margin-top: 0; }
@media (min-width: 768px) {
  .ts-mode__vars .cs-rows li { grid-template-columns: 2fr 3fr 48px; }
  .ts-mode__vars .cs-rows .t { justify-self: end; }
}

@media (max-width: 1024px) {
  .ts-mode { width: calc(100% - 80px); }
}
@media (max-width: 767px) {
  .ts-mode { width: calc(100% - 40px); margin-top: 100px; }
  .ts-mode__stage { height: 260px; margin-top: 12px; border-radius: 22px; }
  .ts-mode__divider, .ts-mode__glow { display: none; }
  .ts-mode__pre { display: none; }
  .ts-mode__zone--sn { justify-self: end; }
  .ts-mode__hint-d { display: none; }
  .ts-mode__hint-m { display: inline; }
  .ts-mode__hint svg { display: none; }
  .ts-player { left: 50%; width: min(340px, calc(100% - 32px)); grid-template-columns: 64px 44px 1fr; gap: 12px; padding: 12px; margin-top: -62px; transform: translateX(-50%); cursor: default; }
  .ts-player__art { width: 64px; height: 64px; }
  .ts-player__art-ts img { width: 52px; }
  .ts-player__art-sn img { width: 42px; }
  .ts-player__play { width: 44px; height: 44px; }
  .ts-player__play svg { width: 19px; height: 19px; }
  .ts-player__station { font-size: 12px; }
  .ts-player__title { font-size: 14px; }
  .ts-player__time { font-size: 12px; margin-top: 6px; }
  .ts-mode__vars { margin-top: 0; }
  .ts-mode__modes { margin-top: 40px; }
}

/* drag hint: a soft "finger" ring that grabs the player and pulls it toward the other mode */
.ts-mode__cursor {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18), 0 6px 16px rgba(10, 12, 30, 0.35);
  opacity: 0; pointer-events: none;
}
.ts-mode.is-used .ts-mode__cursor { display: none; }
@media (max-width: 767px) { .ts-mode__cursor { display: none; } }

/* Variables: title sits on the table's top line */
.ts-mode__vars .cs-block__title { margin-top: -9px; }

/* ---------- File map: mirror layout (Trackside | Shared | Sportnation) ---------- */
.ts-mirror {
  width: 100%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto 150px 150px 150px;
  column-gap: 80px;
  row-gap: 56px;
}
.ts-mirror__col {
  grid-row: 1; margin-bottom: -36px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #6c717c;
}
.ts-mirror__col i { width: 7px; height: 7px; border-radius: 50%; background: #8a95a5; }
.ts-mirror__col--ts { grid-column: 1 / 3; }
.ts-mirror__col--ds { grid-column: 3 / 5; }
.ts-mirror__col--sn { grid-column: 5 / 7; }
.ts-mirror__col--ts i { background: #4f6a86; }
.ts-mirror__col--sn i { background: #8c2a2e; }
.ts-mirror__col--ds i { background: #a5a8ad; }
.ts-mirror .ts-file { aspect-ratio: auto; height: 100%; }
.ts-mirror [data-node="ts1"] { grid-column: 1 / 3; grid-row: 2; }
.ts-mirror [data-node="ds"]  { grid-column: 3 / 5; grid-row: 2; }
.ts-mirror [data-node="sn1"] { grid-column: 5 / 7; grid-row: 2; }
.ts-mirror [data-node="ts2"] { grid-column: 1 / 3; grid-row: 3; }
.ts-mirror [data-node="core"]{ grid-column: 3 / 5; grid-row: 3; }
.ts-mirror [data-node="sn2"] { grid-column: 5 / 7; grid-row: 3; }
.ts-mirror [data-node="ts3"] { grid-column: 1 / 4; grid-row: 4; }   /* design masters split the full width */
.ts-mirror [data-node="sn3"] { grid-column: 4 / 7; grid-row: 4; }
.ts-mirror .ts-file__icon { top: 20px; right: 22px; width: 20px; height: 20px; }
.ts-mirror .ts-file__t { left: 22px; bottom: 18px; font-size: 20px; }
.ts-mirror .ts-file__t em { font-size: 23px; }

.ts-chips { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.ts-chip {
  position: relative; flex: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px 0 20px;
  border-radius: 12px;
  color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  background:
    radial-gradient(60% 140% at 50% -40%, rgba(165, 168, 172, 0.55) 0%, rgba(165, 168, 172, 0) 75%),
    linear-gradient(180deg, #262a31 0%, #111318 100%);
  box-shadow: 0 18px 36px -24px rgba(10, 12, 20, 0.55);
}
.ts-chip .ts-file__icon { position: static; order: 2; width: 16px; height: 16px; opacity: 0.8; }

@media (max-width: 1024px) {
  .ts-mirror { column-gap: 44px; grid-template-rows: auto 130px 130px 130px; }
  .ts-mirror .ts-file__t { font-size: 17px; }
  .ts-mirror .ts-file__t em { font-size: 19px; }
}
@media (max-width: 767px) {
  .ts-mirror { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 12px; }
  .ts-mirror__col { display: none; }
  .ts-mirror > [data-node] { grid-column: 1 !important; grid-row: auto !important; height: 130px; }
  .ts-mirror [data-node="ds"] { height: 160px; }
}

/* ---------- Same page, two identities (compare slider) ---------- */
.ts-compare { width: min(1210px, calc(100% - 128px)); margin: 100px auto 0; }
.ts-compare__track { --fh: min(720px, calc(100vh - 140px)); position: relative; margin-top: 60px; height: calc(var(--fh) + 140vh); }
.ts-compare__frame {
  position: sticky; top: calc(50vh - var(--fh) / 2);
  height: var(--fh);
  border-radius: 28px;
  overflow: hidden;
  background: #0b0d16;
  box-shadow: 0 40px 80px -50px rgba(10, 12, 30, 0.55);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
  transform: translateZ(0);
}
.ts-compare__img { position: absolute; inset: 0; overflow: hidden; }
.ts-compare__img--sn { z-index: 0; }
.ts-compare__img--ts { z-index: 1; }
.ts-compare__img img { display: block; width: 100%; height: auto; will-change: transform; pointer-events: none; }
.ts-compare__img .ts-compare__bar { position: absolute; top: 0; left: 0; z-index: 1; will-change: auto; }   /* sticky site header */
.ts-compare__img--ts { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ts-compare__label {
  position: absolute; bottom: 20px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 7px;
  border-radius: 999px;
  background: rgba(12, 14, 20, 0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #e9edf4;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.ts-compare__label i { display: none; }
.ts-compare__label--ts { left: 20px; }
.ts-compare__label--ts i { background: #6b6bf0; }
.ts-compare__label--sn { right: 20px; }
.ts-compare__label--sn i { background: #4fbf4b; }
.ts-compare__frame.is-ts-hidden .ts-compare__label--ts,
.ts-compare__frame.is-sn-hidden .ts-compare__label--sn { opacity: 0; }

.ts-compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4;
  width: 44px; margin-left: -22px;
  display: grid; place-items: center;
  outline: none;
}
.ts-compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -0.5px; background: rgba(255, 255, 255, 0.85); }
.ts-compare__knob {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #26282d;
  box-shadow: 0 8px 24px rgba(10, 12, 30, 0.35);
  transition: transform 0.4s var(--ease-out);
}
.ts-compare__knob svg { width: 22px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ts-compare__frame.is-drag .ts-compare__knob,
.ts-compare__handle:focus-visible .ts-compare__knob { transform: scale(1.12); }

@media (max-width: 1024px) {
  .ts-compare { width: calc(100% - 80px); }
}
@media (max-width: 767px) {
  .ts-compare { width: calc(100% - 40px); }
  .ts-compare__track { --fh: min(560px, calc(100vh - 160px)); margin-top: 40px; height: calc(var(--fh) + 100vh); }
  .ts-compare__frame { border-radius: 20px; }
  .ts-compare__label { bottom: 12px; padding: 6px 10px 5px; font-size: 10px; }
  .ts-compare__label--ts { left: 12px; }
  .ts-compare__label--sn { right: 12px; }
  .ts-compare__knob { width: 38px; height: 38px; }
}

.ts-compare__head { text-align: center; }
.ts-compare__title {
  font-weight: 500;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #3b3d43;
}
.ts-compare__title em {
  display: block;
  margin-top: 0.12em;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.ts-compare__lead { margin: 24px auto 0; max-width: 600px; font-family: var(--serif); font-size: 17px; line-height: 1.55; color: #7a7f88; }
@media (max-width: 767px) { .ts-compare__lead { margin-top: 20px; font-size: 15px; } }

/* page + its looping video scroll together */
.ts-compare__page { position: relative; will-change: transform; }
.ts-compare__page > img { will-change: auto; }
.ts-compare__video { position: absolute; left: 0; width: 100%; object-fit: cover; display: block; pointer-events: none; background: transparent; }

/* fake player controls: a 2-hour stream that keeps playing (units are page-image px via --u) */
.ts-compare__page { container-type: inline-size; }
.fake-ctrl { --u: calc(100cqw / 2400); --p: 15.5%; position: absolute; left: 0; width: 100%; height: calc(82 * var(--u)); pointer-events: none; }
.fake-ctrl--ts { --brand: #5455e1; }
.fake-ctrl--sn { --brand: #2a9c45; }
.fc-patch { position: absolute; left: calc(90 * var(--u)); top: calc(14 * var(--u)); width: calc(36 * var(--u)); height: calc(10 * var(--u)); background: #000; }
.fc-track { position: absolute; left: 0; right: 0; top: 0; height: calc(14 * var(--u)); background: #343538; overflow: hidden; }
.fc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--brand); }
.fc-knob { position: absolute; top: calc(7 * var(--u)); left: var(--p); width: calc(24 * var(--u)); height: calc(24 * var(--u)); margin: calc(-12 * var(--u)) 0 0 calc(-12 * var(--u)); border-radius: 50%; background: #9d9c98; }
.fc-btn { position: absolute; left: calc(26 * var(--u)); top: calc(34 * var(--u)); width: calc(32 * var(--u)); height: calc(32 * var(--u)); background: #000; display: flex; justify-content: center; align-items: center; gap: calc(5 * var(--u)); }
.fc-btn i { width: calc(6 * var(--u)); height: calc(18 * var(--u)); border-radius: calc(1 * var(--u)); background: #ebeaf0; }
.fc-time { position: absolute; left: calc(180 * var(--u)); top: calc(36 * var(--u)); width: calc(134 * var(--u)); height: calc(30 * var(--u)); padding-left: calc(6 * var(--u)); background: #000; color: #ebeaf0; font-family: "Inter", var(--sans); font-weight: 500; font-size: calc(14.5 * var(--u)); line-height: calc(30 * var(--u)); letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }


/* ---------- File map: minimal tiers × products (replaces the mirror cards) ---------- */
.fm { --ts: #5555dd; --sn: #4e9e4b; --ds: #8b8f98; margin-top: 60px; display: grid; grid-template-columns: 180px repeat(3, minmax(0, 1fr)); column-gap: 20px; }
.fm__colhead { padding-bottom: 18px; font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #6c717c; }
.fm__tier { grid-column: 1; padding: 26px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fm__tier span { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: #26282d; }
.fm__tier em { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 18px; color: #6c717c; }
.fm__cell { padding: 26px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.fm__empty { display: grid; place-items: center; height: 56px; color: #9a9ea6; font-family: var(--display); font-style: italic; font-size: 18px; }
.fm-file {
  --c: var(--ds);
  height: 56px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(17, 18, 20, 0.05);
  color: #26282d;
  transition: opacity 0.45s var(--ease-out), background 0.45s var(--ease-out), border-color 0.45s var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.fm-file--ts { --c: var(--ts); }
.fm-file--sn { --c: var(--sn); }
.fm-file svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--c); stroke-width: 1.5; }
.fm-file__name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.fm-file__kind { margin-left: auto; font-family: var(--serif); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #9a9ea6; }
.fm-file:focus-visible { outline: none; }
.fm.is-tracing .fm-file { opacity: 0.32; }
.fm.is-tracing .fm-file.is-on { opacity: 1; background: #fff; border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.fm.is-tracing .fm-file.is-src { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(10, 12, 30, 0.35); }
.fm__note { grid-column: 2 / -1; padding-top: 22px; border-top: 1px solid var(--line); min-height: 64px; font-family: var(--serif); font-size: 15px; line-height: 1.55; color: #6c717c; }
.fm__note b { font-family: var(--sans); font-weight: 500; color: #26282d; }
.fm__hint { color: #9a9ea6; }
@media (max-width: 1024px) {
  .fm { grid-template-columns: 130px repeat(3, minmax(0, 1fr)); column-gap: 12px; }
  .fm-file__kind { display: none; }
}
@media (max-width: 767px) {
  .fm { grid-template-columns: 1fr; }
  .fm__colhead, .fm__cell--empty { display: none; }
  .fm__tier { padding-bottom: 8px; flex-direction: row; align-items: baseline; gap: 10px; }
  .fm__cell { border-top: 0; padding: 8px 0; }
  .fm-file--ts .fm-file__name::before { content: "Trackside · "; color: #9a9ea6; font-weight: 400; }
  .fm-file--sn .fm-file__name::before { content: "Sport Nation · "; color: #9a9ea6; font-weight: 400; }
  .fm__note { grid-column: 1; }
}

/* fm: continuous row lines (gap moved into cell padding) */
.fm { --fm-gap: 20px; column-gap: 0; }
.fm__colhead, .fm__cell { padding-left: var(--fm-gap); }
.fm__note { margin-left: var(--fm-gap); }
@media (max-width: 1024px) { .fm { --fm-gap: 12px; column-gap: 0; } }
@media (max-width: 767px) { .fm { --fm-gap: 0px; } }

/* Component index */
.ts-lib { --ts:#5555dd; --sn:#4e9e4b; --ds:#8b8f98; width: min(1210px, calc(100% - 128px)); margin: 100px auto 0; }
.ts-lib__grid { margin-top: 60px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ts-lib__head { padding: 0 20px 18px 0; display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #6c717c; }
.ts-lib__head--core { grid-column: span 2; }
.ts-lib__head b { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0; color: #26282d; }
.ts-lib__list { --c: var(--ds); list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ts-lib__list--ts { --c: var(--ts); }
.ts-lib__list--sn { --c: var(--sn); }
.ts-lib__list li { height: 52px; display: flex; align-items: center; gap: 12px; padding-right: 20px; border-top: 1px solid var(--line); font-size: 15px; letter-spacing: -0.01em; color: #26282d; }
.ts-lib__list svg { flex: none; width: 13px; height: 13px; fill: none; stroke: var(--c); stroke-width: 1.3; stroke-linejoin: round; }
.ts-lib__total { margin-top: 22px; font-family: var(--serif); font-size: 15px; line-height: 1.55; color: #6c717c; }
.ts-lib__total b { font-family: var(--sans); font-weight: 500; color: #26282d; }
.ts-lib ~ .nextcase { margin-top: 160px; }
@media (max-width: 1024px) {
  .ts-lib { width: calc(100% - 80px); }
  .ts-lib__grid { grid-template-columns: 1fr 1fr; }
  .ts-lib__head { grid-column: 1 / -1 !important; padding-top: 40px; }
  .ts-lib__head:first-child { padding-top: 0; }
  .ts-lib__head:nth-child(1) { order: 0; } .ts-lib__list--a, .ts-lib__list--b { order: 1; }
  .ts-lib__head:nth-child(2) { order: 2; } .ts-lib__list--ts { order: 3; grid-column: 1 / -1; }
  .ts-lib__head:nth-child(3) { order: 4; } .ts-lib__list--sn { order: 5; grid-column: 1 / -1; }
  .ts-lib__list--ts .is-empty, .ts-lib__list--sn .is-empty { display: none; }
}
@media (max-width: 767px) {
  .ts-lib { width: calc(100% - 40px); margin-top: 100px; }
  .ts-lib__grid { grid-template-columns: 1fr; }
  .ts-lib__list--a, .ts-lib__list--b { grid-column: 1 / -1; }
  .ts-lib__list--a { border-bottom: 0; }
  .ts-lib__list .is-empty { display: none; }
}

/* ---------- Component documentation ---------- */
.ts-doc { width: min(1210px, calc(100% - 128px)); margin: 100px auto 0; }
.ts-doc [data-sn] { display: none; }
.ts-doc.is-sn [data-sn] { display: inline; }
.ts-doc.is-sn [data-ts] { display: none; }
.ts-doc__bar { margin-top: 60px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.ts-doc__tabs, .ts-doc__brands { display: flex; gap: 28px; }
.ts-doc__tab, .ts-doc__brand {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #a2a6ae; transition: color 0.4s ease;
}
.ts-doc__tab[aria-selected="true"], .ts-doc__brand[aria-pressed="true"] { color: #26282d; }
.ts-doc__tab:hover, .ts-doc__brand:hover { color: #26282d; }
.ts-doc__tab:focus-visible, .ts-doc__brand:focus-visible { outline: 1px solid #26282d; outline-offset: 6px; border-radius: 4px; }
.ts-doc__brands { gap: 20px; }

.ts-doc__stage {
  position: relative; margin-top: 16px; height: 440px; border-radius: 28px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(17, 18, 20, 0.05); overflow: hidden;
}
.ts-doc__panel {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 40px;
  opacity: 0; visibility: hidden; transform: translateY(10px); filter: blur(4px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), filter .6s var(--ease-out), visibility 0s .6s;
}
.ts-doc__panel.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }

/* the player, static inside the docs */
.ts-player--doc { text-align: left; position: relative; left: auto; top: auto; margin: 0; flex: none; cursor: default; transform: none; will-change: auto; }
.ts-player--doc .ts-player__play svg { transition: none; }
.ts-player--doc .ts-player__bar i, .ts-player--doc .ts-player__bar b { transition: background-color .5s ease; }

/* anatomy */
.ts-doc__anat-list { display: none; list-style: none; }
.ts-doc .tok { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: #8b8f98; letter-spacing: 0; }
.ts-doc__ann { position: absolute; display: flex; flex-direction: column; gap: 3px; transform: translateY(-50%); pointer-events: none; }
.ts-doc__ann--l { align-items: flex-end; text-align: right; }
.ts-doc__ann b { font-weight: 400; font-size: 14px; letter-spacing: -0.01em; color: #26282d; }
.ts-doc__line { position: absolute; min-height: 1px; min-width: 1px; background: rgba(17, 18, 20, 0.22); pointer-events: none; }
.ts-doc__end { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; border: 1px solid rgba(255,255,255,.85); background: rgba(17,18,20,.35); pointer-events: none; }

/* tokens */
.ts-doc__panel--tokens { gap: 64px; }
.ts-doc__tok { list-style: none; width: min(520px, 50%); }
.ts-doc__tok li { display: grid; grid-template-columns: 1.1fr 1.5fr 1.3fr; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: #26282d; }
.ts-doc__tok li:first-child { border-top: 1px solid var(--line); }
.ts-doc__tok .v { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: #4a4d55; white-space: nowrap; }
.ts-doc .sw { display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 3px; vertical-align: -1px; background: var(--sw); border: 1px solid rgba(17,18,20,.06); transition: background .5s ease; }

/* states + rules: scaled players with captions */
.ts-doc__panel--states, .ts-doc__panel--rules { gap: 20px; align-items: flex-start; padding-top: 140px; }
.ts-doc__panel--states { flex-wrap: wrap; align-content: center; align-items: flex-start; gap: 36px 24px; padding: 30px 60px; }
.ts-doc__panel--states figure { width: 260px; }
.ts-doc__panel--rules { padding-top: 118px; }
.ts-doc__panel--anatomy { padding-bottom: 90px; }
.ts-doc__panel figure { display: grid; gap: 18px; justify-items: start; }
.ts-doc__panel--states .ts-player--doc { zoom: .62; }
.ts-doc__panel--rules .ts-player--doc { zoom: .78; }
.ts-doc__panel figcaption { display: grid; gap: 6px; max-width: 260px; }
.ts-doc__cap-k { font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #26282d; }
.ts-doc__cap-v { font-family: var(--serif); font-size: 13px; line-height: 1.5; color: #6c717c; }
.ts-doc .is-dont .ts-doc__cap-k { color: #c8443f; }

.ts-player.is-playing .ts-player__bar i { animation: tsDocProg 9s linear infinite; }
.ts-player.is-playing .ts-player__bar b { animation: tsDocKnob 9s linear infinite; }
@keyframes tsDocProg { from { width: 35%; } to { width: 70%; } }
@keyframes tsDocKnob { from { left: 35%; } to { left: 70%; } }
.ts-spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: tsSpin .9s linear infinite; }
@keyframes tsSpin { to { transform: rotate(360deg); } }
.ts-player.is-loading .ts-player__time, .ts-player.is-off .ts-player__time { color: rgba(255,255,255,.5); }
.ts-player.is-off .ts-player__art, .ts-player.is-off .ts-player__bar { opacity: .35; }
.ts-player.is-off .ts-player__play { background: var(--off); }
.ts-player.is-compact { width: 340px; grid-template-columns: 64px 44px 1fr; gap: 12px; padding: 12px; }
.ts-player.is-compact .ts-player__art { width: 64px; height: 64px; }
.ts-player.is-compact .ts-player__art-ts img { width: 52px; }
.ts-player.is-compact .ts-player__art-sn img { width: 42px; }
.ts-player.is-compact .ts-player__play { width: 44px; height: 44px; }
.ts-player.is-compact .ts-player__play svg { width: 19px; height: 19px; }
.ts-player.is-compact .ts-player__station { font-size: 12px; }
.ts-player.is-compact .ts-player__title { font-size: 14px; }
.ts-player.is-compact .ts-player__time { font-size: 12px; margin-top: 6px; }
.ts-player.is-wrong .ts-player__play { background: #e8284b; }
.ts-player.is-wrong .ts-player__bar i { background: #e8a23a; }

@media (max-width: 1100px) {
  .ts-doc__panel--states { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 36px 40px; align-content: center; justify-items: center; }
  .ts-doc__panel--states .ts-player--doc { zoom: .55; }
  .ts-doc__panel--states figcaption { display: none; }
  .ts-doc__panel--rules .ts-player--doc { zoom: .6; }
}
@media (max-width: 1024px) {
  .ts-doc { width: calc(100% - 80px); }
  .ts-doc__panel--tokens { gap: 32px; }
  .ts-doc__tok-player .ts-player--doc { zoom: .8; }
}
@media (max-width: 860px) {
  .ts-doc__ann, .ts-doc__line, .ts-doc__end { display: none; }
  .ts-doc__stage { height: auto; min-height: 0; }
  .ts-doc__panel { position: relative; inset: auto; display: none; flex-direction: column; padding: 32px 20px; }
  .ts-doc__panel.is-active { display: flex; }
  .ts-doc__panel--states.is-active { display: grid; }
  .ts-doc__anat-list { display: block; width: 100%; }
  .ts-doc__anat-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: #26282d; }
  .ts-doc__anat-list li:first-child { border-top: 1px solid var(--line); }
  .ts-doc__anat-list .k { font-weight: 400; }
  .ts-doc__tok { width: 100%; }
  .ts-doc__panel--rules { align-items: center; padding-top: 32px; }
  .ts-doc__panel--rules figure { justify-items: center; text-align: center; }
}
@media (max-width: 767px) {
  .ts-doc { width: calc(100% - 40px); }
  .ts-doc__bar { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 36px; }
  .ts-doc__tabs { gap: 20px; }
  .ts-doc__stage { border-radius: 22px; }
  .ts-doc__panel > .ts-player--doc, .ts-doc__tok-player .ts-player--doc { width: min(340px, calc(100vw - 80px)); grid-template-columns: 64px 44px 1fr; gap: 12px; padding: 12px; zoom: 1; }
  .ts-doc__panel > .ts-player--doc .ts-player__art, .ts-doc__tok-player .ts-player__art { width: 64px; height: 64px; }
  .ts-doc__panel > .ts-player--doc .ts-player__play, .ts-doc__tok-player .ts-player__play { width: 44px; height: 44px; }
  .ts-doc__panel > .ts-player--doc .ts-player__title, .ts-doc__tok-player .ts-player__title { font-size: 14px; }
  .ts-doc__panel > .ts-player--doc .ts-player__station, .ts-doc__tok-player .ts-player__station { font-size: 12px; }
  .ts-doc__tok li { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .ts-doc__tok .tok { grid-column: 1 / -1; grid-row: 2; }
  .ts-doc__tok .v { justify-self: end; grid-row: 1; grid-column: 2; }
  .ts-doc__panel--states { grid-template-columns: 1fr; padding: 28px 16px; }
  .ts-doc__panel--states .ts-player--doc { zoom: .7; }
  .ts-doc__panel--rules .ts-player--doc { zoom: .7; }
}


/* error state */
.ts-player.is-error { grid-template-columns: 90px 1fr; min-height: 146px; align-content: center; }
.ts-player.is-error .ts-player__art > span { opacity: .18; filter: grayscale(.4); }
.ts-player__err { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); }
.ts-player__err svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ts-player.is-error .ts-player__err rect { fill: #fff; }
.ts-player.is-error .ts-player__meta { gap: 4px; }
.ts-player.is-error .ts-player__title { margin: 0; }
.ts-player.is-error .ts-player__station { white-space: normal; }
@media (max-width: 1100px) { .ts-doc__panel--states figure { width: auto; } }

/* ---------- Product showcase ---------- */
.ts-show { width: min(1210px, calc(100% - 128px)); margin: 120px auto 0; }
.ts-show ~ .nextcase { margin-top: 160px; }
.ts-show__tabs { display: flex; justify-content: center; gap: 10px; }
.ts-show__tab {
  min-width: 118px; height: 40px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: #26282d; background: #fff; border: 1px solid rgba(17, 18, 20, 0.1);
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}
.ts-show__tab[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #2a2c31 0%, #0d0e11 100%); border-color: transparent; }
.ts-show__tab:not([aria-selected="true"]):hover { border-color: rgba(17, 18, 20, 0.28); }
.ts-show__tab:focus-visible { outline: 2px solid #26282d; outline-offset: 3px; }
.ts-show__banner { position: relative; margin-top: 40px; aspect-ratio: 2400 / 1111; border-radius: 28px; overflow: hidden; background: #05070d; isolation: isolate; }
.ts-show__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .9s var(--ease-out), transform 1.4s var(--ease-out); }
.ts-show__img.is-active { opacity: 1; transform: none; }
@media (max-width: 1024px) { .ts-show { width: calc(100% - 80px); } }
@media (max-width: 767px) {
  .ts-show { width: calc(100% - 40px); margin-top: 100px; }
  .ts-show__tab { min-width: 0; height: 36px; padding: 0 16px; }
  .ts-show__banner { margin-top: 24px; border-radius: 18px; }
}

/* showcase: pages per brand */
.ts-show__set { margin-top: 60px; }
.ts-show__ptabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.ts-show__ptab {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #a2a6ae; transition: color .4s ease;
}
.ts-show__ptab[aria-selected="true"], .ts-show__ptab:hover { color: #26282d; }
.ts-show__ptab:focus-visible { outline: 1px solid #26282d; outline-offset: 6px; border-radius: 4px; }
.ts-show__view {
  position: relative; margin-top: 24px; height: clamp(520px, 78vh, 820px); overflow-y: auto; overscroll-behavior: auto;
  border-radius: 20px; background: #0a0a0a; box-shadow: 0 0 0 1px rgba(17,18,20,.06), 0 40px 80px -50px rgba(10,12,30,.55);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.ts-show__view::-webkit-scrollbar { width: 8px; }
.ts-show__view::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.ts-show__view:focus-visible { outline: 2px solid #26282d; outline-offset: 4px; }
.ts-show__page { display: none; width: 100%; height: auto; }
.ts-show__page.is-active { display: block; animation: tsPageIn .7s var(--ease-out); }
@keyframes tsPageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ts-show__hint { margin-top: 16px; text-align: center; font-family: var(--serif); font-size: 13px; color: #8b8f98; }
@media (max-width: 767px) {
  .ts-show__set { margin-top: 36px; }
  .ts-show__ptabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 4px; gap: 22px; }
  .ts-show__ptabs::-webkit-scrollbar { display: none; }
  .ts-show__ptab { flex: none; }
  .ts-show__view { height: 70vh; border-radius: 14px; }
}

/* ---------- Reflection ---------- */
.ts-refl { margin-top: 120px; }
.ts-refl ~ .nextcase { margin-top: 160px; }
.ts-refl__rows li { grid-template-columns: 2fr 6fr; align-items: start; }
.ts-refl__rows .k { padding-top: 2px; }
.ts-refl__rows .v { font-family: var(--serif); font-size: 14px; line-height: 1.6; letter-spacing: 0; text-transform: none; color: #5d616b; }
@media (max-width: 767px) {
  .ts-refl { margin-top: 100px; }
  .ts-refl__rows li { grid-template-columns: 1fr; gap: 8px; }
  .ts-refl__rows .v { grid-column: 1; grid-row: 2; }
}

/* showcase: device switch */
.ts-show__devices { margin-top: 18px; display: flex; justify-content: center; gap: 6px; }
.ts-show__dev {
  width: 38px; height: 34px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 10px; border: 1px solid transparent; background: none; color: #a2a6ae;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, opacity .3s ease;
}
.ts-show__dev svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ts-show__dev:hover { color: #26282d; }
.ts-show__dev[aria-pressed="true"] { color: #26282d; background: #fff; border-color: rgba(17,18,20,.1); }
.ts-show__dev:disabled { opacity: .3; cursor: default; color: #a2a6ae; background: none; }
.ts-show__dev:focus-visible { outline: 1px solid #26282d; outline-offset: 3px; }
.ts-show__devices[hidden] { display: none; }
.ts-show__view { margin-left: auto; margin-right: auto; max-width: 100%; transition: max-width .7s var(--ease-out), border-radius .7s var(--ease-out); }
.ts-show__view[data-device="tablet"] { max-width: 780px; border-radius: 26px; }
.ts-show__view[data-device="mobile"] { max-width: 400px; border-radius: 34px; }
@media (max-width: 767px) { .ts-show__devices { margin-top: 12px; } }

/* =========================================================
   Rizzy Admin case
   ========================================================= */
.rz-admin {
  font-family: var(--display); font-style: italic; font-weight: 300; letter-spacing: 0; margin-left: .06em;
  background: linear-gradient(180deg, #e6e9ef 0%, #8a909b 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rz-hero .cs-hero__sub { max-width: 860px; }
.rz-hero .cs-hero__lead { max-width: 540px; }
.rz-screens { position: relative; z-index: 2; margin: 70px auto 0; width: min(1160px, calc(100% - 96px)); aspect-ratio: 1160 / 600; }
.rz-dash, .rz-notes { position: absolute; margin: 0; will-change: transform; }
.rz-dash { left: 0; top: 0; width: 77.586%; border-radius: 30px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04); transform: translateZ(0); }
.rz-notes { left: 59.483%; top: 31.667%; width: 44.828%; transform: translateZ(0); }
.rz-meta { grid-template-columns: repeat(3, auto); }
.rz-dash img, .rz-notes img { display: block; width: 100%; height: auto; }
.rz-statement { margin-top: 0; }
.rz-cols { width: min(1210px, calc(100% - 128px)); margin: 120px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.rz-col { padding: 0; }
.rz-col__n { display: block; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 22px; line-height: 1; color: #8b8f98; }
.rz-col__t { margin-top: 32px; font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: -0.025em; color: #2f3136; }
.rz-col__d { margin-top: 18px; font-family: var(--serif); font-size: 15px; line-height: 1.6; color: #6c717c; }
@media (max-width: 1024px) { .rz-cols { width: calc(100% - 80px); grid-template-columns: 1fr; } .rz-cols { gap: 48px; } }
@media (max-width: 767px) {
  .rz-screens { width: calc(100% - 40px); margin-top: 48px; }
  .rz-dash { border-radius: 14px; }
  .rz-cols { width: calc(100% - 40px); margin-top: 80px; }
  .rz-col__t { font-size: 24px; }
}

/* Rizzy — feature sections */
.rz-sec { width: min(1210px, calc(100% - 128px)); margin: 160px auto 0; }
.rz-sec ~ .nextcase { margin-top: 160px; }
.rz-sec__head { max-width: 760px; }
.rz-sec__eyebrow { font-family: var(--serif); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6c717c; }
.rz-sec__title { margin-top: 18px; font-weight: 400; font-size: clamp(44px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.035em; color: #2f3136; }
.rz-sec__title em { font-family: var(--display); font-style: italic; font-weight: 300; letter-spacing: 0; }
.rz-sec__lead { margin-top: 24px; max-width: 600px; font-family: var(--serif); font-size: 16px; line-height: 1.6; color: #6c717c; }
.rz-feat { margin-top: 100px; display: grid; grid-template-columns: 4fr 8fr; gap: 60px; align-items: start; }
.rz-feat--wide { grid-template-columns: 1fr; gap: 36px; }
.rz-feat--wide .rz-feat__text { display: grid; grid-template-columns: 4fr 8fr; gap: 60px; align-items: baseline; }
.rz-feat--wide .rz-feat__d { margin-top: 0; }
.rz-feat__n { display: block; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 22px; line-height: 1; color: #8b8f98; }
.rz-feat__t { margin-top: 0; font-weight: 400; font-size: 30px; line-height: 1.12; letter-spacing: -0.025em; color: #2f3136; }
.rz-feat__d { margin-top: 18px; max-width: 520px; font-family: var(--serif); font-size: 15px; line-height: 1.6; color: #6c717c; }
.rz-shot { margin: 0; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(17,18,20,.06), 0 12px 24px -18px rgba(10,12,30,.07); }
.rz-shot img, .rz-float img { display: block; width: 100%; height: auto; }
.rz-float { margin: 0; }
.rz-points { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.rz-points .k { display: block; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #26282d; }
.rz-points .v { display: block; margin-top: 10px; font-family: var(--serif); font-size: 14px; line-height: 1.55; color: #6c717c; }
.rz-status { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.rz-status li { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; }
.rz-status .v { font-family: var(--serif); font-size: 14px; line-height: 1.45; color: #6c717c; }
.rz-chip { justify-self: start; padding: 4px 10px; border-radius: 7px; border: 1px solid; font-size: 12px; font-weight: 500; white-space: nowrap; }
.rz-chip--pending { color: #9a4a06; background: #fbefc9; border-color: #f2cf6b; }
.rz-chip--ok { color: #18823a; background: #dcf7e2; border-color: #7fdc97; }
.rz-chip--dup { color: #d93a46; background: #fde4e7; border-color: #f4a1aa; }
.rz-stack { display: grid; gap: 20px; }
.rz-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rz-quote { margin: 140px auto 0; max-width: 900px; text-align: center; font-weight: 400; font-size: clamp(34px, 4vw, 56px); line-height: 1.1; letter-spacing: -0.03em; color: #2f3136; }
.rz-quote em { font-family: var(--display); font-style: italic; font-weight: 300; letter-spacing: 0; color: #6c717c; }
.rz-quote__sub { margin: 22px auto 0; max-width: 520px; text-align: center; font-family: var(--serif); font-size: 15px; line-height: 1.6; color: #6c717c; }
.rz-feat--notes { margin-top: 140px; grid-template-columns: 1fr; gap: 50px; }
.rz-feat--notes .rz-feat__text { display: grid; grid-template-columns: 4fr 8fr; gap: 60px; align-items: baseline; }
.rz-feat--notes .rz-feat__d { margin-top: 0; }
.rz-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.rz-trio .rz-shot { margin: 1px 2.4% 0; border-radius: 16px; }
@media (max-width: 1024px) {
  .rz-sec { width: calc(100% - 80px); }
  .rz-feat, .rz-feat--wide .rz-feat__text, .rz-feat--notes .rz-feat__text { grid-template-columns: 1fr; gap: 24px; }
  .rz-points { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 767px) {
  .rz-sec { width: calc(100% - 40px); margin-top: 110px; }
  .rz-feat { margin-top: 70px; }
  .rz-shot { border-radius: 12px; }
  .rz-pair, .rz-trio { grid-template-columns: 1fr; }
  .rz-quote { margin-top: 90px; }
  .rz-feat--notes { margin-top: 90px; }
}

/* Rizzy — module header + sub-section header */
.rz-mhead { max-width: 820px; margin: 0 auto; text-align: center; }
.rz-mhead__n { display: block; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 28px; line-height: 1; color: #8b8f98; }
.rz-mhead__t { margin-top: 0; font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: .98; letter-spacing: -0.04em; color: #2f3136; }
.rz-mhead__t em { font-family: var(--display); font-style: italic; font-weight: 300; letter-spacing: -0.01em; }
.rz-mhead__d { margin: 28px auto 0; max-width: 560px; font-family: var(--serif); font-size: 16px; line-height: 1.6; color: #6c717c; }
.rz-sub { margin-top: 100px; display: grid; grid-template-columns: 4fr 8fr; gap: 60px; align-items: baseline; }
.rz-sub__t { margin-top: 0; font-weight: 400; font-size: 30px; line-height: 1.12; letter-spacing: -0.025em; color: #2f3136; }
.rz-sub__d { max-width: 620px; font-family: var(--serif); font-size: 16px; line-height: 1.6; color: #6c717c; }
.rz-sub + .rz-feat { margin-top: 80px; }
@media (max-width: 1024px) { .rz-sub { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 767px) { .rz-sub { margin-top: 90px; } .rz-sub + .rz-feat { margin-top: 48px; } .rz-mhead__d { font-size: 15px; } }

/* Rizzy — right-hand leads follow the site pattern (.ts-files__lead) */
.rz-sub__d, .rz-feat--wide .rz-feat__d, .rz-feat--notes .rz-feat__d { justify-self: end; max-width: 560px; font-size: 15px; line-height: 1.55; }
@media (max-width: 1024px) { .rz-sub__d, .rz-feat--wide .rz-feat__d, .rz-feat--notes .rz-feat__d { justify-self: start; } }

/* Rizzy — Add & Remove Amount */
.rz-sub--next { margin-top: 160px; }
.rz-shot--narrow { max-width: 480px; width: 100%; justify-self: center; }
.rz-layer { position: relative; max-width: 480px; width: 100%; justify-self: center; }
.rz-layer .rz-shot { width: 100%; }
.rz-layer__toast { position: absolute; right: -120px; top: 8px; width: 68%; height: auto; border-radius: 12px; box-shadow: 0 12px 24px -18px rgba(10,12,30,.08); }
@media (max-width: 767px) { .rz-sub--next { margin-top: 110px; } .rz-layer__toast { width: 70%; top: -14px; } }

/* Rizzy — promo lifecycle */
.rz-pair { align-items: start; }
.rz-pair--confirm { margin-top: 40px; }
@media (max-width: 767px) { .rz-pair--confirm { margin-top: 20px; } }

/* split row: right image matches the right card of the pair below */
.rz-feat--split { grid-template-columns: 1fr 1fr; gap: 20px; }
.rz-feat--split .rz-feat__text { padding-right: 40px; }
@media (max-width: 1024px) { .rz-feat--split { grid-template-columns: 1fr; } .rz-feat--split .rz-feat__text { padding-right: 0; } }

/* Rizzy — module 02 */
.rz-sec--next { margin-top: 140px; }
.rz-solo { margin: 80px 0 0; }
#rzPayments .rz-stack > .rz-shot, #rzWithdrawals .rz-stack > .rz-shot { margin: 0; }
.rz-solo__end { justify-self: end; }
@media (max-width: 767px) { .rz-sec--next { margin-top: 100px; } .rz-solo { margin-top: 48px; } }

/* Rizzy — module links & closing */
a.rz-col { display: block; color: inherit; text-decoration: none; }
.rz-col__go { display: inline-flex; gap: 6px; margin-top: 24px; font-family: var(--serif); font-size: 14px; color: #8b8f98; border-bottom: 1px solid rgba(139,143,152,.35); padding-bottom: 2px; transition: color .3s, border-color .3s; }
a.rz-col:hover .rz-col__go { color: #2f3136; border-color: #2f3136; }
.rz-col__go span { transition: transform .3s; }
a.rz-col:hover .rz-col__go span { transform: translateY(3px); }
.rz-quote--end { margin-top: 200px; }
.rz-refl { margin-top: 140px; }
@media (max-width: 767px) { .rz-quote--end { margin-top: 120px; } .rz-refl { margin-top: 90px; } }

/* Rizzy — modal over table */
.rz-overlap { position: relative; z-index: 2; margin-top: calc(-12.7% - 20px) !important; margin-right: 2% !important; box-shadow: 0 0 0 1px rgba(17,18,20,.06), 0 24px 48px -24px rgba(10,12,30,.18); }
@media (max-width: 767px) { .rz-overlap { margin-top: 0 !important; margin-right: 0 !important; } }

/* ===== Spacing system: sections 140px, inside modules 80px ===== */
.cs-sheet > .cs-block,
.cs-sheet > .cs-statement:not(:first-child),
.cs-sheet > .ts-files, .cs-sheet > .ts-lib, .cs-sheet > .ts-mode, .cs-sheet > .ts-doc,
.cs-sheet > .ts-compare, .cs-sheet > .ts-show,
.cs-sheet > .aud, .cs-sheet > .situ, .cs-sheet > .jm, .cs-sheet > .kf,
.cs-sheet > .rz-cols, .cs-sheet > .rz-sec,
.cs-sheet > .nextcase { margin-top: 140px !important; }
.rz-sec > .rz-sub, .rz-sec > .rz-feat, .rz-sec > .rz-quote { margin-top: 80px !important; }
.rz-sec > .rz-mhead + * { margin-top: 80px !important; }

/* Sportspick — results */
.sp-results .sp-nda { margin-top: 16px; }
.sp-m { display: block; margin-top: 6px; font-size: 13px; color: #8b8f98; }
