/* =========================================================================
   FIRST GROW — Inner page styles
   Case study pages (Service Provider, Personal Brand) + Selected Work archive
   Uses the same design tokens declared in css/style.css
   ========================================================================= */

/* -------------------------------------------------------------------------
   Shared page shell
   ------------------------------------------------------------------------- */
.page-main {
  position: relative;
  z-index: 5;
  background: var(--surface);
  padding-top: 120px;
}

@media (min-width: 768px) {
  .page-main {
    padding-top: 150px;
  }
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 34px;
  transition: color .3s ease, transform .3s ease;
}

.page-back:hover {
  color: var(--primary);
  text-decoration: none;
}

.page-back svg {
  width: 16px;
  height: 16px;
}

.page-back:hover svg {
  transform: translateX(-4px);
  transition: transform .3s ease;
}

/* =========================================================================
   CASE STUDY — hero
   ========================================================================= */
.cs-section {
  padding: 0 var(--margin-mobile) 90px;
}

@media (min-width: 768px) {
  .cs-section {
    padding: 0 var(--margin-desktop) 120px;
  }
}

.cs-hero {
  align-items: center;
}

.cs-hero-copy {
  padding-bottom: 40px;
}

@media (min-width: 992px) {
  .cs-hero-copy {
    padding-bottom: 0;
    padding-right: 40px;
  }
}

.cs-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid rgba(177, 247, 47, 0.35);
  border-radius: 999px;
  background: rgba(177, 247, 47, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 26px;
}

.cs-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(177, 247, 47, 0.9);
  animation: csPulse 2s ease-in-out infinite;
}

@keyframes csPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

.cs-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .cs-title {
    font-size: 56px;
  }
}

.cs-title span {
  display: block;
  color: var(--primary);
  text-shadow: 0 0 26px rgba(177, 247, 47, 0.45);
}

.cs-lede {
  border-left: 2px solid rgba(125, 244, 255, 0.45);
  padding-left: 20px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--on-surface-variant);
  margin-bottom: 0;
  max-width: 420px;
}

.cs-hero-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid rgba(125, 244, 255, 0.22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(125, 244, 255, 0.07);
  background: #05090c;
}

@supports not (aspect-ratio: 16 / 11) {
  .cs-hero-media {
    height: 0;
    padding-bottom: 68%;
  }
}

.cs-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(.6) brightness(.7) contrast(1.05);
  transition: filter .6s ease, transform .6s ease;
  padding: 32px;
}

.cs-hero-media:hover img {
  filter: grayscale(.1) brightness(.92);
  transform: scale(1.03);
}

.cs-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 12, 16, .35), rgba(6, 12, 16, 0) 40%, rgba(6, 12, 16, .55)),
    radial-gradient(circle at 30% 30%, rgba(177, 247, 47, .12), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(125, 244, 255, .12), transparent 60%);
  pointer-events: none;
}

.cs-hero-caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tertiary);
  background: linear-gradient(180deg, rgba(6, 12, 16, 0), rgba(4, 9, 12, .9));
}

/* =========================================================================
   CASE STUDY — challenge / approach / outcome
   ========================================================================= */
.cs-panels {
  padding-bottom: 20px;
}

.cs-panels>[class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
}

@media (max-width: 991.98px) {
  .cs-panels>[class*="col-"]+[class*="col-"] {
    margin-top: var(--gutter);
  }
}

.cs-panel {
  position: relative;
  height: 100%;
  padding: 30px 28px;
  background: var(--surface-container);
  border: 1px solid rgba(66, 73, 53, 0.45);
  overflow: hidden;
  transition: border-color .4s ease, transform .4s ease;
}

.cs-panel::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 247, 47, .12), transparent 70%);
  pointer-events: none;
}

.cs-panel--cyan::before {
  background: radial-gradient(circle, rgba(125, 244, 255, .12), transparent 70%);
}

.cs-panel:hover {
  border-color: rgba(177, 247, 47, 0.35);
  transform: translateY(-4px);
}

.cs-panel--cyan:hover {
  border-color: rgba(125, 244, 255, 0.35);
}

.cs-panel-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}

.cs-panel-head svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex: 0 0 auto;
}

.cs-panel--cyan .cs-panel-head svg {
  color: var(--tertiary);
}

.cs-panel-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  color: #ffffff;
  margin: 0;
}

.cs-panel p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--on-surface-variant);
  margin: 0;
}

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

.cs-list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-surface-variant);
}

.cs-list li+li {
  margin-top: 13px;
}

.cs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 0;
  height: 0;
  border-left: 5px solid var(--primary);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: .85;
}

