/* ==========================================================================
   Tango Sierra Media — marketing site shared styles
   Palette reference: roles/advertising_stack/files/dashboard/creatives/
   house-branding-1.html / house-branding-2.html (placeholder brand kit —
   see docs/plans/tsm-screen-creatives-brand-kit.md for the eventual real kit)
   ========================================================================== */

:root {
  --navy-dark: #0a0e1a;
  --navy-mid: #1a2340;
  --navy-deep: #0d1f3c;
  --cyan: #00c8ff;
  --teal: #00c896;
  --white: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.68);
  --text-dimmer: rgba(255, 255, 255, 0.45);
  --border-soft: rgba(0, 200, 255, 0.18);
  --card-bg: rgba(255, 255, 255, 0.03);
  --max-width: 1180px;
  --header-height: 76px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--navy-dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  margin-bottom: 10px;
}

.accent {
  color: var(--cyan);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
}

/* ---------------------------------------------------------------------- */
/* Backgrounds                                                            */
/* ---------------------------------------------------------------------- */

.bg-gradient {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a2340 50%, #0d1f3c 100%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  will-change: transform;
  animation: gridPan 24s linear infinite;
}

@keyframes gridPan {
  from { transform: translate(0, 0); }
  to   { transform: translate(56px, 56px); }
}

/* ---------------------------------------------------------------------- */
/* Header / nav                                                           */
/* ---------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 200, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(0, 200, 255, 0.7);
  color: var(--cyan);
  font-weight: 900;
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
}

.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00c896, #0078ff, #00c8ff);
  color: var(--navy-dark) !important;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #00c896, #0078ff, #00c8ff);
  color: var(--navy-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 200, 255, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero canvas#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 760px;
  padding: 80px 0 100px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  margin-bottom: 22px;
}

.hero .lede {
  max-width: 560px;
  margin-bottom: 8px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--cyan);
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-dimmer);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(0, 200, 255, 0.5);
  border-radius: 20px;
}

.scroll-cue::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  70%  { opacity: 0; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ---------------------------------------------------------------------- */
/* Sections                                                                */
/* ---------------------------------------------------------------------- */

section {
  position: relative;
  padding: 110px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin: 0 0 56px;
  text-align: left;
}

.section-alt {
  background: var(--navy-mid);
}

/* Two-audience split cards */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.audience-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.audience-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.18), transparent 70%);
}

.audience-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.audience-card ul {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audience-card li {
  padding-left: 26px;
  position: relative;
  color: var(--text-dim);
  font-size: 15px;
}

.audience-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

/* Feature / step grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-soft);
  transform: translateY(-4px);
}

.feature-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 15px;
}

/* Image band */
.photo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-band figure {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-band figure:hover img {
  transform: scale(1.06);
}

.photo-band figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(to top, rgba(10, 14, 26, 0.9), transparent);
}

/* Fallback gradient tile for when a photo isn't used */
.gradient-tile {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00c896, #0078ff 50%, #00c8ff);
  opacity: 0.85;
}

/* CTA banner */
.cta-banner {
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  background: radial-gradient(circle at 30% 20%, rgba(0, 200, 255, 0.16), transparent 55%), var(--navy-mid);
  border: 1px solid var(--border-soft);
}

.cta-banner .btn-group {
  justify-content: center;
}

/* Coming-soon panel (case studies) */
.coming-soon {
  border: 1px dashed rgba(0, 200, 255, 0.35);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  background: var(--card-bg);
}

.coming-soon .badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: var(--teal);
  margin-bottom: 20px;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}

.pipeline-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 26px 28px;
}

.pipeline-card .status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

/* Services page layout */
.services-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.services-block:nth-of-type(even) .services-visual {
  order: 2;
}

.services-visual {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.services-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checklist {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist li {
  padding-left: 30px;
  position: relative;
  color: var(--text-dim);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 800;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 40px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.contact-info h3 {
  margin-top: 40px;
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info p {
  color: var(--text-dim);
}

.contact-info a.contact-email {
  color: var(--cyan);
  font-weight: 700;
  font-size: 18px;
}

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dimmer);
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(0, 200, 255, 0.1);
  padding: 56px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .logo {
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-dimmer);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-nav a {
  color: var(--text-dim);
}

.footer-nav a:hover {
  color: var(--cyan);
}

.footer-contact a {
  color: var(--cyan);
  font-weight: 600;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dimmer);
}

/* ---------------------------------------------------------------------- */
/* Scroll-reveal utility (driven by GSAP ScrollTrigger in js/main.js,     */
/* falls back to plain visible state if JS/GSAP unavailable or motion is  */
/* reduced — see main.js)                                                 */
/* ---------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.reveal-ready {
  opacity: 0;
}

.no-js .reveal,
.reduced-motion .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */

@media (max-width: 860px) {
  .audience-grid,
  .feature-grid,
  .photo-band,
  .pipeline-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-block,
  .services-block:nth-of-type(even) .services-visual {
    grid-template-columns: 1fr;
    order: 0;
  }

  .services-visual {
    aspect-ratio: 16 / 9;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--navy-mid);
    padding: 18px 24px 26px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.15);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }

  .site-nav a {
    padding: 12px 0;
    width: 100%;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  section {
    padding: 76px 0;
  }
}

/* ---------------------------------------------------------------------- */
/* Reduced motion                                                         */
/* ---------------------------------------------------------------------- */

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

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .grid-overlay {
    animation: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
