/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.tw-head {
  padding-top: calc(var(--nav-h) + 56px);
  padding-left: var(--pad);
  padding-right: var(--pad);
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
}
.tw-eyebrow {
  font-size: 9px; font-weight: 700; letter-spacing: 5px;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.tw-eyebrow::before {
  content: ''; width: 16px; height: 1px;
  background: rgba(255,255,255,.22);
}
.tw-h1 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .88; letter-spacing: -1px; color: #fff;
}
.tw-h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ff6010, #1e9bff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tw-head-r {
  display: flex; flex-direction: column; gap: 16px;
  padding-bottom: 4px; max-width: 360px; justify-self: end;
}
.tw-desc {
  font-size: 13px; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,.4);
}
.tw-stats {
  display: flex; gap: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.tw-stat-n {
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px; line-height: 1; color: #fff; letter-spacing: -.5px;
}
.tw-stat-n em {
  font-style: normal;
  background: linear-gradient(100deg, #ff6010, #1e9bff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tw-stat-l {
  font-size: 8px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.2);
  display: block; margin-top: 3px;
}

/* ─────────────────────────────────────────
   FILTER BAR
───────────────────────────────────────── */
.tw-filters {
  display: flex; align-items: center; gap: 6px;
  padding: 0 var(--pad);
  border-top: 1px solid rgba(255,255,255,.08);
  overflow-x: auto;
  scrollbar-width: none;
}
.tw-filters::-webkit-scrollbar { display: none; }

.tw-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 9px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.1); background: none;
  padding: 9px 16px; border-radius: 100px;
  cursor: pointer; transition: all .22s; white-space: nowrap;
}
.tw-pill:hover {
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.25);
}
.tw-pill.active {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.05);
}

