/* Case study pages (gamekit-alt.html) — built on top of style.css, which
   supplies fonts, base colors, and shared components (.nav*, .cta-btn,
   .see-all-btn, .project-tag*). This file only adds the long-form layout. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/gamekit/inter-body.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

body.cs-body {
  background: #ffffff;
}

.gk-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gk-nav-back-icon {
  width: 20px;
  height: 20px;
  transform: scaleX(-1);
}

.cs-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 40px 140px;
  box-sizing: border-box;
}

.cs-page .nav {
  max-width: 1040px;
}

/* --- hero ---------------------------------------------------------- */

.cs-hero {
  margin-top: 40px;
}

.cs-hero-logo-block {
  height: 300px;
  background: #111111;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 40px;
  overflow: hidden;
}

.cs-hero-logo-anim {
  width: 60%;
  max-width: 480px;
  height: auto;
}

.cs-hero-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.cs-tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.cs-tag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: #ff3d32;
  color: #111111;
  font-family: "Optician Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.cs-tag-outline {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: transparent;
  border: 1.5px solid #111111;
  color: #111111;
  font-family: "Optician Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.cs-hero h1 {
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 32px;
  color: #111111;
}

.cs-lede {
  font-family: "Inter", sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: #111111;
  max-width: 640px;
  margin: 0;
}

.cs-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-meta-label {
  font-family: "Optician Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff3d32;
}

.cs-meta-value {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #111111;
  max-width: 460px;
}

/* --- sections -------------------------------------------------------- */

.cs-section {
  margin-top: 120px;
}

.cs-section-label {
  font-family: "Optician Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff3d32;
  margin: 0 0 12px;
}

.cs-section h2 {
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 24px;
  color: #111111;
}

.cs-section-head {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}

.cs-files-label {
  font-family: "Optician Sans", sans-serif;
  font-size: 15px;
  margin: 0 0 12px;
  color: #111111;
}

.cs-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.cs-pair-item h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.cs-pair-item img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.cs-pair-item ul {
  margin: 0;
  padding-left: 20px;
}

.cs-pair-item li {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #111111;
  margin-bottom: 6px;
}

.cs-section h3 {
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 20px;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  color: #111111;
}

.cs-section p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #111111;
  max-width: 720px;
  margin: 0 0 16px;
}

.cs-section ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.cs-section li {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #111111;
  max-width: 680px;
  margin-bottom: 8px;
}

/* two-column problem/solution */

.cs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.cs-split-block {
  padding: 28px;
  background: #f5f5f5;
  border-radius: 16px;
  box-sizing: border-box;
}

.cs-split-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
}

.cs-split-block h3 {
  color: #ff3d32;
}

.cs-split-block p {
  margin: 0;
  max-width: none;
}

/* label cards (Goal Planning / MVP Use Cases) */

.cs-card-row {
  display: flex;
  gap: 16px;
  margin: 0 0 40px;
  flex-wrap: wrap;
}

.cs-label-card {
  font-family: "Optician Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #111111;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px 24px;
  flex: 1 1 220px;
}

/* supporting file / deck placeholder links */

.cs-file-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 32px;
}

.cs-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1.5px solid #111111;
  color: #111111;
  font-family: "Optician Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.cs-file-btn:hover {
  background: #111111;
  color: #ffffff;
}

.cs-file-btn:hover img:not(.cs-file-icon-color) {
  filter: invert(1);
}

.cs-file-btn img {
  width: 14px;
  height: 14px;
}

.cs-file-btn::after {
  content: "· add link";
  color: #ff3d32;
  font-family: "Inter", sans-serif;
  letter-spacing: 0;
  font-size: 12px;
}

.cs-file-btn-linked::after {
  content: none;
}

/* image groups */

.cs-figure {
  margin: 24px 0 0;
}

.cs-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
}

.cs-caption {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #666666;
  margin: 10px 0 0;
}

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

.cs-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.cs-grid-5 img,
.cs-grid-3 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.cs-workshop-card {
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 40px;
  margin-top: 48px;
  box-sizing: border-box;
}

.cs-workshop-card > h3 {
  margin: 0 0 24px;
}

.cs-workshop-card > img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.cs-carousel img {
  scroll-snap-align: start;
  flex: 0 0 90%;
  width: 90%;
  min-width: 0;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.cs-carousel-hint {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #888888;
  margin: 12px 0 0;
  text-align: right;
}

.cs-carousel-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

p.cs-wireframe-heading {
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 20px;
  max-width: none;
  margin: 56px 0 0;
  color: #111111;
}

.cs-wireframe-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  margin-top: 20px;
  -webkit-overflow-scrolling: touch;
}

.cs-wireframe-carousel img {
  scroll-snap-align: start;
  flex: 0 0 auto;
  min-width: 0;
  height: 280px;
  width: auto;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #f7f7f7;
}


/* flow cards: recommendations + quote + before/after */

