/* ==========================================================================
   RepuNEXT TV — homepage (front-page.php). Loaded after main.css (brand tokens,
   base, buttons, header, footer); only homepage styles and differences live here.
   Palette is sampled from the RepuNEXT logo (navy wordmark + 7 stepped squares).

   Sections (numbered like front-page.php):
     Base · Shared bits · Buttons
     1. Banner          3. Instagram feed (+ 2. Top Picks cards)   3b. Dark feed theme
     4. Channel cards   5. About            6. Who's behind the channel
     7. Tech Insights   (8. Collaborate: collab.css)   Motion · Reduced motion
   ========================================================================== */


/* ---------- Base: homepage differences only ----------
   main.css (loaded first) already provides box-sizing, html, body colours and
   fonts, :focus-visible, .container, .skip-link, .eyebrow, .visually-hidden and
   the base .btn. Only what the homepage does differently is set here. */
body { font-size: 1rem; line-height: 1.6; overflow-x: hidden; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
/* Undo main.css heading defaults (meant for inner pages): back to browser defaults, as before. */
h1, h2, h3, h4, h5, h6 { color: revert; font-family: revert; font-size: revert; font-weight: revert; line-height: revert; letter-spacing: revert; margin: revert; }
h1, h2, h3, p { margin: 0; }
:lang(ta) { line-height: 1.7; }

.section { padding-block: var(--section-y); }
/* Top Picks sits right under the ticker, which already separates it from the
   banner, so it gets a tighter top gap (no empty band below the ticker). */
.picks.section { padding-top: clamp(40px, 4.5vw, 64px); }
.picks .section-title { max-width: none; }
.picks-grid { min-height: 0; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Shared bits (.eyebrow lives in main.css) ---------- */
.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -.035em;
  margin-top: 14px;
  max-width: 16ch;
}

.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.dot--en { background: var(--en-bright); }
.dot--ta { background: var(--ta-bright); }

/* ---------- Buttons: base .btn, :hover, :active, --ink, --ghost come from main.css ---------- */
.btn {
  min-height: 52px;
  justify-content: normal; /* main.css centres button content; homepage buttons keep the default */
}
.btn .icon:last-child { transition: transform .3s var(--ease-out); }
.btn:hover .icon:last-child { transform: translate(2px, -2px); }
.btn--sm { min-height: 42px; padding: 0 14px; font-size: .9rem; border-radius: 10px; box-shadow: 0 3px 0 var(--sh); gap: 8px; }
.btn--sm:hover { box-shadow: 0 5px 0 var(--sh); }
.btn--light { border-color: #fff; } /* colours from main.css .btn--light */
.btn__tag {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 7px;
  background: rgba(255,255,255,.18);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.btn--ta .btn__tag { background: rgba(11,35,64,.12); font-size: .85rem; }

/* ==========================================================================
   1. Banner — background video + description + channel buttons + words strip
   ========================================================================== */
.hero { --edge: max(var(--gutter), calc((100vw - var(--container)) / 2)); }

/* Stepped squares — the logo mark rebuilt in CSS */
.pixels { --u: clamp(14px, 2.2vw, 26px); position: relative; width: calc(var(--u) * 3.54); height: calc(var(--u) * 3.54); flex: none; }
.pixels i { position: absolute; width: var(--u); height: var(--u); border-radius: 3px; }
.pixels i:nth-child(1) { left: calc(var(--u) * .54);  top: 0;                        background: var(--sq-2); }
.pixels i:nth-child(2) { left: calc(var(--u) * 1.54); top: 0;                        background: var(--sq-4); }
.pixels i:nth-child(3) { left: calc(var(--u) * 2.54); top: 0;                        background: var(--sq-5); }
.pixels i:nth-child(4) { left: calc(var(--u) * 2.54); top: var(--u);                 background: var(--sq-6); }
.pixels i:nth-child(5) { left: calc(var(--u) * 2.54); top: calc(var(--u) * 2);       background: var(--sq-7); }
.pixels i:nth-child(6) { left: calc(var(--u) * 1);    top: calc(var(--u) * 1.27);    background: var(--sq-3); }
.pixels i:nth-child(7) { left: 0;                     top: calc(var(--u) * 2.54);    background: var(--sq-1); }

.banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  width: 100%;
  min-height: clamp(540px, 92vh, 880px);
  padding-top: calc(var(--header-h) + 28px); /* room for the floating header */
  background: var(--ink-deep);
  color: #fff;
}

/* Video layer */
.banner__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s var(--ease-out);
}
.banner.has-video .banner__video { opacity: 1; }

/* Placeholder animation layer */
.banner__anim { position: absolute; inset: 0; z-index: -3; transition: opacity 1.2s var(--ease-out); }
.banner.has-video .banner__anim { opacity: 0; }
.banner.has-video .banner__anim * { animation-play-state: paused; }

.banner__grid {
  position: absolute; inset: -64px;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid-pan 24s linear infinite;
}
@keyframes grid-pan { to { transform: translate(64px, 64px); } }

.banner__glow {
  position: absolute; width: 70%; aspect-ratio: 1; right: -18%; top: -30%;
  background: radial-gradient(closest-side, rgba(3,174,184,.32), rgba(3,174,184,0));
  animation: glow-drift 14s ease-in-out infinite alternate;
}
@keyframes glow-drift { to { transform: translate(-12%, 18%) scale(1.15); } }

.banner__mark { --u: clamp(46px, 8.4vw, 118px); position: absolute; left: calc(var(--edge) + 2%); top: 50%; margin-top: calc(var(--u) * -1.6); }
.banner__mark i { animation: sq-float 7s ease-in-out infinite alternate; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset; }
.banner__mark i:nth-child(odd)  { animation-duration: 8.5s; }
.banner__mark i:nth-child(3n)   { animation-duration: 6s; animation-delay: -2s; }
.banner__mark i:nth-child(4)    { animation-delay: -3s; }
.banner__mark i:nth-child(6)    { animation-delay: -1.5s; }
@keyframes sq-float {
  0%   { translate: 0 0; }
  50%  { translate: 0 calc(var(--u) * -.12); }
  100% { translate: calc(var(--u) * .06) calc(var(--u) * .08); }
}

/* Legibility shade over video/animation */
.banner__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(4,22,43,.9) 0%, rgba(4,22,43,.5) 38%, rgba(4,22,43,0) 70%),
    linear-gradient(to left, rgba(4,22,43,.6) 0%, rgba(4,22,43,0) 62%);
}

