/* ===================== TNB MEDIA — DESIGN TOKENS ===================== */
:root{
  --bg: #0c0c0d;
  --bg-alt: #141415;
  --bg-card: #1a1a1b;
  --line: #2a2a2c;
  --fg: #f3f1ec;
  --muted: #a7a5a0;
  --red: #e8232b;
  --red-dark: #b81b21;
  --cream: #efece4;

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --radius: 14px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3{ font-family: var(--font-display); line-height:1.05; margin:0; letter-spacing:-0.01em; }
p{ margin:0 0 1em; color: var(--muted); }
.text-red{ color: var(--red); }

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

/* subtle grain overlay for texture */
.noise-overlay{
  position:fixed; inset:0; pointer-events:none; z-index: 9999;
  opacity:.035; mix-blend-mode: overlay;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== CUSTOM CURSOR ===================== */
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button,
body.has-custom-cursor input, body.has-custom-cursor textarea, body.has-custom-cursor select,
body.has-custom-cursor label{ cursor:none; }

.cursor-dot, .cursor-ring{
  position: fixed; top:0; left:0; pointer-events:none; z-index: 10000;
  border-radius:50%; transform: translate(-50%,-50%);
  will-change: transform;
}
.cursor-dot{
  width:6px; height:6px; background: var(--red);
  transition: opacity .2s ease, transform .15s ease;
}
.cursor-ring{
  width:38px; height:38px; border:1.5px solid rgba(243,241,236,.45);
  transition: width .28s cubic-bezier(.2,.8,.2,1), height .28s cubic-bezier(.2,.8,.2,1),
              border-color .25s ease, background-color .25s ease, opacity .2s ease;
}
.cursor-ring.is-hover{
  width:68px; height:68px;
  border-color: var(--red); background: rgba(232,35,43,.1);
}
.cursor-ring.is-click{ width:30px; height:30px; }
.cursor-dot.is-hidden, .cursor-ring.is-hidden{ opacity:0; }

@media (pointer: coarse){
  .cursor-dot, .cursor-ring{ display:none; }
}

/* ===================== BUTTONS ===================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  cursor:pointer;
}
.btn-primary{ background: var(--red); color:#fff; }
.btn-primary:hover{ background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost{ border-color: rgba(243,241,236,.35); color: var(--fg); background: transparent; }
.btn-ghost:hover{ border-color: var(--fg); transform: translateY(-2px); }

/* ===================== HEADER / NAV ===================== */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  background: rgba(12,12,13,0); border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled{
  background: rgba(12,12,13,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.container.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 78px; max-width:none; padding: 0 40px;
}
.main-nav{ position:absolute; left:50%; transform:translateX(-50%); }
.logo{ display:inline-flex; align-items:center; line-height:1; }
.logo-img{ display:block; height:54px; width:auto; }

.main-nav{ display:flex; gap: 36px; }
.main-nav a{ font-size:.92rem; font-weight:500; color: var(--fg); opacity:.8; transition: opacity .2s ease; position:relative; }
.main-nav a:hover{ opacity:1; }
.main-nav a::after{
  content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--red);
  transition: width .25s ease;
}
.main-nav a:hover::after{ width:100%; }

.nav-cta{ padding: 10px 22px; font-size:.85rem; }
.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; background:none; border:none; cursor:pointer;
}
.nav-toggle span{ display:block; width:100%; height:2px; background: var(--fg); transition: transform .25s ease, opacity .25s ease; }

/* ===================== HERO ===================== */
.hero{
  position:relative;
  min-height: 100vh;
  display:flex; align-items:center;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  background-size: cover; background-position: center 30%;
  transform: scale(1.05);
}
.hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(12,12,13,.55) 0%, rgba(12,12,13,.75) 45%, var(--bg) 100%),
    linear-gradient(90deg, rgba(12,12,13,.95) 0%, rgba(12,12,13,.35) 65%);
}
.hero-inner{ position:relative; z-index:2; padding-top: 90px; }
.eyebrow{
  text-transform: uppercase; letter-spacing:.2em; font-size:.75rem;
  color: var(--red); font-weight:700; margin-bottom: 20px;
}
.hero-title{ font-size: clamp(2.4rem, 6vw, 4.6rem); color: var(--cream); max-width: 900px; }
.hero-lede{ max-width: 560px; margin-top: 24px; font-size:1.05rem; }
.hero-actions{ display:flex; gap:18px; margin-top: 36px; flex-wrap: wrap; }

