/*
  revox — About Page Component System
  Additive layer on top of case-study.css: same --theme/--body/--white/--text/--bg
  tokens (defined in :root by revox-blog-inline-css), same Kanit / Big Shoulders
  Display fonts, same .cs- namespace and section/card/timeline/stat/gallery shapes.

  This file only adds rules case-study.css does not already provide — it never
  redefines .cs-hero, .cs-section, .cs-card, .cs-timeline, .cs-stats, .cs-gallery,
  .cs-next, etc. Both files are linked together on any page that needs them.
*/

.cs-about {
  overflow: clip;
}

/* Reusable button row — hero CTAs and the closing CTA both need two
   .theme-btn buttons side by side instead of the single-button layout
   case-study.css was built for. */
.cs-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.cs-next__content .cs-btn-row {
  justify-content: center;
}

.cs-next__content .cs-philosophy__sub {
  margin-bottom: 40px;
}

/* Generic tag row — same chip look as .cs-hero__meta dd.cs-tags, usable
   outside a hero meta list (e.g. the role chips under "Who I Am"). */
.cs-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* ---------------------------------------------------------
   Hero "watch the work" panel — an honest, on-brand cinematic
   placeholder used instead of a literal portrait until a real
   showreel frame / photo is dropped in. Swap the <img> src and,
   optionally, turn it into a real video trigger later.
--------------------------------------------------------- */
.cs-reel {
  position: relative;
  display: block;
}

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

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

.cs-reel__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 6, 0.25) 0%, rgba(6, 6, 6, 0.7) 100%);
}

.cs-reel:hover .cs-reel__frame img {
  transform: scale(1.04);
}

.cs-reel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-align: center;
}

.cs-reel__icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(6, 6, 6, 0.35);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease-in-out;
}

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

.cs-reel__play strong {
  font-family: "Kanit", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cs-reel__badge {
  position: absolute;
  left: -24px;
  bottom: -24px;
  z-index: 2;
  max-width: 240px;
  background: var(--theme);
  color: var(--body);
  border-radius: 12px;
  padding: 18px 22px;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-transform: uppercase;
  box-shadow: 12px 12px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 991px) {
  .cs-reel__badge {
    left: 16px;
    bottom: -18px;
    padding: 14px 18px;
  }
}

/* ---------------------------------------------------------
   Card bullet list — used inside "What I Do" service cards
--------------------------------------------------------- */
.cs-card__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.cs-card__list li {
  position: relative;
  padding-left: 18px;
  font-family: "Kanit", sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
}

.cs-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 1px;
  background: var(--theme);
}

/* 4-up card grid — What I Do */
.cs-cards--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

/* ---------------------------------------------------------
   Philosophy — large centered cinematic pull-quote
--------------------------------------------------------- */
.cs-philosophy {
  text-align: center;
}

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

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

.cs-philosophy__quote {
  max-width: 920px;
  margin: 0 auto 32px;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  text-transform: uppercase;
}

.cs-philosophy__quote em {
  font-style: normal;
  color: var(--theme);
}

.cs-philosophy__sub {
  max-width: 520px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

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

/* ---------------------------------------------------------
   Selected Projects — preview grid
--------------------------------------------------------- */
.cs-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

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

.cs-project-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease-in-out;
}

.cs-project-card:hover {
  border-color: rgba(191, 247, 71, 0.4);
}

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

.cs-project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 6, 0) 40%, rgba(6, 6, 6, 0.92) 100%);
}

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

.cs-project-card__body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.cs-project-card__body h3 {
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--white);
}

.cs-project-card__body span {
  font-family: "Kanit", sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

.cs-project-card__arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease-in-out;
}

.cs-project-card:hover .cs-project-card__arrow {
  background: var(--theme);
  border-color: var(--theme);
  color: var(--body);
  transform: rotate(45deg);
}

/* Placeholder tile — used for projects awaiting a dedicated case study */
.cs-project-card--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(191, 247, 71, 0.12), transparent 60%), var(--bg, #1a1a1a);
}

.cs-project-card--placeholder::after {
  content: none;
}

.cs-project-card--placeholder .cs-project-card__body {
  position: static;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.cs-project-card__tag {
  display: inline-block;
  margin-bottom: 14px;
  font-family: "Kanit", sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--theme);
  border: 1px solid rgba(191, 247, 71, 0.3);
  border-radius: 100px;
  padding: 5px 12px;
}

/* ---------------------------------------------------------
   Behind the Scenes — icon placeholder tiles, reusing the
   .cs-gallery grid from case-study.css. Swap a tile's contents
   for a real <img> the same way the case-study galleries do
   once production photos are ready.
--------------------------------------------------------- */
.cs-gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(155deg, #141414 0%, #060606 100%);
}

.cs-gallery__placeholder i {
  font-size: 20px;
  color: var(--theme);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(191, 247, 71, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-gallery__placeholder span {
  font-family: "Kanit", sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}
