/* Vortex Group — light editorial theme (Mindshare-inspired), Vortex teal brand.
   Custom layer atop Tailwind utilities: brand swirl, atmosphere, marquee,
   hero wordmark, scroll-reveal motion, and the hero vortex canvas. */

:root {
  --paper: #f3ede1;          /* warm cream — main canvas (from the logo card) */
  --paper-rgb: 243, 237, 225;
  --cloud: #fbf8f2;          /* raised surfaces / cards */
  --ink: #10202e;            /* deep navy — primary text (from the logo) */
  --ink-rgb: 16, 32, 46;
  --slate: #5c6b78;          /* muted secondary text */
  --teal: #1c7d97;
  --teal-deep: #0c4a5e;
  --teal-lite: #79c8db;
  --sand: #e7dcc8;
  --alert: #c0492f;
  --line: rgba(16, 32, 46, 0.12);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background:
    radial-gradient(1100px 720px at 80% -12%, rgba(28, 125, 151, .10), transparent 60%),
    radial-gradient(880px 600px at -6% 106%, rgba(121, 200, 219, .16), transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----- Selection + custom scrollbar ----- */
::selection { background: var(--teal-lite); color: var(--ink); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #eadfca; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--teal), var(--teal-deep));
  border-radius: 99px;
  border: 2px solid #eadfca;
}

/* ----- Brand gradient text ----- */
.text-vortex {
  background: linear-gradient(100deg, var(--teal-deep), var(--teal) 50%, var(--teal-lite));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- Brand logo (actual Vortex wordmark lockup) ----- */
.logo-img {
  height: 28px; width: auto; display: block; flex: none;
  transition: opacity .3s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.logo:hover .logo-img { opacity: .85; transform: translateY(-1px); }
.logo-img--lg { height: 36px; }
@media (prefers-reduced-motion: reduce) { .logo:hover .logo-img { transform: none; } }

/* ----- Nav links (Mindshare-style animated underline) ----- */
.nav-link {
  position: relative;
  color: var(--slate);
  transition: color .25s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.nav-link:hover::after { transform: scaleX(1); }

/* ----- Social pills (footer) ----- */
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--slate);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.social:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-3px);
}
.social svg { width: 18px; height: 18px; display: block; }

/* ----- Hero wordmark ----- */
.wordmark {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(.4rem, 5vw, 3.5rem);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; letter-spacing: -.025em; line-height: .8;
  font-size: clamp(3.4rem, 17vw, 15rem);
  color: var(--ink);
  white-space: nowrap;
}
/* animated teal sheen sweeping across the wordmark */
.wordmark--fx {
  background: linear-gradient(100deg,
    var(--ink) 0%, var(--ink) 38%, var(--teal) 50%, var(--ink) 62%, var(--ink) 100%);
  background-size: 280% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wm-sheen 7s ease-in-out infinite;
}
@keyframes wm-sheen {
  0%, 100% { background-position: 140% 0; }
  50%      { background-position: -40% 0; }
}
@media (prefers-reduced-motion: reduce) { .wordmark--fx { animation: none; } }

/* ----- Hero ambient FX (vortex motif: grid + orbit rings + rotating swirl) ----- */
.hero-fx {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(16, 32, 46, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 46, .055) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 8%, transparent 66%);
  mask-image: radial-gradient(circle at 50% 44%, #000 8%, transparent 66%);
}
/* the vortex: a glowing spiral galaxy that scales in on load, then rotates slowly */
.hero-swirl-wrap {
  position: absolute; left: 50%; top: 44%;
  width: min(76vh, 760px); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  animation: hero-enter 1.5s cubic-bezier(.16, 1, .3, 1) both;
}
.hero-swirl {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  will-change: transform, opacity;
}
/* primary layer: faster clockwise spin + breathing glow */
.hero-swirl--a {
  animation: swirl-spin 22s linear infinite, swirl-pulse 7s ease-in-out infinite;
}
/* second layer: larger, slower, COUNTER-rotating — the two together churn
   like a real vortex instead of a rigid spinning wheel */
.hero-swirl--b {
  inset: -16%;
  opacity: .22;
  animation: swirl-spin-rev 36s linear infinite;
}
@keyframes swirl-spin { to { transform: rotate(360deg); } }
@keyframes swirl-spin-rev { to { transform: rotate(-360deg); } }
@keyframes swirl-pulse {
  0%, 100% { opacity: .34; }
  50%      { opacity: .54; }
}
@keyframes hero-enter {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.72) rotate(-26deg); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-swirl-wrap, .hero-swirl { animation: none; }
  .hero-swirl--a { opacity: .42; }
  .hero-swirl--b { opacity: .2; }
}
/* keep the motif from crowding the text on small screens */
@media (max-width: 640px) {
  .hero-swirl-wrap { width: min(66vh, 460px); }
  .hero-grid { background-size: 46px 46px; }
}

/* ----- Grain (kept very subtle on light paper) ----- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Marquee ----- */
.marquee { overflow: hidden; }
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----- Scroll reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----- Service row hover accent ----- */
.svc-row { transition: background .4s ease; }
.svc-row:hover { background: rgba(28, 125, 151, .05); }
.svc-row:hover .svc-no { color: var(--teal); }
.svc-no { transition: color .4s ease; }

/* ----- Service cards (image-first, Mindshare-style) ----- */
.svc-card {
  position: relative; display: block; overflow: hidden; cursor: pointer;
  border-radius: 24px; aspect-ratio: 3 / 4; color: #fff;
  isolation: isolate; background: var(--ink);
}
.svc-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -2; transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.svc-card__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(7, 16, 24, .92) 5%, rgba(7, 16, 24, .45) 38%, rgba(7, 16, 24, .04) 72%);
}
.svc-card:hover .svc-card__img,
.svc-card:focus-visible .svc-card__img { transform: scale(1.06); }
.svc-card:focus-visible { outline: 2px solid var(--teal-lite); outline-offset: 3px; }
.svc-card__top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.5rem;
}
.svc-card__no { font-family: "JetBrains Mono", monospace; font-size: .8rem; letter-spacing: .15em; color: rgba(255, 255, 255, .85); }
.svc-card__body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.75rem; }
.svc-card__title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: clamp(1.5rem, 1.6vw, 1.95rem); letter-spacing: -.02em; line-height: 1.05; }
.svc-card__title em { font-style: normal; color: var(--teal-lite); }
.svc-card__tag { margin-top: .6rem; font-family: "JetBrains Mono", monospace; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.svc-card__cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-weight: 500; font-size: .95rem; color: #fff; }
.svc-card__cta svg { transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.svc-card:hover .svc-card__cta svg { transform: translateX(6px); }
.svc-badge--light { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); transform: none; }
@media (max-width: 768px) { .svc-card { aspect-ratio: 16 / 11; } }
@media (prefers-reduced-motion: reduce) { .svc-card__img { transition: none; } }

/* ----- Clickable service rows: explore cue + thumbnail peek ----- */
.svc-row { cursor: pointer; }
.svc-row:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 12px; }
.svc-explore { transition: color .3s ease; }
.svc-explore svg { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.svc-row:hover .svc-explore { color: var(--teal-deep); }
.svc-row:hover .svc-explore svg { transform: translateX(6px); }
.svc-thumbs img {
  width: 48px; height: 48px; border-radius: 11px; object-fit: cover;
  border: 2px solid var(--paper);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.svc-row:hover .svc-thumbs img:nth-child(1) { transform: translateX(-2px) rotate(-3deg); }
.svc-row:hover .svc-thumbs img:nth-child(3) { transform: translateX(2px) rotate(3deg); }

/* ----- Modal (service detail + gallery) ----- */
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 1.25rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(16, 32, 46, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative; z-index: 1;
  width: min(960px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 26px; padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 40px 110px -30px rgba(16, 32, 46, .55);
  transform: translateY(28px) scale(.985);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close {
  position: sticky; top: 0; z-index: 3;
  float: right;
  margin: -.5rem -.5rem .5rem 1rem;
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--cloud); color: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(16, 32, 46, .35);
  transition: background .25s, color .25s, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.modal__close:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: rotate(90deg); }
.modal__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.modal__gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px; display: block; cursor: zoom-in;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease;
}
.modal__gallery img:hover { transform: scale(1.015); box-shadow: 0 20px 40px -18px rgba(16, 32, 46, .4); }
@media (max-width: 640px) { .modal__gallery { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .modal, .modal__panel, .modal__gallery img { transition: opacity .2s ease, visibility .2s ease; }
}

/* ----- Partner tiles (named TV channels & news portals) ----- */
.partner-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  padding: 1.5rem 1rem; text-align: center; color: var(--ink);
  transition: background .3s ease;
}
.partner-tile:hover { background: var(--cloud); }
.partner-tile svg { width: 22px; height: 22px; opacity: .55; color: var(--teal); }
.partner-tile .pname {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600;
  font-size: 1.02rem; letter-spacing: -.01em; color: var(--ink); line-height: 1.1;
  transition: color .3s ease;
}
.partner-tile:hover .pname { color: var(--teal); }

/* ----- "Primary service" badge ----- */
.svc-badge {
  display: inline-block; vertical-align: middle;
  font-family: "JetBrains Mono", monospace;
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(28, 125, 151, .12);
  border: 1px solid rgba(28, 125, 151, .28);
  padding: .3rem .6rem; border-radius: 999px;
  transform: translateY(-.35em);
}

/* ----- Media-network ticker chips ----- */
.media-chip {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem); letter-spacing: -.01em;
  color: var(--ink); white-space: nowrap;
}
.media-dot { color: var(--teal); font-size: .7em; }

/* ----- Lightbox (fullscreen gallery image viewer) ----- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 2.5rem);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 18, 26, .88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lightbox__fig {
  position: relative; z-index: 1; margin: 0;
  max-width: min(1120px, 100%); display: flex; flex-direction: column; align-items: center;
}
.lightbox__img {
  display: block; max-width: 100%; max-height: 80vh;
  border-radius: 14px; object-fit: contain;
  box-shadow: 0 40px 90px -25px rgba(0, 0, 0, .7);
  transform: scale(.96); opacity: .6;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .4s ease;
}
.lightbox.is-open .lightbox__img { transform: scale(1); opacity: 1; }
.lightbox__counter {
  margin-top: 1.1rem;
  font-family: "JetBrains Mono", monospace; font-size: .8rem; letter-spacing: .18em;
  color: rgba(243, 237, 225, .75);
}
.lightbox__close, .lightbox__nav {
  position: fixed; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(243, 237, 225, .25);
  background: rgba(243, 237, 225, .08); color: #f3ede1;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.lightbox__close { top: 1.25rem; right: 1.25rem; width: 46px; height: 46px; }
.lightbox__close:hover { background: var(--teal); border-color: var(--teal); transform: rotate(90deg); }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; }
.lightbox__prev { left: clamp(.75rem, 3vw, 2rem); }
.lightbox__next { right: clamp(.75rem, 3vw, 2rem); }
.lightbox__nav:hover { background: var(--teal); border-color: var(--teal); }
.lightbox__prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__next:hover { transform: translateY(-50%) translateX(3px); }
@media (max-width: 640px) {
  .lightbox__nav { top: auto; bottom: 1.25rem; transform: none; width: 48px; height: 48px; }
  .lightbox__prev { left: 25%; } .lightbox__next { right: 25%; }
  .lightbox__prev:hover, .lightbox__next:hover { transform: none; }
  .lightbox__img { max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__img { transition: opacity .2s ease, visibility .2s ease; }
  .lightbox__img { transform: none; }
}

/* ----- Nav scrolled state ----- */
#nav.is-scrolled {
  background: rgba(251, 248, 242, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; letter-spacing: .01em;
  padding: .85rem 1.6rem; border-radius: 999px;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid {
  color: var(--cloud);
  background: linear-gradient(100deg, var(--teal-deep), var(--teal));
  box-shadow: 0 12px 30px -10px rgba(12, 74, 94, .55);
}
.btn-solid:hover { box-shadow: 0 18px 42px -10px rgba(12, 74, 94, .65); }
.btn-line {
  color: var(--ink);
  border: 1px solid rgba(16, 32, 46, .22);
}
.btn-line:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(16, 32, 46, .18);
  padding: .6rem 1.2rem; font-size: .9rem;
}
.btn-ghost:hover { background: rgba(16, 32, 46, .05); border-color: var(--teal); color: var(--teal); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

/* ----- Eyebrow label ----- */
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--teal);
}
/* Hero eyebrow — Mindshare-style: refined, airy, muted (not a loud accent) */
.eyebrow--hero {
  font-size: .8rem; font-weight: 500; letter-spacing: .3em;
  color: var(--slate);
}
@media (min-width: 768px) {
  .eyebrow--hero { font-size: .92rem; }
}

/* ----- Field ----- */
.field {
  width: 100%;
  background: var(--cloud);
  border: 1px solid rgba(16, 32, 46, .14);
  border-radius: 14px;
  padding: .9rem 1.1rem;
  color: var(--ink);
  font-family: inherit; font-size: 1rem;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field::placeholder { color: #9aa6ae; }
.field:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(28, 125, 151, .12);
}
.field-err { border-color: var(--alert); }