.banner__content { width: 100%; padding-bottom: clamp(48px, 7vw, 96px); }
/* Text block sits on the right side of the banner */
.banner__inner { max-width: 640px; margin-left: auto; text-align: right; }
.banner__inner .hero__desc { margin-left: auto; }
.banner__inner .hero__actions { justify-content: flex-end; }
.hero__desc { color: #fff; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.35; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.banner .btn { --sh: #010C18; border-color: #010C18; }

/* Pause / play control (only shown when a video is playing) */
.banner__toggle {
  position: absolute; left: var(--edge); bottom: clamp(48px, 7vw, 96px);
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(4,22,43,.72); color: #fff;
  transition: background-color .25s, border-color .25s;
}
.banner__toggle:hover { background: rgba(4,22,43,.85); border-color: #fff; }
.banner__toggle[hidden] { display: none; }
.banner__toggle .icon { width: 18px; height: 18px; }
.banner__toggle .icon--play { display: none; margin-left: 2px; }
.banner__toggle[aria-pressed="true"] .icon--play { display: block; }
.banner__toggle[aria-pressed="true"] .icon--pause { display: none; }

@media (max-width: 760px) {
  .banner { min-height: clamp(560px, 90vh, 720px); }
  .banner__mark { --u: clamp(36px, 13vw, 60px); left: auto; right: var(--gutter); top: calc(var(--header-h) + 56px); margin-top: 0; }
  /* On phones the text uses the full width, left-aligned for readability */
  .banner__inner { margin-left: 0; text-align: left; }
  .banner__inner .hero__actions { justify-content: flex-start; }
  .banner__shade { background: linear-gradient(to top, rgba(4,22,43,.95) 0%, rgba(4,22,43,.6) 45%, rgba(4,22,43,.1) 80%); }
  .banner__toggle { top: calc(var(--header-h) + 40px); bottom: auto; left: var(--gutter); right: auto; }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Scrolling words strip under the banner */
.ticker { background: var(--ink); color: #fff; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.ticker__track { display: flex; width: max-content; animation: ticker 180s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span {
  display: inline-flex; align-items: center; gap: 28px; padding: 16px 28px 16px 0;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -.01em;
}
.ticker span:lang(ta) { font-family: var(--f-tamil); font-weight: 500; }
.ticker span::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--sq-5); }
.ticker span:nth-child(even)::before { background: var(--sq-7); }
.ticker span:nth-child(3n)::before { background: var(--sq-4); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   3. Instagram feed (card styles also used by 2. Top Picks)
   ========================================================================== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--stack { display: block; }

/* Filter — segmented control with a sliding thumb */
.filter {
  position: relative; display: inline-flex; padding: 5px;
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: var(--hard);
}
.filter__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 0;
  width: var(--w, 0px); transform: translateX(var(--x, 0px));
  background: var(--ink); border-radius: 10px;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), background-color .3s;
}
.filter[data-active="en"] .filter__thumb { background: var(--en); }
.filter[data-active="ta"] .filter__thumb { background: var(--ta); }
.filter__btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  background: none; border: 0; border-radius: 10px;
  font-weight: 600; font-size: .95rem; color: var(--muted);
  transition: color .3s;
}
.filter__btn:hover { color: var(--ink); }
.filter__btn[aria-pressed="true"] { color: #fff; }
.filter__count {
  min-width: 24px; padding: 2px 6px; border-radius: 6px;
  font-family: var(--f-body); font-size: .75rem; font-weight: 700; line-height: 1.4; text-align: center;
  background: var(--paper); color: var(--muted);
  transition: background-color .3s, color .3s;
}
.filter__btn[aria-pressed="true"] .filter__count { background: rgba(255,255,255,.18); color: #fff; }

/* Grid */
.feed-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
  min-height: 320px;
}
@media (max-width: 1100px) { .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Card */
.post-card {
  --c: var(--en); --c-bright: var(--en-bright); --c-tint: var(--en-tint);
  position: relative;
  animation: card-in .65s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.post-card[data-channel="ta"] { --c: var(--ta); --c-bright: var(--ta-bright); --c-tint: var(--ta-tint); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } }

.post-card__link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.post-card__link:hover, .post-card__link:focus-visible {
  transform: translateY(-5px);
  border-color: var(--ink);
  box-shadow: 0 6px 0 var(--c);
}

.post-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-tint); }
.post-card__media > img, .post-card__media > .art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.post-card__link:hover .post-card__media > img,
.post-card__link:hover .post-card__media > .art { transform: scale(1.045); }

/* Type badge (Reel / Carousel / Post) */
.post-card__type {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 8px; border-radius: 999px;
  background: rgba(4,22,43,.85); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1;
}
.post-card__type .icon { width: 14px; height: 14px; }

/* Channel chip */
.post-card__chan {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  padding: 5px 9px; border-radius: 8px;
  background: var(--c-bright); color: var(--ink);
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; line-height: 1.2;
}
/* "English" word badge: same size/weight as the தமிழ் badge */
.post-card[data-channel="en"] .post-card__chan { color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: 0; }
.post-card__chan:lang(ta) { font-size: .8rem; font-weight: 600; letter-spacing: 0; }

/* Reel play button */
.post-card__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  box-shadow: 0 0 0 6px rgba(255,255,255,.25);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.post-card__play .icon { width: 24px; height: 24px; margin-left: 3px; }
.post-card__link:hover .post-card__play { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255,255,255,.2); }

/* View count (Top Picks): bottom-left of the reel cover */
.post-card__views {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 8px; border-radius: 999px;
  background: rgba(4,22,43,.85); color: #fff;
  font-size: .78rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.post-card__views .icon { width: 15px; height: 15px; }

/* Carousel dots */
.post-card__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 5px; }
.post-card__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.post-card__dots i:first-child { background: #fff; width: 16px; border-radius: 3px; }

.post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
.post-card__handle { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); min-width: 0; }
.post-card__handle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-card__caption {
  font-size: .95rem; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__caption:lang(ta) { line-height: 1.6; font-size: .92rem; }
.post-card__meta {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: .78rem; color: var(--faint);
}
.post-card__cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--c); }
.post-card__cta .icon { transition: transform .3s var(--ease-out); }
.post-card__link:hover .post-card__cta .icon { transform: translate(2px, -2px); }