.cs-panel--cyan .cs-list li::before {
  border-left-color: var(--tertiary);
}

/* =========================================================================
   CASE STUDY — "What We Did" icon services strip
   ========================================================================= */
.cs-services {
  padding-bottom: 0;
}

.cs-services-head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 28px;
}

.cs-services-strip {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(140, 148, 123, 0.22);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-container);
}

.cs-service-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 16px;
  text-align: center;
  position: relative;
  transition: background .3s ease;
}

.cs-service-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(140, 148, 123, 0.22);
}

.cs-service-item:last-child::after {
  display: none;
}

.cs-service-item:hover {
  background: rgba(177, 247, 47, 0.05);
}

.cs-service-item svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s ease, transform .3s ease;
}

.cs-service-item:hover svg {
  stroke: var(--tertiary);
  transform: translateY(-3px);
}

.cs-service-item span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--on-surface-variant);
  line-height: 1.4;
  transition: color .3s ease;
}

.cs-service-item:hover span {
  color: var(--on-surface);
}

@media (max-width: 767.98px) {
  .cs-services-strip {
    flex-wrap: wrap;
  }
  .cs-service-item {
    flex: 1 1 33.33%;
    min-width: 33.33%;
    padding: 22px 10px;
  }
  .cs-service-item::after {
    top: 15%;
    height: 70%;
  }
  .cs-service-item svg {
    width: 28px;
    height: 28px;
  }
  .cs-service-item span {
    font-size: 11px;
  }
}

@media (max-width: 479.98px) {
  .cs-service-item {
    flex: 1 1 50%;
    min-width: 50%;
  }
}

/* =========================================================================
   CASE STUDY — What We Did + filters
   ========================================================================= */
.cs-work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(66, 73, 53, 0.45);
  margin-bottom: 34px;
}

.cs-work-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: #ffffff;
  margin: 0;
}

@media (min-width: 768px) {
  .cs-work-head h2 {
    font-size: 32px;
  }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-btn {
  padding: 8px 17px;
  border: 1px solid rgba(66, 73, 53, 0.8);
  border-radius: 999px;
  background: var(--surface-container-lowest);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease, background-color .3s ease;
}

.filter-btn:hover {
  color: var(--on-surface);
  border-color: rgba(140, 148, 123, 0.7);
}

.filter-btn.is-active {
  color: var(--primary);
  border-color: rgba(177, 247, 47, 0.55);
  background: rgba(177, 247, 47, 0.09);
}

/* Dynamic 4-Column Balanced Bento Grid (Zero Gaps) */
.vid-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.vid-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(66, 73, 53, 0.55);
  background: var(--surface-container-lowest);
  transition: border-color .4s ease, transform .4s ease, box-shadow .4s ease;
}

.vid-card--landscape {
  aspect-ratio: 16 / 9;
}

@media (min-width: 600px) and (max-width: 991.98px) {
  .vid-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 105px;
    grid-auto-flow: dense;
    gap: 20px;
  }

  .vid-col {
    grid-column: span 1;
    grid-row: span 4;
  }

  .vid-col--landscape {
    grid-column: span 2;
    grid-row: span 3;
  }

  .vid-card,
  .vid-card--landscape {
    height: 100%;
    aspect-ratio: unset;
  }
}

@media (min-width: 992px) {
  .vid-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 105px;
    grid-auto-flow: dense;
    gap: 20px;
  }

  .vid-col {
    grid-column: span 1;
    grid-row: span 4;
    width: 100%;
    margin-bottom: 0;
    padding: 0;
  }

  .vid-col--landscape {
    grid-column: span 2;
    grid-row: span 3;
    width: 100%;
  }

  .vid-card,
  .vid-card--landscape {
    height: 100%;
    aspect-ratio: unset;
  }
}

.vid-col {
  box-sizing: border-box;
  min-width: 0;
}

.vid-col.is-hidden {
  display: none !important;
}

.vid-card:hover {
  border-color: rgba(177, 247, 47, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55);
  text-decoration: none;
}

.vid-card--cyan:hover {
  border-color: rgba(125, 244, 255, 0.5);
}

.vid-thumb {
  position: absolute;
  inset: 0;
  background-color: #060c10;
  background-image:
    linear-gradient(rgba(140, 148, 123, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 148, 123, .07) 1px, transparent 1px);
  background-size: 26px 26px;
}

.vid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.75) brightness(.5);
  transition: filter .5s ease, transform .5s ease;
}

.vid-card:hover .vid-thumb img {
  filter: grayscale(.15) brightness(.8);
  transform: scale(1.05);
}

