/*
  revox — Case Study Component System
  Shared, reusable design layer for all premium case study pages
  (Naqiago, Mawrooth, Telus Bikes, Korssi, Optinoble, Ilye Cosmetics, ...).

  Namespaced under `.cs-` so it never collides with theme/Elementor classes.
  Built on top of existing site tokens defined in :root by revox-blog-inline-css:
  --theme (#BFF747), --body (#060606), --white, --text (#888), --bg, --bg2, --header.
  Do not duplicate this file per case study — link to this single stylesheet
  and only change the HTML content + images per project.
*/

.cs-case-study {
  overflow: clip;
}

.cs-case-study img {
  max-width: 100%;
  height: auto;
  display: block;
}

.cs-case-study a {
  text-decoration: none;
}

.cs-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------
   Kicker / eyebrow label — reused above every section title
--------------------------------------------------------- */
.cs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Kanit", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--theme);
  margin-bottom: 18px;
}

.cs-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--theme);
  display: inline-block;
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.cs-hero {
  padding: 70px 0 110px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.cs-hero__info {
  order: 1;
}

.cs-hero__media {
  order: 2;
  position: relative;
}

.cs-hero__title {
  font-size: 96px;
  line-height: 0.98;
  margin-bottom: 28px;
}

@media (max-width: 1600px) {
  .cs-hero__title {
    font-size: 78px;
  }
}

@media (max-width: 767px) {
  .cs-hero__title {
    font-size: 54px;
  }
}

.cs-hero__lead {
  font-size: 18px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.cs-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  padding: 32px 0;
  margin-bottom: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-hero__meta dt {
  font-family: "Kanit", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.cs-hero__meta dd {
  margin: 0;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-tags--lg .cs-tag {
  font-size: 16px;
  padding: 10px 20px;
}

.cs-tag {
  font-family: "Kanit", sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  color: var(--white);
  background: rgba(191, 247, 71, 0.08);
  border: 1px solid rgba(191, 247, 71, 0.25);
  border-radius: 100px;
  padding: 6px 14px;
  transition: all 0.3s ease-in-out;
}

.cs-tag:hover {
  background: var(--theme);
  color: var(--body);
  border-color: var(--theme);
}

.cs-hero__media-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.cs-hero__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-hero__media:hover .cs-hero__media-frame img {
  transform: scale(1.04);
}

.cs-hero__badge {
  position: absolute;
  left: -24px;
  bottom: -24px;
  background: var(--theme);
  color: var(--body);
  border-radius: 12px;
  padding: 18px 24px;
  font-family: "Big Shoulders Display", sans-serif;
  text-transform: uppercase;
  box-shadow: 12px 12px 40px rgba(0, 0, 0, 0.35);
}

.cs-hero__badge strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.cs-hero__badge span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}

@media (max-width: 991px) {
  .cs-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cs-hero__info {
    order: 2;
  }
  .cs-hero__media {
    order: 1;
  }
  .cs-hero__badge {
    left: 16px;
    bottom: -20px;
  }
}

/* ---------------------------------------------------------
   Generic section shell — reused by every content block
--------------------------------------------------------- */
.cs-section {
  padding: 110px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991px) {
  .cs-section {
    padding: 70px 0;
  }
}

@media (max-width: 575px) {
  .cs-section {
    padding: 56px 0;
  }
}

.cs-section--tight {
  padding-top: 0;
}

.cs-section__head {
  max-width: 760px;
  margin-bottom: 48px;
}

.cs-section__head h2 {
  font-size: 52px;
}

@media (max-width: 767px) {
  .cs-section__head h2 {
    font-size: 36px;
  }
}

.cs-section__body p {
  font-size: 17px;
  line-height: 1.85;
  max-width: 780px;
}

.cs-section__body p + p {
  margin-top: 20px;
}

.cs-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}

@media (max-width: 991px) {
  .cs-grid-2 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------------------------------------------------------
   Challenge — cinematic pull statement
--------------------------------------------------------- */
.cs-quote {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--theme);
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  text-transform: uppercase;
  max-width: 640px;
}

@media (max-width: 767px) {
  .cs-quote {
    font-size: 24px;
  }
}

/* ---------------------------------------------------------
   Numbered text list — standalone version of the theme's
   .text-list pattern (theme's original is scoped under
   .project-details-wrapper .bottom-content-items and does not
   apply outside that structure, so it's redefined here to be
   reusable across any case study section, e.g. My Role).
--------------------------------------------------------- */
.cs-case-study .text-list {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

@media (max-width: 1199px) {
  .cs-case-study .text-list {
    flex-wrap: wrap;
    gap: 30px;
  }
}

.cs-case-study .text-list ul li {
  margin-top: 32px;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  font-family: "Big Shoulders Display", sans-serif;
  text-transform: uppercase;
}

.cs-case-study .text-list ul li:first-child {
  margin-top: 0;
}

.cs-case-study .text-list ul li b {
  font-size: 20px;
  font-weight: 700;
  color: var(--theme);
  margin-right: 6px;
  font-family: "Big Shoulders Display", sans-serif;
}

.cs-case-study .text-list ul li p {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  font-family: "Kanit", sans-serif;
  text-transform: none;
  max-width: 330px;
  margin-top: 6px;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Card — base unit reused across Objectives, Role, Creative
   Direction, Motion Graphics and Equipment
--------------------------------------------------------- */
.cs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.cs-cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

@media (max-width: 1199px) {
  .cs-cards--3,
  .cs-cards--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .cs-cards--3,
  .cs-cards--5 {
    grid-template-columns: 1fr;
  }
}

.cs-card {
  background: var(--bg, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 26px;
  transition: all 0.35s ease-in-out;
}

.cs-card:hover {
  border-color: rgba(191, 247, 71, 0.4);
  transform: translateY(-4px);
}

.cs-card__num {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--theme);
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: block;
}

.cs-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(191, 247, 71, 0.1);
  color: var(--theme);
  font-size: 17px;
  margin-bottom: 18px;
}

.cs-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.cs-card p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ---------------------------------------------------------
   Process timeline — reused by Production & Editing Process
--------------------------------------------------------- */
.cs-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-step {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-step:first-child {
  border-top: none;
}

.cs-step__num {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}

.cs-step__content h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.cs-step__content p {
  font-size: 15px;
  line-height: 1.75;
  max-width: 640px;
  margin: 0;
}

@media (max-width: 575px) {
  .cs-step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }
  .cs-step__num {
    font-size: 30px;
  }
}

/* ---------------------------------------------------------
   Results — animated stat cards (uses existing .count +
   counterUp already wired sitewide via main*.js)
--------------------------------------------------------- */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 991px) {
  .cs-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .cs-stats {
    grid-template-columns: 1fr;
  }
}

.cs-stat {
  background: var(--bg, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: left;
  transition: all 0.35s ease-in-out;
}

.cs-stat:hover {
  border-color: rgba(191, 247, 71, 0.4);
  background: rgba(191, 247, 71, 0.04);
}

.cs-stat__icon {
  color: var(--theme);
  font-size: 20px;
  margin-bottom: 16px;
}

.cs-stat h3 {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
  text-transform: none;
}

.cs-stat h3 sub {
  font-size: 26px;
  font-weight: 700;
  color: var(--theme);
}

.cs-stat p {
  font-family: "Kanit", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

.cs-stats-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text);
  font-style: italic;
}

/* Placeholder stat — same .cs-stat shape for a project whose real
   numbers aren't in yet. Deliberately does NOT use the .count class:
   jquery.counterup parses its text as a number, and non-numeric
   placeholder text breaks that parsing (it renders "undefined").
   Swap .cs-stat--placeholder for a plain .cs-stat and wrap the real
   figure in <span class="count"> once the number is confirmed. */
.cs-stat--placeholder {
  border-style: dashed;
}

.cs-stat--placeholder h3 {
  color: var(--text);
}

.cs-stat__edit {
  display: block;
  margin-top: 8px;
  font-family: "Kanit", sans-serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--text);
  opacity: 0.7;
}

/* Sub-group heading inside a section that stacks multiple stat/step
   groups (e.g. Results split into overall campaign vs. hero video). */
.cs-subhead {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 24px;
}

.cs-subhead:not(:first-child) {
  margin-top: 56px;
}

/* ---------------------------------------------------------
   Equipment list
--------------------------------------------------------- */
.cs-equipment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 767px) {
  .cs-equipment {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .cs-equipment {
    grid-template-columns: 1fr;
  }
}

.cs-equipment__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: var(--bg, #1a1a1a);
}

.cs-equipment__item i {
  color: var(--theme);
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.cs-equipment__item span {
  font-family: "Kanit", sans-serif;
  font-size: 15px;
  color: var(--white);
}

/* ---------------------------------------------------------
   Gallery — reusable, responsive, lightbox-ready
   To add images later: duplicate one .cs-gallery__item block,
   swap the href/src/alt, keep data-cs-lightbox="naqiago-gallery".
--------------------------------------------------------- */
.cs-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 16px;
}

.cs-gallery__item {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  grid-column: span 1;
  grid-row: span 1;
}

.cs-gallery__item--wide {
  grid-column: span 2;
}

.cs-gallery__item--tall {
  grid-row: span 2;
}

.cs-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 6, 0) 55%, rgba(6, 6, 6, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
}