.cs-flow {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid #e0e0e0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.cs-flow-label {
  font-family: "Optician Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff3d32;
  margin: 0 0 6px;
}

.cs-flow h4 {
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 15px;
  margin: 0 0 8px;
  color: #ff3d32;
}

.cs-hover-swap {
  position: relative;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  cursor: pointer;
}

.cs-hover-swap img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-hover-swap .cs-after {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cs-hover-swap:hover .cs-after {
  opacity: 1;
}

.cs-flow-quote {
  border-left: 3px solid #ff3d32;
  padding-left: 20px;
  margin: 24px 0 32px;
}

.cs-flow-quote p {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 8px;
  max-width: 640px;
}

.cs-flow-quote cite {
  font-family: "Optician Sans", sans-serif;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #666666;
}

/* hi-fi screens */

/* design process footnote */

.cs-design-timeline {
  display: block;
  width: 100%;
  height: auto;
  margin: 16px 0 24px;
}

.cs-footnote {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-size: 14px;
  color: #666666;
  max-width: 680px;
  margin: -8px 0 32px;
}

/* key results */

.cs-results-graphic {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 0 0 40px;
}

.cs-impact-card {
  position: relative;
  background: #f5f5f5;
  border-radius: 0 16px 16px 16px;
  padding: 36px 32px 32px;
  margin-top: 28px;
}

.cs-impact-tab {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  background: #f5f5f5;
  border-radius: 8px 8px 0 0;
  padding: 10px 22px;
  font-family: "Optician Sans", sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111111;
}

/* --- process show/hide toggle ------------------------------------------- */

.cs-process-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 48px 0 0;
}

.cs-process-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1.5px solid #111111;
  color: #111111;
  font-family: "Optician Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cs-process-toggle:hover {
  background: #111111;
  color: #ffffff;
}

.cs-process-toggle:hover .cs-process-toggle-icon {
  filter: invert(1);
}

.cs-process-toggle-icon {
  width: 16px;
  height: 16px;
  transform: translateY(-3px) rotate(-90deg);
  transition: transform 0.3s ease;
}

.cs-process-toggle[aria-expanded="true"] .cs-process-toggle-icon {
  transform: translateY(3px) rotate(90deg);
}

.cs-process-collapse {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.5s ease;
}

.cs-process-collapse.is-open {
  grid-template-rows: 1fr;
}

.cs-process-inner {
  overflow: hidden;
  min-height: 0;
}

.cs-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cs-stat strong {
  display: block;
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 56px;
  color: #ff3d32;
  line-height: 1;
  margin-bottom: 12px;
}

.cs-stat strong .cs-stat-lt {
  display: inline-block;
  color: inherit;
  font-size: 0.55em;
  vertical-align: 0.08em;
  margin-right: 0.02em;
}

.cs-stat-label {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  color: #111111;
  margin-bottom: 4px;
}

.cs-stat span {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #111111;
  display: block;
}

.cs-results-demo {
  margin-top: 48px;
}

.cs-results-demo img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  display: block;
}

/* footer cta */

.cs-footer {
  margin-top: 140px;
  padding-top: 48px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cs-footer-title {
  font-family: "Optician Sans", sans-serif;
  font-size: 28px;
  color: #111111;
  margin: 0;
}

/* --- mobile ------------------------------------------------------------ */

@media (max-width: 700px) {
  .cs-page {
    padding: 0 20px 100px;
  }

  .cs-hero-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cs-hero-logo-block {
    margin: 20px 0 32px;
    border-radius: 12px;
  }

  .cs-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .cs-split,
  .cs-section-head,
  .cs-pair,
  .cs-flow {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cs-grid-3 {
    grid-template-columns: 1fr;
  }

  .cs-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cs-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

}

/* --- revolving screens carousel ----------------------------------------- */

.cs-revolve {
  position: relative;
  overflow: hidden;
}

.cs-revolve-track {
  display: flex;
  transition: transform 0.6s ease;
}

.cs-revolve-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.cs-revolve-slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* Last slide (portrait) is capped to match the previous (landscape) slide's
   rendered height, rather than displaying at its own much taller natural
   height. */
.cs-revolve-slide:last-child {
  aspect-ratio: 2000 / 1677;
}

.cs-revolve-slide:last-child img {
  height: 100%;
  object-fit: contain;
}

.cs-revolve-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.cs-revolve-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #d9d9d9;
  cursor: pointer;
}

.cs-revolve-dot.is-active {
  background: #ff3d32;
}

.gk-back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 60px auto 60px;
  background: transparent;
  border: 1.5px solid #111111;
  color: #111111;
  font-family: "Optician Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.gk-back-to-top:hover {
  background: #111111;
  color: #ffffff;
}

.gk-back-to-top-icon {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
  transition: filter 0.2s ease;
}

.gk-back-to-top:hover .gk-back-to-top-icon {
  filter: invert(1);
}

@media (max-width: 600px) {
  .cs-process-toggle {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    justify-content: center;
  }
}