.vid-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(177, 247, 47, .1), transparent 62%),
    linear-gradient(180deg, rgba(6, 12, 16, .2), rgba(4, 9, 12, .92));
}

.vid-card--cyan .vid-thumb::after {
  background: radial-gradient(circle at 50% 42%, rgba(125, 244, 255, .1), transparent 62%),
    linear-gradient(180deg, rgba(6, 12, 16, .2), rgba(4, 9, 12, .92));
}

.vid-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: rgba(6, 12, 16, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(177, 247, 47, .35);
  transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease;
}

.vid-play svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
  margin-left: 2px;
}

.vid-card--cyan .vid-play {
  border-color: var(--tertiary);
  box-shadow: 0 0 20px rgba(125, 244, 255, .35);
}

.vid-card--cyan .vid-play svg {
  color: var(--tertiary);
}

.vid-card:hover .vid-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(177, 247, 47, .16);
  box-shadow: 0 0 30px rgba(177, 247, 47, .5);
}

.vid-card--cyan:hover .vid-play {
  background: rgba(125, 244, 255, .16);
  box-shadow: 0 0 30px rgba(125, 244, 255, .5);
}

.vid-tag {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  background: rgba(6, 12, 16, .8);
  border: 1px solid rgba(66, 73, 53, .8);
}

.vid-caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 15px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--primary);
  background: linear-gradient(180deg, rgba(4, 9, 12, 0), rgba(4, 9, 12, .95));
}

.vid-card--cyan .vid-caption {
  color: var(--tertiary);
}

.vid-empty {
  padding: 40px 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* =========================================================================
   Instagram Embed Cropping (Hides Top Header & Bottom Likes/Footer)
   ========================================================================= */
.vid-card,
.vid-video-wrap,
.sw-card,
.sw-video-wrap,
.ts-video-wrap,
#fgVideoModalBody {
  overflow: hidden !important;
}

.vid-video-frame.is-instagram-frame,
.sw-video-frame.is-instagram-frame,
.ts-video-frame.is-instagram-frame,
#fgVideoModalBody iframe.is-instagram-frame {
  display: block !important;
  position: absolute !important;
  top: -58px !important;
  left: -2% !important;
  right: -2% !important;
  bottom: auto !important;
  width: 104% !important;
  height: calc(100% + 140px) !important;
  border: none !important;
  z-index: 5 !important;
  background: #000 !important;
}

.vid-video-close,
.sw-video-close,
.ts-video-close {
  z-index: 20 !important;
}


/* =========================================================================
   CASE STUDY — results strip
   ========================================================================= */
.cs-results {
  margin-top: 60px;
  padding: 40px 12px;
  background: var(--surface-container);
  border: 1px solid rgba(66, 73, 53, 0.45);
}

@media (min-width: 768px) {
  .cs-results {
    margin-top: 80px;
    padding: 50px 24px;
  }
}

.cs-result {
  text-align: center;
  padding: 14px 6px;
}

.cs-result-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  color: var(--primary);
  text-shadow: 0 0 22px rgba(177, 247, 47, .4);
  margin-bottom: 9px;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .cs-result-num {
    font-size: 42px;
  }
}

.cs-result--cyan .cs-result-num {
  color: var(--tertiary);
  text-shadow: 0 0 22px rgba(125, 244, 255, .4);
}

.cs-result-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

@media (min-width: 768px) {
  .cs-result-label {
    font-size: 11.5px;
  }
}

/* Next case study strip */
.cs-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 70px;
  padding: 30px 28px;
  border: 1px solid rgba(66, 73, 53, .45);
  background: var(--surface-container-lowest);
}

.cs-next-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 7px;
}

.cs-next-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: #ffffff;
  margin: 0;
}

.cs-next-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(177, 247, 47, .35);
  background: rgba(177, 247, 47, .04);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

.cs-next-cta:hover {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.cs-next-cta svg {
  width: 17px;
  height: 17px;
  transition: transform .35s ease;
}

.cs-next-cta:hover svg {
  transform: translateX(5px);
}

/* =========================================================================
   SELECTED WORK (Content & Videos)
   ========================================================================= */
.sw-section {
  padding: 0 var(--margin-mobile) 90px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .sw-section {
    padding: 0 var(--margin-desktop) 120px;
  }
}

.sw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 3vw, 12px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.sw-meta span:last-child {
  color: var(--tertiary);
}

.sw-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 9vw, 52px);
  line-height: .95;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 24px;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .sw-title {
    font-size: clamp(60px, 9.5vw, 96px);
    margin-bottom: 30px;
  }
}