.cs-gallery__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  color: var(--white);
  font-family: "Kanit", sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease-in-out;
  z-index: 1;
}

.cs-gallery__item:hover img {
  transform: scale(1.06);
}

.cs-gallery__item:hover::after,
.cs-gallery__item:hover .cs-gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .cs-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 260px;
  }
  .cs-gallery__item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 575px) {
  .cs-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .cs-gallery__item--wide {
    grid-column: span 1;
  }
  .cs-gallery__item--tall {
    grid-row: span 1;
  }
}

/* ---------------------------------------------------------
   Next project — full-bleed cinematic CTA
--------------------------------------------------------- */
.cs-next {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  isolation: isolate;
}

.cs-next__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cs-next__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.34);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-next:hover .cs-next__bg img {
  transform: scale(1.05);
}

/* When the next project has no real photography yet, the same
   placeholder system used in the hero/gallery fills the CTA background. */
.cs-next__bg .cs-media-ph {
  width: 100%;
  height: 100%;
}

.cs-next__content {
  text-align: center;
}

.cs-next__content .cs-kicker {
  justify-content: center;
}

.cs-next__content .cs-kicker::before {
  display: none;
}

.cs-next__title {
  font-size: 88px;
  margin-bottom: 32px;
}

@media (max-width: 767px) {
  .cs-next__title {
    font-size: 46px;
  }
}