.tw-pill-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}
.tw-pill[data-cat="all"]       .tw-pill-dot { display: none; }
.tw-pill[data-cat="social"]    .tw-pill-dot { background: #1e9bff; }
.tw-pill[data-cat="paid"]      .tw-pill-dot { background: #7c35e8; }
.tw-pill[data-cat="events"]    .tw-pill-dot { background: #d42820; }
.tw-pill[data-cat="product"]   .tw-pill-dot { background: #ff6010; }
.tw-pill[data-cat="elearning"] .tw-pill-dot { background: #44d7ff; }
.tw-pill.active[data-cat="social"]    .tw-pill-dot { box-shadow: 0 0 8px rgba(30,155,255,.9); }
.tw-pill.active[data-cat="paid"]      .tw-pill-dot { box-shadow: 0 0 8px rgba(124,53,232,.9); }
.tw-pill.active[data-cat="events"]    .tw-pill-dot { box-shadow: 0 0 8px rgba(212,40,32,.9); }
.tw-pill.active[data-cat="product"]   .tw-pill-dot { box-shadow: 0 0 8px rgba(255,96,16,.9); }
.tw-pill.active[data-cat="elearning"] .tw-pill-dot { box-shadow: 0 0 8px rgba(68,215,255,.9); }

.tw-count {
  margin-left: auto;
  font-size: 9px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   GRID — uniform 3-col, 16:9, gap 14px
───────────────────────────────────────── */
.tw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 36px var(--pad) 64px;
}
.tw-card {
  position: relative;
  aspect-ratio: 16/9;
  background: #0e0e14;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}
.tw-card.hide { display: none; }

.tw-card-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.tw-card:hover .tw-card-bg { transform: scale(1.05); }

/* gradient overlay — always on, deepens on hover */
.tw-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,6,10,.92) 0%,
    rgba(6,6,10,.6)  40%,
    rgba(6,6,10,.2)  70%,
    rgba(6,6,10,.08) 100%
  );
  pointer-events: none; z-index: 1;
  opacity: .85;
  transition: opacity .3s;
}
.tw-card:hover::after { opacity: 1; }

/* number — top-left corner */
.tw-card-n {
  position: absolute; top: 14px; left: 16px; z-index: 3;
  font-family: 'Inter Tight', sans-serif;
  font-size: 10px; letter-spacing: 4px;
  color: rgba(255,255,255,.55); line-height: 1;
}
/* category — top-right (always visible, subtle) */
.tw-card-c {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  display: flex; align-items: center; gap: 6px;
  font-size: 7px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.4);
}
.tw-card-c-dot {
  width: 5px; height: 5px; border-radius: 50%;
}

/* title — bottom-left, always visible */
.tw-card-t {
  position: absolute; bottom: 16px; left: 16px; right: 50px; z-index: 3;
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(14px, 1.5vw, 19px);
  letter-spacing: .3px; line-height: 1.05;
  color: #fff; text-transform: uppercase;
}

/* play icon — bottom-right, fades in */
.tw-card-p {
  position: absolute; bottom: 14px; right: 14px; z-index: 4;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff;
  opacity: 0; transform: scale(.8);
  transition: opacity .25s, transform .35s cubic-bezier(.16,1,.3,1);
}
.tw-card:hover .tw-card-p { opacity: 1; transform: scale(1); }

/* gradient palettes */
.bg-social    { background: radial-gradient(ellipse at 50% 30%, rgba(30,155,255,.45),  #050c18 70%); }
.bg-paid      { background: radial-gradient(ellipse at 50% 30%, rgba(124,53,232,.45),  #08060f 70%); }
.bg-events    { background: radial-gradient(ellipse at 50% 30%, rgba(212,40,32,.45),   #100506 70%); }
.bg-product   { background: radial-gradient(ellipse at 50% 30%, rgba(255,96,16,.45),   #100800 70%); }
.bg-elearning { background: radial-gradient(ellipse at 50% 30%, rgba(68,215,255,.38),  #040c0c 70%); }

/* ─────────────────────────────────────────
   CTA STRIP
───────────────────────────────────────── */
.tw-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.tw-cta-h {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(22px, 2.6vw, 36px);
  letter-spacing: -.3px; color: #fff; line-height: 1;
}
.tw-cta-h em {
  font-style: normal;
  background: linear-gradient(100deg, #ff6010, #1e9bff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tw-cta-sub {
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,.3); margin-top: 5px;
}
.tw-cta-btn {
  flex-shrink: 0;
  font-size: 9px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.25);
  padding: 13px 26px; border-radius: 100px;
  text-decoration: none; transition: all .25s;
}
.tw-cta-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.04);
}

/* ─────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────── */
.tw-lb {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
.tw-lb.open { opacity: 1; pointer-events: all; }
.tw-lb-bd {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.9); backdrop-filter: blur(16px); cursor: pointer;
}
.tw-lb-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 780px;
  background: #0a0a0e;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; overflow: hidden;
  transform: scale(.94) translateY(10px);
  transition: transform .38s cubic-bezier(.16,1,.3,1);
}
.tw-lb.open .tw-lb-box { transform: scale(1) translateY(0); }
.tw-lb-close {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.7); color: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px; transition: all .2s;
}
.tw-lb-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.tw-lb-media {
  aspect-ratio: 16/9; position: relative; overflow: hidden;
}
.tw-lb-thumb {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.tw-lb-play {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fff;
}
.tw-lb-hint {
  font-size: 8px; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.2);
}
.tw-lb-info {
  padding: 18px 22px 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end;
}
.tw-lb-tag {
  font-size: 7px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: rgba(255,255,255,.48);
  display: block; margin-bottom: 4px;
}
.tw-lb-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 24px; color: #fff; line-height: 1;
}
.tw-lb-desc {
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,.4); line-height: 1.6; margin-top: 5px;
}
.tw-lb-acts {
  display: flex; flex-direction: column; gap: 5px; align-items: flex-end;
}
.tw-lb-cta {
  font-size: 8px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.14);
  padding: 8px 14px; border-radius: 100px;
  text-decoration: none; white-space: nowrap; transition: all .2s;
}
.tw-lb-cta:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .tw-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .tw-head-r { justify-self: start; max-width: 100%; }
  .tw-grid { grid-template-columns: repeat(2, 1fr); }
  .tw-cta { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 560px) {
  .tw-grid { grid-template-columns: 1fr; gap: 10px; }
  .tw-count { display: none; }
}

/* ── Credibility strip ── */
.tw-creds {
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.012);
}
.tw-creds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.tw-cred-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px;
  border-right: 1px solid rgba(255,255,255,.07);
  text-align: center;
}
.tw-cred-item:last-child { border-right: none; }
.tw-cred-n {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -1px;
  line-height: 1;
  color: #fff;
}
.tw-cred-n em {
  font-style: normal;
  background: linear-gradient(100deg, #ff6010, #1e9bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tw-cred-l {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
  line-height: 1.4;
}
@media (max-width: 700px) {
  .tw-creds-grid { grid-template-columns: repeat(2, 1fr); }
  .tw-cred-item:nth-child(2) { border-right: none; }
  .tw-cred-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px; padding-bottom: 24px; }
}

/* ─────────────────────────────────────────
   CARD — badges + TV variant + client label
───────────────────────────────────────── */
.tw-card-badge {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  font-size: 7px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  padding: 5px 9px; border-radius: 100px;
}
.tw-card-badge--tv {
  color: rgba(201,169,110,.9);
  border-color: rgba(201,169,110,.4);
  background: rgba(20,14,5,.75);
}
.tw-card--tv {
  border: 1px solid rgba(201,169,110,.25);
}
.tw-card-cl {
  position: absolute; bottom: 62px; left: 16px; right: 16px; z-index: 3;
  font-size: 8px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.38);
}

/* ─────────────────────────────────────────
   CASES — success story cards
───────────────────────────────────────── */
.tw-cases {
  padding: 88px var(--pad) 0;
}
.tw-cases-head {
  max-width: 560px;
  margin-bottom: 40px;
}
.tw-cases-h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -.5px; line-height: .92; color: #fff;
  margin-bottom: 12px;
}
.tw-cases-h2 em {
  font-style: normal;
  background: linear-gradient(100deg, #ff6010, #1e9bff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tw-cases-sub {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,.4); line-height: 1.6;
}
.tw-cases-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tw-case-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; overflow: hidden;
  cursor: pointer; background: #0a0a0e;
  transition: border-color .25s, transform .35s cubic-bezier(.16,1,.3,1);
}
.tw-case-card:hover {
  border-color: rgba(255,255,255,.18);
  transform: translateY(-2px);
}
.tw-case-thumb {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative; overflow: hidden;
}
.tw-case-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(6,6,10,.5);
  opacity: 0; transition: opacity .28s;
}
.tw-case-card:hover .tw-case-overlay { opacity: 1; }
.tw-case-play {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.tw-case-play-lbl {
  font-size: 8px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.6);
}
.tw-case-body {
  padding: 20px 22px 24px;
}
.tw-case-client {
  font-size: 8px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  margin-bottom: 8px;
}
.tw-case-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: -.1px; line-height: 1.2;
  color: #fff; margin-bottom: 14px;
}
.tw-case-link {
  font-size: 8px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color .2s;
}
.tw-case-link:hover { color: rgba(255,255,255,.8); }