@media (min-width: 1200px) {
  .sw-title {
    font-size: 130px;
  }
}

.sw-title span {
  display: block;
  color: var(--primary);
  text-shadow: 0 0 40px rgba(177, 247, 47, .45), 0 0 100px rgba(177, 247, 47, .18);
}

.sw-sub {
  border-left: 2px solid var(--primary);
  padding-left: 14px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .sw-sub {
    padding-left: 16px;
    margin-bottom: 40px;
  }
}

.sw-sub p {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-surface);
  margin: 0 0 6px;
}

@media (min-width: 768px) {
  .sw-sub p {
    font-size: 13.5px;
    letter-spacing: .1em;
  }
}

.sw-sub small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(140, 148, 123, .8);
  word-break: break-word;
}

@media (min-width: 768px) {
  .sw-sub small {
    font-size: 10.5px;
    letter-spacing: .12em;
  }
}

/* Terminal tabs */
.sw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .sw-tabs {
    gap: 4px;
    margin-bottom: 40px;
  }
}

.sw-tab {
  padding: 8px 16px;
  border: 1px solid rgba(66, 73, 53, .8);
  background: var(--surface-container-lowest);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  cursor: pointer;
  box-sizing: border-box;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}

@media (min-width: 768px) {
  .sw-tab {
    padding: 11px 22px;
    font-size: 12px;
    letter-spacing: .1em;
  }
}

.sw-tab:hover {
  color: var(--on-surface);
  border-color: rgba(140, 148, 123, .7);
}

.sw-tab.is-active {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
}

/* Bento grid */
.sw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .sw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .sw-item--wide {
    grid-column: span 2;
  }
}

@media (min-width: 992px) {

  /* row = 84px, gap = 14px, so 3 rows = 280px and 6 rows = 574px:
     the tall card lines up exactly with two stacked half cards */
  .sw-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 84px;
    gap: 14px;
  }

  .sw-item--tall {
    grid-column: span 7;
    grid-row: span 6;
  }

  .sw-item--half {
    grid-column: span 5;
    grid-row: span 3;
  }

  .sw-item--small {
    grid-column: span 4;
    grid-row: span 3;
  }

  .sw-item--wide {
    grid-column: span 12;
    grid-row: span 4;
  }

  .sw-item--wide .sw-card-body {
    padding-left: 46px;
  }

  /* 9:16 Reel & Shorts vertical format */
  .sw-item--portrait {
    grid-column: span 4;
    grid-row: span 6;
  }

  /* 16:9 Standard Video landscape format */
  .sw-item--landscape {
    grid-column: span 6;
    grid-row: span 4;
  }
}

@media (min-width: 1200px) {
  .sw-item--portrait {
    grid-column: span 3;
    grid-row: span 5;
  }
}

.sw-item {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.sw-item.is-hidden {
  display: none;
}

.sw-card--portrait {
  aspect-ratio: 9 / 16;
  width: 100%;
}

@media (max-width: 575.98px) {
  .sw-card--portrait {
    max-height: 540px;
  }
}

.sw-card--portrait .sw-card-media {
  min-height: 280px;
}

.sw-card--landscape {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.sw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-width: 0;
  min-height: 230px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(66, 73, 53, .6);
  background: var(--surface-container-lowest);
  transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}

.sw-card:hover {
  border-color: rgba(177, 247, 47, .5);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .55);
  transform: translateY(-3px);
  text-decoration: none;
}

.sw-card--cyan:hover {
  border-color: rgba(125, 244, 255, .5);
}

.sw-card-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(6, 12, 16, .75);
  border-bottom: 1px solid rgba(66, 73, 53, .6);
}

.sw-card-bar em {
  font-style: normal;
  color: rgba(140, 148, 123, .9);
}

.sw-card--cyan .sw-card-bar {
  color: var(--tertiary);
}

.sw-card-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 180px;
  background-color: #050a0d;
  background-image:
    linear-gradient(rgba(140, 148, 123, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 148, 123, .06) 1px, transparent 1px);
  background-size: 30px 30px;
  overflow: hidden;
}

.sw-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(.15) brightness(.8) contrast(1.05);
  transition: filter .4s ease, transform .4s ease;
}

.sw-card:hover .sw-card-media img {
  filter: grayscale(0) brightness(.98);
  transform: scale(1.04);
}

.sw-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 60% 30%, rgba(177, 247, 47, .06), transparent 58%),
    linear-gradient(180deg, rgba(5, 10, 13, .1) 0%, rgba(5, 10, 13, 0) 30%, rgba(4, 9, 12, .88) 100%);
  pointer-events: none;
}