.cs-next__content .theme-btn {
  display: inline-flex;
}

/* ---------------------------------------------------------
   Media placeholder — reusable stand-in for hero/gallery/video
   art before real photography or footage is available. Works
   inside .cs-hero__media-frame, .cs-gallery__item or .cs-video.
   Swap the .cs-media-ph div for a real <img>/<video> once the
   asset is ready — no other markup needs to change.
--------------------------------------------------------- */
.cs-media-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #12241a 0%, #171717 65%, #1a1a1a 100%);
}

.cs-media-ph i {
  color: var(--theme);
  font-size: 32px;
}

.cs-media-ph--lg i {
  font-size: 48px;
}

.cs-media-ph--accent {
  background: linear-gradient(155deg, #241318 0%, #171717 65%, #1a1a1a 100%);
}

.cs-media-ph--accent i {
  color: #e15c6d;
}

.cs-gallery__item--ph::after {
  opacity: 0.55;
}

.cs-gallery__item--ph .cs-gallery__caption {
  opacity: 1;
  transform: none;
}

/* Big typographic mark placeholder, e.g. inside a hero media
   frame that has no photo yet — pair with .cs-media-ph. */
.cs-hero-mark {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  line-height: 0.85;
  font-size: 108px;
  color: var(--theme);
  text-align: center;
}

.cs-hero-mark em {
  font-style: normal;
  color: var(--white);
}

.cs-hero-mark span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 16px;
  font-family: "Kanit", sans-serif;
}

@media (max-width: 767px) {
  .cs-hero-mark {
    font-size: 60px;
  }
}

/* Dashed "reserved for future content" card variant, used for
   sections that are ready to receive real assets later. */
.cs-card--placeholder {
  border-style: dashed;
}

.cs-card--placeholder p {
  font-style: italic;
  color: var(--text);
}

/* ---------------------------------------------------------
   Video showcase — large cinematic placeholders ready for
   embeds. Swap the .cs-media-ph child for a real <video> or
   <iframe> once footage is ready; keep .cs-video__play as the
   poster overlay if the embed provides its own thumbnail.
--------------------------------------------------------- */
.cs-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.cs-video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.cs-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-video__play i {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(191, 247, 71, 0.1);
  border: 1px solid rgba(191, 247, 71, 0.35);
  color: var(--theme);
  font-size: 22px;
  transition: all 0.3s ease-in-out;
}

.cs-video:hover .cs-video__play i {
  background: var(--theme);
  color: var(--body);
  transform: scale(1.08);
}

.cs-video__caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: var(--white);
  font-family: "Kanit", sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  z-index: 1;
}

.cs-video__caption strong {
  display: block;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* ---------------------------------------------------------
   People — credit cards for named collaborators/clients.
   Uses an initials avatar instead of a photo so nobody's
   likeness is implied without a real, approved image.
--------------------------------------------------------- */
.cs-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.cs-person {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--bg, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.35s ease-in-out;
}

.cs-person:hover {
  border-color: rgba(191, 247, 71, 0.4);
  transform: translateY(-4px);
}

.cs-person__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(191, 247, 71, 0.1);
  color: var(--theme);
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 18px;
}

.cs-person h3 {
  font-size: 17px;
  margin-bottom: 2px;
}

.cs-person p {
  font-size: 13px;
  color: var(--text);
  margin: 0;
  font-family: "Kanit", sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Noir — optional darker, cinematic variant for music/film/
   documentary case studies. Opt in by adding "cs-noir" next
   to "cs-case-study" on the .entry-content wrapper.
--------------------------------------------------------- */
.cs-noir {
  background: #000;
}

.cs-noir .cs-hero {
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(191, 247, 71, 0.05), transparent 65%), #000;
}

.cs-noir .cs-card,
.cs-noir .cs-stat,
.cs-noir .cs-equipment__item,
.cs-noir .cs-person {
  background: #0c0c0c;
  border-color: rgba(255, 255, 255, 0.06);
}

.cs-noir .cs-section {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