/* ─────────────────────────────────────────
   PORTFOLIO SECTION HEADER
───────────────────────────────────────── */
.tw-portfolio-sec {
  padding-top: 88px;
}
.tw-portfolio-head {
  padding: 0 var(--pad);
  margin-bottom: 32px;
}
.tw-portfolio-h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -.4px; line-height: .95; color: #fff;
  margin-top: 10px;
}

/* ─────────────────────────────────────────
   CLIENTS BANNER
───────────────────────────────────────── */
.tw-clients {
  padding: 64px var(--pad) 72px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.tw-clients-eyebrow {
  justify-content: center;
  margin-bottom: 32px;
}
.tw-clients-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; overflow: hidden;
}
.tw-client-item {
  padding: 30px 20px;
  border-right: 1px solid rgba(255,255,255,.08);
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(15px, 1.8vw, 22px);
  letter-spacing: -.1px; color: rgba(255,255,255,.5);
  transition: color .25s, background .25s;
}
.tw-client-item:last-child { border-right: none; }
.tw-client-item:hover {
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.03);
}

/* ─────────────────────────────────────────
   LIGHTBOX PLAYER + NAVIGATION
───────────────────────────────────────── */
.tw-lb-player {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.tw-lb-player iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.tw-lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
  color: rgba(255,255,255,.65); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.tw-lb-arrow:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.tw-lb-prev { left: 10px; }
.tw-lb-next { right: 10px; }

/* Thumbnail strip */
.tw-lb-strip {
  display: flex; gap: 6px;
  padding: 10px 16px;
  overflow-x: auto; scrollbar-width: none;
  background: rgba(0,0,0,.35);
  border-top: 1px solid rgba(255,255,255,.06);
}
.tw-lb-strip::-webkit-scrollbar { display: none; }
.tw-lb-strip-btn {
  flex-shrink: 0;
  width: 80px; height: 45px;
  background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 3px; cursor: pointer;
  opacity: .5; transition: opacity .2s, border-color .2s;
}
.tw-lb-strip-btn:hover { opacity: .8; }
.tw-lb-strip-btn.active { opacity: 1; border-color: rgba(255,255,255,.5); }

/* Counter */
.tw-lb-counter {
  font-size: 8px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.35);
}

/* ─────────────────────────────────────────
   RESPONSIVE — new sections
───────────────────────────────────────── */
@media (max-width: 900px) {
  .tw-cases { padding-top: 60px; }
  .tw-cases-row { grid-template-columns: 1fr; gap: 12px; }
  .tw-portfolio-sec { padding-top: 60px; }
  .tw-clients-row { grid-template-columns: repeat(2, 1fr); }
  .tw-client-item:nth-child(2) { border-right: none; }
  .tw-client-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 560px) {
  .tw-cases { padding-top: 48px; }
  .tw-clients-row { grid-template-columns: 1fr; }
  .tw-client-item { border-right: none; }
  .tw-client-item:nth-child(n+2) { border-top: 1px solid rgba(255,255,255,.08); }
  .tw-lb-strip-btn { width: 60px; height: 34px; }
  .tw-lb-arrow { width: 34px; height: 34px; font-size: 18px; }
}