.sw-card--cyan .sw-card-media::after {
  background:
    radial-gradient(circle at 60% 30%, rgba(125, 244, 255, .09), transparent 58%),
    linear-gradient(180deg, rgba(5, 10, 13, .25) 0%, rgba(5, 10, 13, .1) 40%, rgba(4, 9, 12, .96) 100%);
}

.sw-chips {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sw-chip {
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-surface);
  background: rgba(6, 12, 16, .85);
  border: 1px solid rgba(66, 73, 53, .9);
}

.sw-chip--lime {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
}

.sw-chip--cyan {
  color: var(--tertiary);
  border-color: rgba(125, 244, 255, .45);
  background: rgba(125, 244, 255, .08);
}

.sw-card-body {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 22px 22px;
}

.sw-card-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .01em;
  color: #ffffff;
  margin: 0 0 7px;
}

@media (min-width: 992px) {
  .sw-item--tall .sw-card-body h3 {
    font-size: 26px;
  }

  .sw-item--wide .sw-card-body h3 {
    font-size: 24px;
  }
}

.sw-card-body p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin: 0;
}

.sw-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: rgba(6, 12, 16, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(177, 247, 47, .3);
  transition: transform .35s ease, background-color .35s ease, box-shadow .35s ease;
}

.sw-play svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
  margin-left: 2px;
}

.sw-card--cyan .sw-play {
  border-color: var(--tertiary);
  box-shadow: 0 0 22px rgba(125, 244, 255, .3);
}

.sw-card--cyan .sw-play svg {
  color: var(--tertiary);
}

.sw-card:hover .sw-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(177, 247, 47, .16);
  box-shadow: 0 0 32px rgba(177, 247, 47, .5);
}

.sw-card--cyan:hover .sw-play {
  background: rgba(125, 244, 255, .16);
  box-shadow: 0 0 32px rgba(125, 244, 255, .5);
}

/* live-stream progress row */
.sw-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.sw-progress-track {
  position: relative;
  flex: 1 1 auto;
  max-width: 260px;
  height: 2px;
  background: rgba(140, 148, 123, .3);
}

.sw-progress-track i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 36%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(177, 247, 47, .8);
}

.sw-side-label {
  position: absolute;
  z-index: 3;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: .8;
}

@media (max-width: 991.98px) {
  .sw-side-label {
    display: none;
  }
}

/* Load more */
.sw-more-wrap {
  margin-top: 46px;
  padding-top: 40px;
  border-top: 1px solid rgba(66, 73, 53, .45);
  text-align: center;
}

.sw-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: clamp(10.5px, 3.2vw, 12px);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(177, 247, 47, .45);
  background: rgba(177, 247, 47, .05);
  cursor: pointer;
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}

@media (min-width: 768px) {
  .sw-more {
    padding: 15px 30px;
    gap: 12px;
    letter-spacing: .16em;
    font-size: 12px;
  }
}

.sw-more:hover {
  color: var(--on-primary);
  background: var(--primary);
  box-shadow: 0 0 34px rgba(177, 247, 47, .3);
}

.sw-more[disabled] {
  color: var(--on-surface-variant);
  border-color: rgba(66, 73, 53, .8);
  background: transparent;
  cursor: default;
  box-shadow: none;
}

.sw-more svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* =========================================================================
   LEGAL / POLICY PAGES (Privacy Policy, Terms & Conditions)
   ========================================================================= */
.legal-section {
  padding: 0 var(--margin-mobile) 100px;
}

@media (min-width: 768px) {
  .legal-section {
    padding: 0 var(--margin-desktop) 130px;
  }
}

.legal-container {
  max-width: 880px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(177, 247, 47, 0.08);
  border: 1px solid rgba(177, 247, 47, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-surface-variant);
  letter-spacing: 0.05em;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legal-content {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
  margin: 40px 0 16px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.legal-content h2::before {
  content: '';
  display: inline-block;
  width: 3.5px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--tertiary);
  margin: 24px 0 10px;
}

.legal-content p {
  margin-bottom: 18px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
  margin-bottom: 22px;
}

.legal-content li {
  margin-bottom: 10px;
  position: relative;
}

.legal-content strong {
  color: #ffffff;
  font-weight: 600;
}

.legal-card {
  background: rgba(4, 22, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 28px 0;
}

.legal-card.highlight {
  border-left: 3px solid var(--primary);
  background: rgba(177, 247, 47, 0.04);
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-contact-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0;
}

.legal-contact-list li {
  padding: 4px 0;
  font-size: 14px;
}

.legal-contact-list strong {
  color: var(--primary);
}