/* Brand artwork fallback when a post has no thumbnail */
.art { display: block; background: var(--c-tint); overflow: hidden; }
.art i { position: absolute; width: 28%; aspect-ratio: 1; border-radius: 6px; }
.art i:nth-child(1) { background: var(--c); }
.art i:nth-child(2) { background: var(--c-bright); }
.art i:nth-child(3) { background: var(--ink); }
.art--1 i:nth-child(1) { left: 14%; top: 18%; } .art--1 i:nth-child(2) { left: 42%; top: 18%; } .art--1 i:nth-child(3) { left: 42%; top: 41%; }
.art--2 i:nth-child(1) { right: 12%; top: 12%; } .art--2 i:nth-child(2) { right: 40%; top: 35%; } .art--2 i:nth-child(3) { right: 68%; top: 58%; }
.art--3 i:nth-child(1) { left: 12%; bottom: 30%; } .art--3 i:nth-child(2) { left: 40%; bottom: 30%; } .art--3 i:nth-child(3) { left: 68%; bottom: 30%; }
.art--4 i:nth-child(1) { left: 36%; top: 14%; } .art--4 i:nth-child(2) { left: 36%; top: 37%; } .art--4 i:nth-child(3) { left: 8%; top: 60%; }
.art__label {
  position: absolute; left: 14px; right: 14px; bottom: 16px;
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em; line-height: .95;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: var(--ink);
}
.art__label small { display: block; margin-top: 6px; font-family: var(--f-body); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-card--carousel .art__label { bottom: 30px; }

/* Skeletons */
.skeleton { border-radius: var(--radius-lg); background: var(--surface); border: 1.5px solid var(--line-soft); overflow: hidden; }
.skeleton__media { aspect-ratio: 4 / 5; }
.skeleton__line { height: 12px; margin: 14px 16px 0; border-radius: 6px; }
.skeleton__line:last-child { width: 55%; margin-bottom: 18px; }
.skeleton__media, .skeleton__line {
  background: linear-gradient(100deg, var(--line-soft) 30%, #F6F9FA 50%, var(--line-soft) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Empty / error state */
.feed-state {
  grid-column: 1 / -1;
  display: grid; justify-items: center; gap: 14px; text-align: center;
  padding: clamp(40px, 6vw, 72px) 20px;
  border: 1.5px dashed var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
}
.feed-state .pixels { --u: 14px; margin-bottom: 6px; }
.feed-state h3 { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.025em; line-height: 1.1; }
.feed-state p { color: var(--muted); max-width: 46ch; }
.feed-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* Filter transition */
.feed-grid.is-leaving > * { opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .22s ease, transform .22s ease; }

.feed__more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }
.feed__more .btn[hidden] { display: none; }

@media (max-width: 760px) {
  .section-head { align-items: flex-start; }
  .filter { width: 100%; }
  .filter__btn { flex: 1; justify-content: center; padding: 0 8px; font-size: .9rem; }
  .post-card__body { padding: 11px 12px 12px; gap: 8px; }
  .post-card__caption { font-size: .86rem; }
  .post-card__meta { font-size: .72rem; }
  .post-card__play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .post-card__type { padding: 5px 8px 5px 6px; font-size: .65rem; }
  .post-card__type-label { display: none; }
  .art__label { font-size: 1.05rem; left: 10px; bottom: 12px; }
  .art__label small { display: none; }
  .post-card--carousel .art__label { bottom: 24px; }
  .art i { width: 22%; }
}
@media (max-width: 380px) {
  .post-card__handle { display: none; }
  .post-card__cta-text { display: none; }
}

/* ==========================================================================
   3b. Feed — premium black theme with fine line details
   ========================================================================== */
.feed--dark {
  --dk-bg: #0A1624;
  --dk-card: #101C29;
  --dk-line: rgba(255,255,255,.08);
  --dk-line-strong: rgba(255,255,255,.18);
  --dk-text: #F2F5F7;
  --dk-muted: rgba(255,255,255,.62);
  --dk-faint: rgba(255,255,255,.42);
  position: relative; isolation: isolate; overflow: hidden;
  /* "Bulb" glow: a soft pool of the brand blue that melts into black */
  background:
    radial-gradient(45% 40% at 100% 100%, rgba(0,138,176,.42), transparent 70%),   /* bright core (--sq-4) */
    radial-gradient(85% 75% at 100% 100%, rgba(0,81,126,.55), transparent 75%),    /* blue halo (--sq-2) */
    radial-gradient(60% 55% at 0% 0%, rgba(0,110,145,.22), transparent 72%),       /* soft fill light, top-left (--sq-3) */
    linear-gradient(160deg, #0E1E30 0%, #0A1624 45%, #0C1D31 100%);                /* lifted navy-black base */
  color: var(--dk-text);
}
.feed--dark > .container { position: relative; z-index: 1; }

/* Gently "breathing" light on top of the glow */
.feed__lines::before {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: min(900px, 90vw); aspect-ratio: 1.6; transform: translate(35%, 35%);
  background: radial-gradient(closest-side, rgba(0,138,176,.32), rgba(0,81,126,.12) 55%, transparent);
  animation: bulb-glow 7s ease-in-out infinite alternate;
}
@keyframes bulb-glow {
  from { opacity: .7; transform: translate(35%, 35%) scale(.95); }
  to   { opacity: 1;  transform: translate(35%, 35%) scale(1.05); }
}

/* Fine grid, faded towards the edges */
.feed--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 80%);
}

/* Glow layer container */
.feed__lines { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* Typography */
.feed--dark .eyebrow { color: var(--sq-5); }
.feed--dark .section-title { color: #fff; max-width: none; }
.split .w:has(.section-title__sub) { display: block; }
.section-title__sub {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--sq-7);
}

/* Filter */
.feed--dark .filter { background: var(--dk-card); border-color: var(--dk-line-strong); box-shadow: 0 4px 0 rgba(3,174,184,.55); }
.feed--dark .filter__thumb { background: #fff; }
.feed--dark .filter[data-active="en"] .filter__thumb { background: var(--en); }
.feed--dark .filter[data-active="ta"] .filter__thumb { background: var(--ta); }
.feed--dark .filter__btn { color: var(--dk-muted); }
.feed--dark .filter__btn:hover { color: #fff; }
.feed--dark .filter__btn[aria-pressed="true"] { color: var(--ink-deep); }
.feed--dark .filter[data-active="en"] .filter__btn[aria-pressed="true"],
.feed--dark .filter[data-active="ta"] .filter__btn[aria-pressed="true"] { color: #fff; }
.feed--dark .filter__count { background: rgba(255,255,255,.08); color: var(--dk-muted); }
.feed--dark .filter__btn[aria-pressed="true"] .filter__count { background: rgba(4,22,43,.1); color: var(--ink-deep); }
.feed--dark .filter[data-active="en"] .filter__btn[aria-pressed="true"] .filter__count,
.feed--dark .filter[data-active="ta"] .filter__btn[aria-pressed="true"] .filter__count { background: rgba(255,255,255,.18); color: #fff; }

/* Cards */
.feed--dark .post-card__link { background: var(--dk-card); border-color: var(--dk-line); }
.feed--dark .post-card__link:hover,
.feed--dark .post-card__link:focus-visible { border-color: rgba(255,255,255,.35); box-shadow: 0 6px 0 var(--c-bright); }
.feed--dark .post-card__handle { color: var(--dk-muted); }
.feed--dark .post-card__caption { color: var(--dk-text); }
.feed--dark .post-card__meta { border-top-color: var(--dk-line); color: var(--dk-faint); }
.feed--dark .post-card__cta { color: var(--c-bright); }

/* Skeletons + empty state */
.feed--dark .skeleton { background: var(--dk-card); border-color: var(--dk-line); }
.feed--dark .skeleton__media, .feed--dark .skeleton__line {
  background: linear-gradient(100deg, #15191D 30%, #22282E 50%, #15191D 70%) 0 0 / 300% 100%;
}
.feed--dark .feed-state { background: var(--dk-card); border-color: var(--dk-line-strong); }
.feed--dark .feed-state p { color: var(--dk-muted); }

/* Ghost button ("Show more posts") */
.feed--dark .btn--ghost { --fg: #fff; --sh: var(--sq-5); border-color: rgba(255,255,255,.35); }
.feed--dark .btn--ghost:hover { --bg: rgba(255,255,255,.06); }

/* ==========================================================================
   4. Channel follow cards
   ========================================================================== */
.channels { padding-top: 0; }
/* After the black feed band, the cards need their own top spacing */
.feed--dark + .channels { padding-top: var(--section-y); }
.channel-split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(16px, 2vw, 28px); align-items: start; }

.channel {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: clamp(360px, 36vw, 470px);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.channel:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--ink); }

.channel__glyph {
  position: absolute; z-index: -1; pointer-events: none;
  font-family: var(--f-display); font-weight: 800; line-height: .8; letter-spacing: -.07em;
  transition: transform 1.1s var(--ease-out);
}
.channel:hover .channel__glyph { transform: translate(-10px, -6px); }

.channel__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .9rem; }
.channel__index { font-family: var(--f-display); font-size: .85rem; letter-spacing: .06em; opacity: .7; }
.channel__handle { padding: 6px 12px; border-radius: 999px; border: 1.5px solid currentColor; }

.channel__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.035em; }
.channel__name em { font-style: normal; display: block; }
.channel__name em:lang(ta) { font-family: var(--f-tamil); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.channel__text { margin: 14px 0 26px; font-size: 1.05rem; max-width: 34ch; }
.channel .btn { white-space: normal; text-align: left; line-height: 1.2; }

/* English — dark, wordmark navy */
.channel--en { background: var(--ink); color: #fff; }
.channel--en .channel__glyph {
  right: -2%; bottom: -6%;
  font-size: clamp(11rem, 26vw, 22rem);
  color: transparent; -webkit-text-stroke: 2px var(--en-bright);
  opacity: .55;
}
.channel--en .channel__name em { color: var(--sq-5); }
.channel--en .channel__text { color: #C6D4DE; max-width: 36ch; }   /* longer description: a little wider, still clear of the EN art */

/* Tamil — mint, offset lower for rhythm */
.channel--ta { background: var(--ta-tint); color: var(--ink); margin-top: clamp(0px, 6vw, 72px); flex-direction: column-reverse; }
.channel--ta .channel__glyph {
  right: -4%; top: -4%;
  font-family: var(--f-tamil); font-weight: 700; letter-spacing: 0; line-height: 1;
  font-size: clamp(10rem, 22vw, 18rem);
  color: var(--ta-bright); opacity: .3;
}
.channel--ta .channel__name em { color: var(--ta); }
.channel--ta .channel__text { color: var(--muted); font-size: 1rem; }
.channel--ta .channel__top { color: var(--ta); }

@media (max-width: 860px) {
  .channel-split { grid-template-columns: 1fr; }
  .channel { min-height: 320px; }
  .channel--ta { margin-top: 0; }
}

/* ==========================================================================
   5. About RepuNEXT TV — full-width dark band with animated brand elements
   ========================================================================== */
.about { padding-top: 0; }
.about__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  width: calc(100% - clamp(16px, 2.2vw, 36px));
  margin-inline: auto;
  min-height: clamp(440px, 40vw, 560px);
  padding-block: clamp(56px, 7vw, 104px);
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  box-shadow: 0 6px 0 var(--sq-5);
  color: #fff;
  background:
    radial-gradient(50% 75% at 78% 50%, rgba(3,174,184,.26), transparent 70%),
    radial-gradient(38% 60% at 92% 95%, rgba(82,194,166,.22), transparent 70%),
    linear-gradient(120deg, var(--ink-deep) 0%, var(--ink) 55%, #0C2A4A 100%);
}
.about__grid {
  position: absolute; inset: -64px; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 65% 75% at 75% 50%, #000 15%, transparent 80%);
          mask-image: radial-gradient(ellipse 65% 75% at 75% 50%, #000 15%, transparent 80%);
  animation: grid-pan 28s linear infinite;
}
.about__glow {
  position: absolute; right: -8%; top: -25%; z-index: -1; pointer-events: none;
  width: min(560px, 55vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(3,174,184,.32), rgba(82,194,166,.1) 55%, transparent);
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.about__layout {
  display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: clamp(28px, 4vw, 64px);
}
.about__content { max-width: 600px; }
.about__eyebrow { color: var(--sq-7); }
.about__title {
  margin-top: 14px;
  font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em;
}
.about__title span { display: block; }
.about__text { margin: 18px 0 30px; max-width: 52ch; color: #C6D4DE; font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.65; }
.btn--mint { --bg: var(--sq-7); --fg: var(--ink-deep); --sh: #010C18; border-color: #010C18; }
.btn--mint .icon:last-child { transform: none; }
.btn--mint:hover .icon:last-child { transform: translateY(-3px); }

/* Right-side animated illustration */
.about__visual {
  position: relative; display: grid; place-items: center;
  min-height: 360px;
}
.about__ring {
  /* Centred on the fingertip contact point, same as the ripple and skill nodes */
  position: absolute; border-radius: 50%; pointer-events: none;
  left: var(--meet-x); top: var(--meet-y);
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(82,194,166,.28);
  animation: about-spin 36s linear infinite;
}
.about__ring--1 { width: 320px; height: 320px; }
.about__ring--2 { width: 410px; height: 410px; border-style: solid; border-color: rgba(3,174,184,.16); animation-direction: reverse; animation-duration: 50s; }
@keyframes about-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Diagonal human + robotic hands & water ripple overlay */
.about__hands {
  --meet-x: 52%;
  --meet-y: 54%;
  --hand-gap: 95px;
  position: absolute; inset: -32px; z-index: 3;
  pointer-events: none;
}
.about__ripple {
  position: absolute;
  left: var(--meet-x); top: var(--meet-y);
  width: clamp(280px, 34vw, 440px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.about__hand {
  position: absolute;
  left: var(--meet-x); top: var(--meet-y);
  height: auto; max-width: none;
  will-change: transform;
  filter: drop-shadow(0 16px 28px rgba(1, 12, 24, .55));
}
/* Human hand (768x400): index fingertip at (97.7%, 12.0%), forearm extends well below the bottom border of .about__card */
.about__hand--human {
  width: clamp(460px, 50vw, 660px);
  transform-origin: 97.7% 12%;
  transform:
    translate(-97.7%, -12%)
    translate3d(calc(var(--hand-gap) * -0.76), calc(var(--hand-gap) * 0.65), 0)
    rotate(-26deg);
}
/* Robotic hand (768x400): index fingertip at (2.2%, 12.3%), forearm extends well past the top-right border of .about__card */
.about__hand--robot {
  width: clamp(460px, 50vw, 660px);
  transform-origin: 2.2% 12.3%;
  transform:
    translate(-2.2%, -12.3%)
    translate3d(calc(var(--hand-gap) * 0.76), calc(var(--hand-gap) * -0.65), 0)
    rotate(-46deg);
}

/* Human × AI skill nodes: fly out from the fingertip contact point when .is-linked
   (set by front-page.js section 9). Transforms/opacity only; idle animations only
   run while linked and on screen. */
.about__hands { --orbit: clamp(130px, 13vw, 168px); }
.about__links {
  position: absolute;
  left: var(--meet-x); top: var(--meet-y);
  width: calc(var(--orbit) * 2.8); height: calc(var(--orbit) * 2.8);
  transform: translate(-50%, -50%);
  overflow: visible;
}
.about__link, .about__pulse { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.about__link {
  stroke: rgba(82,194,166,.38); stroke-width: 1;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .35s ease;
}
.about__pulse {
  stroke: #9FF5EA; stroke-width: 2;
  stroke-dasharray: .07 .93; stroke-dashoffset: .07;
  opacity: 0; transition: opacity .3s ease;
  animation: about-pulse 2.6s linear infinite paused;
}
.is-linked .about__link { stroke-dashoffset: 0; transition: stroke-dashoffset .8s cubic-bezier(.3,.7,.2,1) var(--d); }
.is-linked .about__pulse { opacity: .85; transition: opacity .4s ease calc(var(--d) + .7s); animation-play-state: running; }
@keyframes about-pulse { from { stroke-dashoffset: .07; } to { stroke-dashoffset: -1; } }

.about__node {
  position: absolute;
  left: var(--meet-x); top: var(--meet-y);
  transform: translate(-50%, -50%) scale(.25);
  opacity: 0;
  transition: transform .45s ease-in, opacity .35s ease-in;
}
.is-linked .about__node {
  transform: translate(-50%, -50%) translate(calc(var(--x) * var(--orbit)), calc(var(--y) * var(--orbit))) scale(1);
  opacity: 1;
  transition: transform 1s cubic-bezier(.16,.9,.3,1.12) var(--d), opacity .45s ease var(--d);
}
.about__node-inner {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 7px; border-radius: 999px;
  background: rgba(4, 30, 48, .82);
  border: 1px solid rgba(110, 230, 215, .38);
  box-shadow: 0 6px 18px rgba(1, 12, 24, .45), inset 0 0 12px rgba(3, 174, 184, .18);
  color: #DFFBF6;
  font-family: var(--f-display); font-size: .72rem; font-weight: 600; line-height: 1; letter-spacing: .01em;
  white-space: nowrap;
  animation: about-node-float 4.6s ease-in-out var(--fd) infinite alternate paused;
}
.is-linked .about__node-inner { animation-play-state: running; }
.about__hands.is-offscreen .about__node-inner,
.about__hands.is-offscreen .about__pulse { animation-play-state: paused; }
.about__node-icon {
  width: 22px; height: 22px; padding: 3px; flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, #03AEB8, #027E8A);
  color: #fff;
}
@keyframes about-node-float {
  from { transform: translate3d(0, -4px, 0); }
  to   { transform: translate3d(0, 4px, 0); }
}

@media (max-width: 900px) {
  .about__layout { grid-template-columns: 1fr; }
  .about__visual { min-height: 340px; margin-top: 12px; }
  .about__hand--human { width: clamp(360px, 78vw, 500px); }
  .about__hand--robot { width: clamp(360px, 78vw, 500px); }
  .about__ripple { width: clamp(240px, 58vw, 340px); }
  .about__hands { --orbit: clamp(112px, 26vw, 150px); }
}
@media (max-width: 1279px) {
  /* Narrower layouts: compact stacked nodes (label under the icon) so all eight fit */
  .about__node-inner {
    flex-direction: column; gap: 3px;
    padding: 5px 7px 4px; border-radius: 12px;
    font-size: .6rem; letter-spacing: .02em;
  }
  .about__node-icon { width: 20px; height: 20px; }
}
@media (max-width: 600px) {
  .about__hands { --orbit: 110px; }
  /* Pull "Editing" (node 4) in a little so it stays inside the card on small phones */
  .about__node--4 { --x: 1.039 !important; --y: 0.6 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .about__node, .about__link, .about__pulse { transition: none !important; }
  .about__node-inner, .about__pulse { animation: none !important; }
  .is-linked .about__pulse { opacity: 0; }
}
@media (max-width: 480px) {
  .about .btn { width: 100%; justify-content: center; white-space: normal; }
  .about__ring--2 { display: none; }
  .about__hand--human { width: 340px; }
  .about__hand--robot { width: 340px; }
}

/* ==========================================================================
   6. Who's behind the channel — company card (3D team rows) + founder card (video)
   ========================================================================== */
.team { padding-top: 0; }
.team__title { max-width: none; margin: 0 0 clamp(24px, 3.5vw, 40px); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }

.team-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: clamp(300px, 26vw, 360px);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}
.team-card__eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.team-card__name {
  margin-top: 8px;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem); line-height: 1.05; letter-spacing: -.03em;
}
.team-card__text { margin: 14px 0 28px; max-width: 32ch; font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.6; }
.team-card .btn { margin-top: auto; }

/* Navy — founder card */
.team-card--navy { background: linear-gradient(135deg, var(--ink-deep), var(--ink)); color: #fff; box-shadow: 0 6px 0 var(--sq-5); }
.team-card--navy .team-card__eyebrow { color: var(--sq-7); }
.team-card--navy .team-card__name { color: #fff; }
.team-card--navy .team-card__text { color: #C6D4DE; }
.btn--outline-light { --bg: transparent; --fg: #fff; --sh: transparent; border-color: rgba(255,255,255,.75); box-shadow: none; }
.btn--outline-light:hover { --bg: rgba(255,255,255,.08); border-color: #fff; box-shadow: 0 4px 0 var(--sq-5); }

/* Mint — company card */
.team-card--mint { background: var(--ta-tint); color: var(--ink); }
.team-card--mint .team-card__eyebrow { color: var(--ink); }
.team-card--mint .team-card__name { color: var(--ink); }
.team-card--mint .team-card__text { color: var(--muted); }

/* Portrait founder video (assets/js/card-video.js): fills the right side of the card edge to edge (top, right,
   bottom — clipped by the card's rounded corners), 9:16, part of the card background. Only the side facing the
   text fades (mask) into the card's navy, plus a navy colour tint. Behind the text and button (z-index -1 inside
   the card's isolated stacking context). card-video.js sets --video-w so the text column stops before it. */
.team-card__video {
  position: absolute; z-index: -1;
  top: 0; right: 0; height: 100%;            /* full card height; the width follows 9:16 (capped below) */
  aspect-ratio: 9 / 16; max-width: 46%;       /* cap: very tall cards crop the sides slightly instead of squeezing the text */
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%);
}
/* Colour blend: the card's own navy, deepest towards the text, softly along the top and bottom */
.team-card__video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(6,22,42,.7) 0%, rgba(6,22,42,0) 50%),
    linear-gradient(to top, rgba(6,22,42,.55) 0%, rgba(6,22,42,0) 28%),
    linear-gradient(to bottom, rgba(6,22,42,.35) 0%, rgba(6,22,42,0) 18%);
}
.team-card__video-el {
  display: block; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.team-card__video.is-ready .team-card__video-el { opacity: 1; }
.team-card--has-video :is(.team-card__eyebrow, .team-card__name, .team-card__roles, .team-card__text) {
  max-width: calc(100% - var(--video-w, 190px) + clamp(24px, 3vw, 40px) * 0.5);   /* may run into the faded edge of the video */
}
/* Founder card: role lines, bio, and the three website buttons in one row along the bottom (they may run over the
   video, so they get a dark frosted background to stay readable) */
.team-card__roles { display: grid; gap: 2px; margin-top: 10px; font-size: .92rem; font-weight: 600; line-height: 1.45; }
.team-card--navy .team-card__roles { color: var(--sq-7); }
/* Name and role lines stay on one line each (they may run into the faded left edge of the video) */
.team-card--has-video :is(.team-card__name, .team-card__roles) { max-width: none; white-space: nowrap; }
.team-card--has-video .team-card__name { text-shadow: 0 2px 18px rgba(4, 22, 43, .6); }
.team-card--has-video .team-card__roles span { text-shadow: 0 1px 10px rgba(4, 22, 43, .8); }
.team-card--has-video .team-card__text { margin-bottom: 24px; font-size: clamp(.95rem, 1.05vw, 1.02rem); }
/* Three equal columns spanning the card's full width: same width, same height, edges lined up with the text */
.team-card__links {
  position: relative; z-index: 1; margin-top: auto; align-self: stretch; width: 100%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.team-card .team-card__link {
  --bg: rgba(4, 22, 43, .78);   /* solid tint over the video (a live blur would be redrawn every video frame) */
  width: 100%; margin-top: 0; min-height: 54px; padding: 0 12px; gap: 8px;
  font-size: 1rem; font-weight: 700; white-space: nowrap;
}
.team-card .team-card__link:hover { --bg: rgba(255, 255, 255, .14); }
.team-card__link .icon { width: .95em; height: .95em; flex: none; }
/* Card width decides the button size (founder card sits in 1 or 2 columns depending on the window) */
.team-card--has-video { container-type: inline-size; }
@container (max-width: 560px) {
  .team-card__links { gap: 8px; }
  .team-card .team-card__link { min-height: 50px; padding: 0 8px; gap: 5px; font-size: .9rem; }
}
@container (max-width: 480px) {
  .team-card__links { gap: 6px; }
  .team-card .team-card__link { min-height: 48px; padding: 0 4px; gap: 4px; font-size: .8rem; }
}
/* Too narrow for three across (phones): one full-width button per row */
@container (max-width: 400px) {
  .team-card__links { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .team-card .team-card__link { min-height: 52px; font-size: 1rem; }
}

@media (max-width: 860px) {
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .team-card .btn { width: 100%; justify-content: center; }
  /* Founder video (phones): the full-width button sits at the bottom, so the video also fades out
     behind the button row; the two fades are multiplied together */
  .team-card__video {
    max-width: 44%;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%),
      linear-gradient(to top, transparent 0, transparent 70px, #000 150px);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%),
      linear-gradient(to top, transparent 0, transparent 70px, #000 150px);
    mask-composite: intersect;
  }
  /* Founder card on phones: too narrow for text beside the video, so the video runs across the top of the card
     (fading down into the navy) and the name, roles, bio and buttons use the full width below it */
  .team-card.team-card--has-video { padding-top: min(68vw, 270px); }
  .team-card--has-video .team-card__video {
    top: 0; left: 0; right: 0; width: auto; height: min(98vw, 380px); max-width: none; aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  }
  .team-card--has-video .team-card__video::after {
    background: linear-gradient(to bottom, rgba(6,22,42,.15) 0%, rgba(6,22,42,.65) 100%);
  }
  .team-card--has-video .team-card__video-el { object-position: 50% 30%; }
  .team-card--has-video :is(.team-card__eyebrow, .team-card__name, .team-card__roles, .team-card__text) { max-width: none; }
  .team-card--has-video :is(.team-card__name, .team-card__roles) { white-space: normal; }
}

/* Team picture / 3D team rows (template-parts/characters/team-rows-3d.php): transparent cut-out standing on the
   card's bottom edge. The 3D rows draw on the canvas (assets/js/team-rows-3d.js sizes it to the contained rectangle
   and sets --photo-top just below the description). Phones and tablets show the picture until the 3D is ready. */
.team-card__photo {
  position: absolute; z-index: -1; pointer-events: none;
  top: clamp(14px, 2vw, 24px); right: clamp(6px, 1.2vw, 16px); bottom: 0;
  width: min(46%, calc(100% - 250px));   /* never reaches the button on narrow two-column cards */
}
.team-card__photo img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: right bottom;
  filter: drop-shadow(0 10px 14px rgba(6,22,42,.18));
  transition: opacity .6s var(--ease-out);
}
.team-card__photo-3d {
  position: absolute; right: 0; bottom: 0; display: block;
  width: 0; height: 0; opacity: 0;
  filter: drop-shadow(0 10px 14px rgba(6,22,42,.18));
  transition: opacity .6s var(--ease-out);
}
.team-card__photo.is-3d-ready .team-card__photo-3d { opacity: 1; }
.team-card__photo.is-3d-ready img { opacity: 0; }
/* Desktop (where the 3D rows run): no picture at all — the 3D team fades in directly. The picture is shown only
   as a fallback if 3D can't run (.is-3d-failed: no WebGL / load error; .is-3d-off: "data saver").
   display:none also keeps the lazy picture from downloading on desktop. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .team-card__photo[data-team-rows-3d]:not(.is-3d-failed):not(.is-3d-off) img { display: none; }
}
@media (min-width: 1024px) {
  .team-card.team-card--rows3d { min-height: clamp(510px, 46vw, 700px); }   /* taller card: a larger team (4 rows) */
  .team-card.team-card--rows3d .team-card__photo {   /* fallback for browsers without container queries */
    top: var(--photo-top, 160px); right: clamp(4px, 0.8vw, 10px);
    width: min(64%, calc(100% - 250px));
  }
}
/* Phones and tablets: the 3D team is centred in the picture's place; touching the card turns the heads (sideways
   drags go to the 3D, up/down swipes still scroll the page) */
@media (max-width: 1023px) {
  .team-card--rows3d .team-card__photo-3d { right: 50%; transform: translateX(50%); }
  .team-card--rows3d { touch-action: pan-y pinch-zoom; }
}
.team-card--has-photo :is(.team-card__eyebrow, .team-card__name, .team-card__text) { max-width: 42%; }
/* Company name on one line (it may run over the empty top of the picture area) */
.team-card--has-photo .team-card__name { max-width: none; white-space: nowrap; }
.team-card--has-photo .team-card__text { max-width: 50%; }
/* Phones: the whole team sits in the flow, full width, between the text and the button (order). */
@media (max-width: 600px) {
  .team-card__photo {
    position: relative; z-index: auto; order: 1;
    top: auto; right: auto; bottom: auto;
    width: 100%; margin: 0 0 20px; aspect-ratio: 1200 / 844;
  }
  .team-card--has-photo :is(.team-card__eyebrow, .team-card__name, .team-card__text) { max-width: none; }
  .team-card--has-photo .btn { order: 2; }
}

/* Button in the top-right corner, so the team uses the full card width below the description (centred, standing
   on the bottom edge). Only where the card is wide enough for the name and the button side by side (container
   query); narrower cards keep the button at the bottom left, phones keep the full-width button under the picture. */
.team-card--rows3d { container-type: inline-size; }
@media (min-width: 601px) {
  @container (min-width: 380px) {
    .team-card--rows3d .btn {
      position: absolute; z-index: 1; margin: 0;
      top: clamp(20px, 2.4vw, 40px); right: clamp(20px, 2.4vw, 40px);
    }
    .team-card.team-card--rows3d .team-card__photo {
      top: var(--photo-top, 160px); left: clamp(8px, 1.2vw, 16px); right: clamp(8px, 1.2vw, 16px); width: auto;
    }
    .team-card--rows3d .team-card__photo img { object-position: center bottom; }
    .team-card--rows3d .team-card__photo-3d { right: 50%; transform: translateX(50%); }
    .team-card.team-card--rows3d .team-card__text { max-width: none; }   /* the team is below it now, not beside it */
  }
  /* Narrow desktop cards (1024–1199 px windows): a more compact button so it fits beside the company name */
  @container (min-width: 380px) and (max-width: 519px) {
    .team-card--rows3d .btn { padding: 10px 14px; font-size: .82rem; gap: 6px; }
  }
}
/* Tablets (single wide card, picture only): the picture sits in the flow under the text at full card width */
@media (min-width: 601px) and (max-width: 1023px) {
  @container (min-width: 380px) {
    .team-card.team-card--rows3d .team-card__photo {
      position: relative; z-index: auto; order: 1;
      top: auto; left: auto; right: auto; bottom: auto;
      width: 100%; margin: 0; aspect-ratio: 1200 / 844;
    }
  }
}

/* ==========================================================================
   7. Tech Insights — full-width dark band
   ========================================================================== */
.insights { position: relative; }
.insights__card {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%;
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid rgba(3,174,184,.35);
  border-bottom: 1px solid rgba(3,174,184,.35);
  color: #fff;
  background:
    radial-gradient(50% 90% at 95% 20%, rgba(3,174,184,.28), transparent 70%),
    radial-gradient(40% 70% at 80% 100%, rgba(82,194,166,.2), transparent 70%),
    linear-gradient(135deg, var(--ink-deep), var(--ink));
}
.insights__inner { position: relative; --art-w: clamp(400px, 34vw, 480px); }
/* Mini cards area (right side on wide screens): four mini post cards, demo cursor on top */
.insights__art { position: relative; z-index: 0; }

/* Mini cards: small copies of the blog card (image, date, title, Read More), 2 x 2 with the right column lower */
.insights__minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-bottom: 18px; }
.insights__minis .mini-card:nth-child(even) { translate: 0 18px; }
.mini-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); color: var(--ink); text-decoration: none;
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
  box-shadow: 0 3px 0 rgba(3,174,184,.3), 0 10px 24px rgba(1,12,24,.35);
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s var(--ease-out);
}
.mini-card__media { display: block; aspect-ratio: 16 / 7.5; overflow: hidden; background: var(--en-tint); }
.mini-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.mini-card__media .pixels { --u: 9px; position: relative; display: block; width: calc(var(--u) * 3.54); height: calc(var(--u) * 3.54); margin: 8px auto; }
.mini-card__media .pixels i { position: absolute; width: var(--u); height: var(--u); border-radius: 2px; }
.mini-card__body { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 9px; }
.mini-card__date { font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tagline); }
.mini-card__title {
  font-family: var(--f-display); font-weight: 700; font-size: .74rem; line-height: 1.25; letter-spacing: -.01em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: calc(1.25em * 2);
}
.mini-card__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: .64rem; font-weight: 700; color: var(--en); }
.mini-card__more .icon { width: .9em; height: .9em; transition: transform .3s var(--ease-out); }
/* Hover — by a real mouse or by the demo cursor (.is-hover): the same lift as the full-size blog cards */
.mini-card:hover, .mini-card.is-hover {
  transform: translateY(-5px) scale(1.04);
  border-color: var(--sq-5);
  box-shadow: 0 6px 0 var(--sq-5), 0 16px 32px rgba(1,12,24,.5);
}
.mini-card:hover .mini-card__media img, .mini-card.is-hover .mini-card__media img { transform: scale(1.08); }
.mini-card:hover .mini-card__more .icon, .mini-card.is-hover .mini-card__more .icon { transform: translate(2px, -2px); }

/* Demo cursor (moved by assets/js/insights-demo.js) */
.insights__cursor {
  position: absolute; left: 0; top: 0; z-index: 5; width: 24px; height: 28px;
  pointer-events: none; opacity: 0; transform-origin: 3px 2px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.5));
}
.insights__cursor path { fill: #fff; stroke: #04162B; stroke-width: 1.6; stroke-linejoin: round; }

/* Wide screens: text on the left, the mini cards as a column on the right */
@media (min-width: 1200px) {
  .insights__card { padding-block: clamp(48px, 4.4vw, 64px); }
  .insights__inner { display: grid; grid-template-columns: minmax(0, 1fr) var(--art-w); gap: clamp(32px, 4vw, 64px); align-items: center; }
  .insights__art { grid-column: 2; grid-row: 1; }
  .insights__body { grid-column: 1; grid-row: 1; }
}
/* Smaller screens: one column — eyebrow, title, description, then the mini cards, then the button */
@media (max-width: 1199px) {
  .insights__inner { display: flex; flex-direction: column; align-items: flex-start; }
  .insights__body { display: contents; }
  .insights__eyebrow { order: 1; }
  .insights__title { order: 2; }
  .insights__text { order: 3; }   /* keeps its 26px bottom margin: the gap above the cards */
  .insights__art { order: 4; width: min(100%, 520px); margin: 0 0 30px; }
  .insights__body > .btn { order: 5; }
}
/* Phones: a compact 2 × 2 block */
@media (max-width: 600px) {
  .insights__minis { gap: 10px; }
  .insights__minis .mini-card:nth-child(even) { translate: 0 12px; }
  .mini-card { border-radius: 9px; }
  .mini-card__body { padding: 6px 7px 7px; gap: 2px; }
  .mini-card__date { font-size: .52rem; }
  .mini-card__title { font-size: .64rem; }
  .mini-card__more { font-size: .56rem; }
  .insights__cursor { width: 20px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .mini-card, .mini-card__media img { transition: none; }
}
.insights__body { max-width: 66ch; }
.insights__eyebrow { color: var(--sq-7); }
.insights__title {
  margin-top: 12px;
  font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: clamp(1.75rem, 3.3vw, 2.75rem); line-height: 1.06; letter-spacing: -.03em;
}
.insights__text { margin: 14px 0 26px; max-width: 58ch; color: #C6D4DE; font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.65; }
@media (max-width: 480px) {
  .insights__card .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Motion — scroll reveals + split headings (only when JS is running)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-inview { opacity: 1; transform: none; }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span {
  display: inline-block; transform: translateY(108%);
  transition: transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms + var(--d, 0ms));
}
.split.is-inview .w > span { transform: none; }

.js .pixels i { transform: scale(0); transition: transform .6s var(--ease-out); transition-delay: calc(var(--n, 0) * 70ms + 300ms); }
.js .is-ready .pixels i, .js .feed-state .pixels i { transform: none; }
.pixels i:nth-child(1) { --n: 6; } .pixels i:nth-child(2) { --n: 5; } .pixels i:nth-child(3) { --n: 4; }
.pixels i:nth-child(4) { --n: 3; } .pixels i:nth-child(5) { --n: 2; } .pixels i:nth-child(6) { --n: 1; } .pixels i:nth-child(7) { --n: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .split .w > span, .js .pixels i { opacity: 1; transform: none; }
  .banner__anim * { animation: none !important; }
  .ticker__track { animation: none; }
}

/* WordPress's .screen-reader-text lives in main.css (with .visually-hidden). */