.scroll-cue{
  position:absolute; bottom: 34px; left:50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(243,241,236,.4); border-radius: 20px;
  z-index:2;
}
.scroll-cue span{
  position:absolute; top:8px; left:50%; transform: translateX(-50%);
  width:4px; height:8px; background: var(--red); border-radius: 2px;
  animation: scrollcue 1.6s infinite;
}
@keyframes scrollcue{
  0%{ opacity:1; top:8px; } 70%{ opacity:0; top:22px; } 100%{ opacity:0; top:8px; }
}

/* ===================== SECTION GENERICS ===================== */
section{ padding: 110px 0; position:relative; }
.section-title{ font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 20px; }
.section-kicker{ font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 48px; text-align:center; }
.section-sub{ max-width: 620px; font-size:1.05rem; margin-bottom: 56px; }

/* ===================== MARQUEE ===================== */
.marquee{
  background: var(--red); overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(0,0,0,.15); border-bottom: 1px solid rgba(0,0,0,.15);
}
.marquee-track{
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 0;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}
.marquee-track span{
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .03em;
  color: #fff; text-transform: uppercase;
}
.marquee-dot{ color: rgba(255,255,255,.55); font-size: .8rem; }
@keyframes marquee-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

/* ===================== PROCESS ===================== */
.process{ background: var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.process-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.process-step{
  padding: 36px 28px 0; border-right: 1px solid var(--line);
}
.process-step:last-child{ border-right:none; }
.process-index{
  display:block; font-family: var(--font-display); font-size: 2.6rem;
  color: var(--line); line-height:1; margin-bottom: 18px; transition: color .25s ease;
}
.process-step:hover .process-index{ color: var(--red); }
.process-step h3{ font-size:1.15rem; margin-bottom: 10px; }
.process-step p{ font-size:.92rem; margin:0; }

/* ===================== STATS ===================== */
.stats{ background: var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stats-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow:hidden;
}
.stat-card{ background: var(--bg-alt); padding: 40px 32px; }
.stat-card-feature{ background: var(--red); }
.stat-card-feature p{ color: rgba(255,255,255,.85); }
.stat-number{ display:block; font-family: var(--font-display); font-size: 3rem; color: var(--fg); line-height:1; margin-bottom:14px; }
.stat-card-feature .stat-number{ color:#fff; }
.stat-number small{ font-size:1.6rem; }
.stat-card p{ margin:0; font-size:.92rem; }
.stat-source{ margin-top: 28px; font-size:.75rem; opacity:.6; text-align:center; }

/* ===================== ABOUT ===================== */
.about-grid{
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items:start;
  padding-bottom: 90px;
}
.about-copy p{ font-size: 1.05rem; }
.roof-card{
  background: var(--bg-card); border:1px solid var(--line); border-radius: var(--radius);
  padding: 36px;
}
.roof-card h3{ font-size:1.3rem; margin-bottom: 22px; }
.roof-list li{
  display:flex; align-items:center; gap:12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-weight:600; color: var(--fg);
}
.roof-list li:last-child{ border-bottom:none; }
.roof-list li.is-accent{ color: var(--red); }
.roof-ico{ font-size:.6rem; color: var(--red); }
.roof-list li.is-accent .roof-ico{ color: var(--red); }

/* leadership */
.leadership{ display:flex; flex-direction:column; gap: 80px; padding-top: 40px; border-top: 1px solid var(--line); }
.leader-card{ display:grid; grid-template-columns: 280px 1fr; gap: 48px; align-items:center; }
.leader-card.reverse{ grid-template-columns: 1fr 280px; }
.leader-card.reverse .leader-photo{ order:2; }
.leader-photo img{
  border-radius: var(--radius);
  aspect-ratio: 3/4; object-fit: cover; object-position: top center;
  border:1px solid var(--line);
}
.leader-role{ text-transform:uppercase; letter-spacing:.15em; font-size:.75rem; color: var(--red); font-weight:700; margin-bottom:8px; }
.leader-name{ font-size:1.8rem; margin-bottom:18px; }
.as-seen{ font-size:.8rem; opacity:.6; margin-top: 8px; }
.tagline{ font-style: italic; color: var(--fg); opacity:.75; }

/* ===================== SERVICES ===================== */
.services{ background: var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.services-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card{
  background: var(--bg-card); border:1px solid var(--line); border-radius: var(--radius);
  padding: 34px; transition: transform .25s ease, border-color .25s ease;
}
.service-card:hover{ transform: translateY(-6px); border-color: rgba(232,35,43,.5); }
.service-card.is-featured{ background: var(--red); border-color: var(--red); }
.service-card.is-featured p{ color: rgba(255,255,255,.85); }
.service-card.is-featured .service-ico svg{ stroke:#fff; }
.service-ico{ width: 46px; height:46px; margin-bottom: 22px; }
.service-ico svg{ width:100%; height:100%; fill:none; stroke: var(--red); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.service-card.is-featured .service-ico svg{ stroke:#fff; }
.service-card h3{ font-size:1.15rem; margin-bottom: 12px; }
.service-card p{ margin:0; font-size:.92rem; }

/* ===================== WORK / PORTFOLIO ===================== */
.work-slider{ position:relative; }
.work-controls{ display:flex; justify-content:flex-end; gap:10px; margin: -40px 0 24px; }
.slider-btn{
  width:48px; height:48px; border-radius:50%; cursor:pointer;
  background: transparent; border:1px solid var(--line); color: var(--fg);
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
.slider-btn svg{ width:20px; height:20px; fill:none; stroke: currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.slider-btn:hover:not(:disabled){ background: var(--red); border-color: var(--red); }
.slider-btn:disabled{ opacity:.3; cursor:default; }
.work-grid{
  display:flex; gap: 26px; overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none; -webkit-overflow-scrolling:touch; padding: 8px 2px 24px;
  cursor: grab;
}
.work-grid::-webkit-scrollbar{ display:none; }
.work-grid.is-dragging{ cursor:grabbing; scroll-snap-type:none; }
.work-grid.is-dragging .work-card{ pointer-events:none; }
.work-grid > .work-card{ flex: 0 0 380px; scroll-snap-align:start; }
.work-card{
  display:block; text-decoration:none; color:inherit;
  background: var(--bg-card); border:1px solid var(--line); border-radius: var(--radius);
  overflow:hidden; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.work-card:hover{
  transform: translateY(-8px);
  border-color: rgba(232,35,43,.55);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.55);
}
.work-img{ position:relative; height: 260px; overflow:hidden; background: var(--bg-alt); }
.work-img img{
  width:100%; height:100%; object-fit: cover; object-position: center 15%;
  transition: transform .5s ease, filter .3s ease;
}
.work-card:hover .work-img img{ transform: scale(1.08); filter: brightness(.65); }
.work-img::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.65) 100%);
  pointer-events:none;
}
.work-play{
  position:absolute; top:50%; left:50%; transform: translate(-50%,-50%) scale(.8);
  width:60px; height:60px; border-radius:50%;
  background: rgba(12,12,13,.55); backdrop-filter: blur(2px);
  border: 1.5px solid rgba(255,255,255,.7);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition: opacity .25s ease, transform .25s ease, background .25s ease;
  z-index:2;
}
.work-play svg{ width:22px; height:22px; fill:#fff; margin-left:3px; }
.work-card:hover .work-play{ opacity:1; transform: translate(-50%,-50%) scale(1); background: var(--red); border-color: var(--red); }
.work-badge{
  position:absolute; top:14px; right:14px; z-index:2;
  font-size:.68rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  padding: 5px 10px; border-radius: 999px; color:#fff;
  display:flex; align-items:center; gap:5px;
}
.work-badge-yt{ background: #e8232b; }
.work-badge-ig{ background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.work-copy{ padding: 22px; }
.work-client{ font-weight:700; color: var(--fg); margin-bottom:8px; font-size:.95rem; }
.work-copy p:last-child{ font-size:.88rem; margin:0; color: var(--muted); }
.work-card-cta{
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  padding: 34px; background: linear-gradient(160deg, var(--red), var(--red-dark));
  gap: 20px; transition: transform .3s ease, box-shadow .3s ease;
}
.work-card-cta:hover{ transform: translateY(-8px); box-shadow: 0 20px 40px -16px rgba(0,0,0,.55); }
.work-card-cta h3{ font-size:1.5rem; color:#fff; }
.work-card-cta .btn{ pointer-events:none; }

/* ===================== CLIENTS ===================== */
.clients-logos{
  background: #fff; border-radius: var(--radius); padding: 30px;
}

/* ===================== CAREERS ===================== */
.careers{ background: var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.roles-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-bottom: 56px;
}
.role-card{
  background: var(--bg-card); border:1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .25s ease, border-color .25s ease, background .25s ease;
  cursor: pointer; user-select: none;
}
.role-card:hover{ transform: translateY(-4px); border-color: rgba(232,35,43,.5); }
.role-card:focus-visible{ outline: 2px solid var(--red); outline-offset: 3px; }
.role-card h3{ font-size:1.05rem; margin-bottom: 8px; }
.role-card p{ margin:0; font-size:.85rem; }
.role-card-open{ border-color: var(--red); background: rgba(232,35,43,.08); }
.role-card.is-selected{ border-color: var(--red); background: rgba(232,35,43,.14); }
.role-card.is-selected p{ color: var(--fg); }
.careers-form{ max-width: 640px; margin: 0; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.careers-form select{
  width:100%; padding: 15px 18px; border-radius: 10px;
  background: var(--bg-card); border:1px solid var(--line); color: var(--fg);
  font-family: var(--font-body); font-size:.95rem;
}
.careers-form select:invalid{ color: var(--muted); }
.careers-form .btn{ align-self:flex-start; }
.form-status{ font-size:.88rem; min-height: 1.2em; margin: 4px 0 0; }
.form-status.is-success{ color: #4caf6a; }
.form-status.is-error{ color: var(--red); }

/* ===================== TESTIMONIALS ===================== */
.testimonial-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card{
  margin:0; background: var(--bg-card); border:1px solid var(--line); border-radius: var(--radius);
  padding: 32px;
}
.stars{ color: var(--red); letter-spacing:.15em; margin-bottom: 18px; }
.testimonial-card p{ color: var(--fg); font-size:1rem; font-style: italic; }
.testimonial-card cite{ display:block; margin-top: 18px; font-style:normal; font-weight:700; color: var(--muted); font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; }

/* ===================== CTA / CONTACT ===================== */
.cta-band{ background: var(--bg-alt); border-top:1px solid var(--line); }
.cta-inner{ text-align:center; display:flex; flex-direction:column; align-items:center; }
.cta-title{ font-size: clamp(1.8rem, 4vw, 3rem); max-width: 780px; margin-bottom: 20px; }
.contact-form{
  margin-top: 40px; width:100%; max-width: 520px;
  display:flex; flex-direction:column; gap: 16px;
}
.contact-form input, .contact-form textarea{
  width:100%; padding: 15px 18px; border-radius: 10px;
  background: var(--bg-card); border:1px solid var(--line); color: var(--fg);
  font-family: var(--font-body); font-size:.95rem; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus{ outline:none; border-color: var(--red); }
.contact-form .btn{ align-self:center; margin-top:6px; }
.form-note{ font-size:.85rem; margin-top: 8px; }
.form-note a{ color: var(--red); font-weight:600; }

/* ===================== FOOTER ===================== */
.site-footer{ padding-top: 70px; }
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.footer-nav{ display:flex; gap: 26px; flex-wrap:wrap; }
.footer-nav a, .footer-socials a{ font-size:.9rem; opacity:.75; }
.footer-nav a:hover, .footer-socials a:hover{ opacity:1; color: var(--red); }
.footer-socials{ display:flex; gap: 24px; }
.footer-bottom{ padding: 24px; text-align:center; }
.footer-bottom p{ font-size:.8rem; opacity:.55; margin:0; }

/* ===================== SCROLL REVEAL ===================== */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .roles-grid{ grid-template-columns: repeat(2, 1fr); }
  .process-grid{ grid-template-columns: repeat(2, 1fr); }
  .process-step{ border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 8px; }
  .process-step:nth-child(2n){ border-right:none; }
  .leader-card, .leader-card.reverse{ grid-template-columns: 1fr; }
  .leader-card.reverse .leader-photo{ order:0; }
  .leader-photo img{ max-width: 260px; }
}

@media (max-width: 760px){
  .main-nav{
    position:fixed; top:78px; left:0; right:0; bottom:0;
    background: var(--bg); flex-direction:column; align-items:center; justify-content:center;
    gap: 34px; transform: translateY(-110%); transition: transform .3s ease; z-index: 400;
  }
  .main-nav.is-open{ transform: translateY(0); }
  .main-nav a{ font-size:1.4rem; }
  .nav-toggle{ display:flex; }
  .nav-cta{ display:none; }
  section{ padding: 80px 0; }
  .services-grid{ grid-template-columns: 1fr; }
  .work-grid > .work-card{ flex-basis: 82vw; }
  .work-controls{ margin-top:0; }
  .stats-grid{ grid-template-columns: 1fr; }
  .roles-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .process-grid{ grid-template-columns: 1fr; }
  .process-step{ border-right:none; border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 8px; }
  .marquee-track span{ font-size: .85rem; }
}

.nav-toggle.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity:0; }
.nav-toggle.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
