/* thiinkVP — Tactical Noir Responsive Stylesheet */

:root {
  --bg: #0a0d10;
  --bg-alt: #0e1216;
  --bg-deep: #070a0d;
  --text: #ffffff;
  --text-muted: #b4bac1;
  --text-dim: #9ba3ab;
  --text-faint: #6a737c;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.15);
  --teal: #4DE0D8;
  --teal-soft: rgba(77, 224, 216, 0.12);
  --purple: #6B2FB3;

  /* Fluid spacing */
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(56px, 9vw, 120px);
  --gap: clamp(32px, 5vw, 80px);

  /* Fluid type */
  --fs-hero: clamp(48px, 11vw, 128px);
  --fs-h1: clamp(42px, 9vw, 104px);
  --fs-h2: clamp(36px, 6.5vw, 72px);
  --fs-h3: clamp(24px, 3vw, 36px);
  --fs-stat: clamp(28px, 3.5vw, 40px);
  --fs-body: clamp(14px, 1.1vw, 17px);
  --fs-small: clamp(12px, 0.95vw, 14px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--wp--preset--color--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}
body {
  background-image: radial-gradient(ellipse at top, rgba(40, 20, 60, 0.4), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

@keyframes noirSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes noirPing { 0% { r: 3; opacity: 1; } 100% { r: 18; opacity: 0; } }
@keyframes navSlide { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ====== NAV ====== */
.tvp-nav {
  display: flex !important; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  border-bottom: 1px solid rgba(77, 224, 216, 0.12);
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 16, 0.85);
  backdrop-filter: blur(14px);
  gap: 24px;
}
.tvp-nav-brand { display: flex !important; align-items: center; gap: 14px; flex-shrink: 0; }
.tvp-nav-brand img { height: clamp(36px, 3.5vw, 42px); filter: drop-shadow(0 0 12px rgba(77, 224, 216, 0.35)); }
.tvp-nav-brand-text { display: flex !important; flex-direction: column; line-height: 1; }
.tvp-nav-brand-name { font-family: 'Oswald', sans-serif; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: 0.18em; color: #fff; font-weight: 600; }
.tvp-nav-brand-license { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.3em; color: #5a6670; margin-top: 4px; }

.tvp-nav-links { display: flex !important; gap: clamp(20px, 3vw, 38px); font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 0.22em; }
.tvp-nav-links a { color: #9ba3ab; padding-bottom: 4px; border-bottom: 1px solid transparent; transition: color 0.2s; }
.tvp-nav-links a:hover { color: #fff; }
.tvp-nav-links a.active { color: #fff; border-bottom-color: #4DE0D8; }

.tvp-nav-right { display: flex !important; align-items: center; gap: 16px; flex-shrink: 0; }
.tvp-nav-status { display: flex !important; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #4DE0D8; letter-spacing: 0.15em; }
.tvp-nav-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4DE0D8; box-shadow: 0 0 8px #4DE0D8; }
.tvp-nav-cta {
  border: 1px solid #4DE0D8; color: #4DE0D8;
  padding: 10px 22px; font-family: 'Oswald', sans-serif; font-size: 12;
  letter-spacing: 0.25em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  white-space: nowrap;
}

.tvp-nav-hamburger { display: none; background: transparent; border: none; color: #fff; cursor: pointer; padding: 8px; }
.tvp-nav-hamburger svg { width: 28px; height: 28px; }

.tvp-mobile-panel { display: none; }

/* Nav breakpoints */
@media (max-width: 1100px) {
  .tvp-nav-status { display: none; }
}
@media (max-width: 900px) {
  .tvp-nav-links, .tvp-nav-cta { display: none; }
  .tvp-nav-hamburger { display: flex !important; }
  .tvp-mobile-panel.open {
    display: flex !important; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: rgba(7, 10, 13, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px var(--pad-x);
    animation: navSlide 0.3s ease;
  }
  .tvp-mobile-panel-head { display: flex !important; justify-content: space-between; align-items: center; margin-bottom: 48px; }
  .tvp-mobile-panel .tvp-nav-links { display: flex !important; flex-direction: column; gap: 24px; font-size: 28px; line-height: 1; }
  .tvp-mobile-panel .tvp-nav-links a { border: none; padding: 8px 0; }
  .tvp-mobile-panel .tvp-nav-cta { display: inline-block; margin-top: 40px; text-align: center; align-self: flex-start; font-size: 14px; padding: 16px 28px; }
  .tvp-mobile-panel-foot { margin-top: auto; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #5a6670; letter-spacing: 0.2em; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); }
}

/* ====== LAYOUT HELPERS ====== */
.tvp-section { padding: var(--pad-y) var(--pad-x); position: relative; }
.tvp-section-bordered { border-top: 1px solid rgba(255,255,255,0.06); }
.tvp-grid-bg::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(77, 224, 216, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(77, 224, 216, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 40%, transparent 80%);
}

.tvp-split { display: grid !important; grid-template-columns: 1.4fr 1fr; gap: var(--gap); align-items: center; }
.tvp-split-even { display: grid !important; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.tvp-split-wide { display: grid !important; grid-template-columns: 1fr 1.2fr; gap: var(--gap); align-items: center; }

@media (max-width: 900px) {
  .tvp-split, .tvp-split-even, .tvp-split-wide { grid-template-columns: 1fr; }
  .tvp-split > *:first-child, .tvp-split-even > *:first-child, .tvp-split-wide > *:first-child { order: -1; }
}

/* 4-col grid → 2 col on tablet → 1 col on mobile */
.tvp-grid-4 { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,0.08); }
.tvp-grid-4 > * { padding: 36px 28px 36px 0; border-right: 1px solid rgba(255,255,255,0.08); min-height: 340px; position: relative; }
.tvp-grid-4 > *:not(:first-child) { padding-left: 28px; }
.tvp-grid-4 > *:last-child { border-right: none; }

@media (max-width: 1100px) {
  .tvp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tvp-grid-4 > * { border-right: 1px solid rgba(255,255,255,0.08); min-height: auto; padding-bottom: 44px; }
  .tvp-grid-4 > *:nth-child(2n) { border-right: none; }
  .tvp-grid-4 > *:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.08); }
}
@media (max-width: 600px) {
  .tvp-grid-4 { grid-template-columns: 1fr; }
  .tvp-grid-4 > * { border-right: none; padding: 32px 0; }
  .tvp-grid-4 > *:not(:first-child) { border-top: 1px solid rgba(255,255,255,0.08); padding-left: 0; }
}

/* 2-col grid with border chrome */
.tvp-grid-2 { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,0.08); }
.tvp-grid-2 > * { padding: 44px 48px 44px 0; position: relative; }
.tvp-grid-2 > *:nth-child(2n-1) { border-right: 1px solid rgba(255,255,255,0.08); }
.tvp-grid-2 > *:nth-child(2n) { padding-left: 48px; }
.tvp-grid-2 > *:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.08); }

@media (max-width: 800px) {
  .tvp-grid-2 { grid-template-columns: 1fr; }
  .tvp-grid-2 > * { padding: 32px 0 !important; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .tvp-grid-2 > *:last-child { border-bottom: none; }
}

/* 3-col grid */
.tvp-grid-3 { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 900px) { .tvp-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tvp-grid-3 { grid-template-columns: 1fr; } }

/* 4-col grid */
.tvp-grid-4 { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); }
@media (max-width: 1100px) { .tvp-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tvp-grid-4 { grid-template-columns: 1fr; } }

/* stat strip */
.tvp-stats { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.08); }

/* CTA strip */
.tvp-cta-strip { display: flex !important; justify-content: space-between; align-items: center; gap: 60px; max-width: 1400px; margin: 0 auto; position: relative; }
@media (max-width: 900px) { .tvp-cta-strip { flex-direction: column; align-items: flex-start; gap: 32px; } }

/* Roster cards */
.tvp-roster { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1100px) { .tvp-roster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tvp-roster { grid-template-columns: 1fr; } }

/* Role list */
.tvp-role-row { display: grid !important; grid-template-columns: 2fr 1fr 1fr auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,0.08); align-items: center; }
@media (max-width: 800px) {
  .tvp-role-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .tvp-role-row > *:last-child { margin-top: 8px; }
}

/* Footer grid */
.tvp-footer-grid { display: grid !important; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(32px, 5vw, 60px); margin-bottom: 56px; }
@media (max-width: 900px) { .tvp-footer-grid { grid-template-columns: 1fr 1fr; } .tvp-footer-grid > *:first-child { grid-column: 1 / -1; margin-bottom: 16px; } }
@media (max-width: 500px) { .tvp-footer-grid { grid-template-columns: 1fr; } .tvp-footer-grid > *:first-child { grid-column: auto; } }

.tvp-footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.06); display: flex !important; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #4a5258; letter-spacing: 0.2em; }

/* Buttons */
.tvp-btn { display: inline-block; padding: 16px 32px; font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 0.25em; font-weight: 600; cursor: pointer; border: none; transition: transform 0.15s; white-space: nowrap; }
.tvp-btn:hover { transform: translateY(-1px); }
.tvp-btn-primary { background: #4DE0D8; color: #0a0d10; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.tvp-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }

.tvp-btn-row { display: flex !important; gap: 20px; flex-wrap: wrap; }

/* Headings */
.tvp-kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.32em; color: #4DE0D8; margin-bottom: 18px; display: flex !important; align-items: center; gap: 14px; }
.tvp-kicker::before { content: ''; width: 48px; height: 1px; background: #4DE0D8; flex-shrink: 0; }
.tvp-kicker-plain { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.32em; color: #4DE0D8; margin-bottom: 18px; }

.tvp-h1 { font-family: 'Oswald', sans-serif; font-weight: 400; font-size: var(--fs-hero); line-height: 0.94; letter-spacing: -0.02em; color: #fff; margin: 0; text-transform: uppercase; }
.tvp-h2 { font-family: 'Oswald', sans-serif; font-size: var(--fs-h2); color: #fff; margin: 0; font-weight: 400; text-transform: uppercase; line-height: 1; letter-spacing: -0.01em; }
.tvp-h3 { font-family: 'Oswald', sans-serif; font-size: var(--fs-h3); color: #fff; margin: 0 0 18px; font-weight: 400; text-transform: uppercase; letter-spacing: -0.005em; }
.tvp-body { font-family: 'Inter', sans-serif; font-size: var(--fs-body); line-height: 1.6; color: #b4bac1; font-weight: 300; }
.tvp-dim { color: #9ba3ab; }
.tvp-teal { color: #4DE0D8; }

/* Hero section */
.tvp-hero-head { display: flex !important; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #6a737c; letter-spacing: 0.25em; gap: 24px; flex-wrap: wrap; }

/* Form inputs */
.tvp-input { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 12px 0; font-family: 'Inter', sans-serif; font-size: 15px; color: #fff; outline: none; }
.tvp-input:focus { border-bottom-color: #4DE0D8; }
.tvp-input::placeholder { color: #6a737c; }

/* Aspect panels */
.tvp-aspect-square { aspect-ratio: 1; }
.tvp-aspect-portrait { aspect-ratio: 4/5; }
@media (max-width: 600px) { .tvp-aspect-square, .tvp-aspect-portrait { aspect-ratio: auto; height: clamp(320px, 70vw, 480px); } }

/* Utility */
.tvp-hide-mobile { }
@media (max-width: 600px) { .tvp-hide-mobile { display: none; } }
