/* ============================================================
   THE STONECUTTER GROUP — Main Stylesheet
   Theme: Dark — CSS custom properties on [data-theme="dark"]
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root,
[data-theme="dark"] {
  --bg-primary:    #090909;
  --bg-secondary:  #111111;
  --bg-tertiary:   #1a1815;
  --bg-inverse:    #f7f5f0;
  --text-primary:  #f0ede6;
  --text-secondary:#9a9080;
  --text-muted:    #5a5040;
  --text-on-inverse: #1a1710;
  --text-on-inverse-secondary: rgba(26,23,16,0.65);
  --accent:        #c8a84b;
  --accent-hover:  #e8c860;
  --accent-dark:   #8b6f1e;
  --border:        #2a2520;
  --border-light:  #1a1612;
  --nav-bg:        rgba(9, 9, 9, 0.94);
  --hero-overlay:  rgba(0, 0, 0, 0.58);
  --pillar-alt-bg: #1a1510;
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.6);
  --shadow-md:     0 8px 24px rgba(0,0,0,0.4);
}


/* ── TYPOGRAPHY ───────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.display-font {
  font-family: 'Cinzel', 'Times New Roman', serif;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 0.85rem; letter-spacing: 0.12em; }

p { color: var(--text-secondary); line-height: 1.75; }
p + p { margin-top: 1em; }

/* ── LAYOUT UTILITIES ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

section { position: relative; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 { color: var(--text-primary); margin-bottom: 0.75rem; }
.section-header p { max-width: 580px; margin: 0 auto; }

/* Hard-edged rule line (Steve's "hard structures") */
.section-rule {
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 1.25rem;
}

.section-rule.left {
  margin: 0 0 1.25rem;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #090909;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Ghost button on the inverse (cream) band — needs dark border */
.cta-band .btn-ghost {
  color: var(--text-on-inverse);
  border-color: rgba(26,23,16,0.35);
}
.cta-band .btn-ghost:hover {
  border-color: var(--text-on-inverse);
  color: var(--text-on-inverse);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #090909;
}

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.75rem; }
.btn-large { padding: 1.1rem 2.5rem; font-size: 0.95rem; }

/* ── THEME TOGGLE ─────────────────────────────────────────── */
#theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: #090909;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}
#theme-toggle:hover { background: var(--accent-hover); }
#theme-toggle .toggle-icon { font-size: 1rem; }

/* ── NAVIGATION ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: 72px;
}

/* ── TEXT LOGO ────────────────────────────────────────────── */
.logo-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--text-primary);
  padding: 0.35rem 0.75rem 0.3rem;
  gap: 0.05rem;
  line-height: 1;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-size: 0.82rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.logo-text span { display: block; }
.nav-logo:hover .logo-text {
  color: var(--accent);
  border-color: var(--accent);
}

/* Footer version — slightly larger */
.footer-logo-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--text-primary);
  padding: 0.4rem 0.9rem 0.35rem;
  gap: 0.05rem;
  line-height: 1;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.footer-logo-text span { display: block; }


.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-links .nav-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover {
  background: var(--accent);
  color: #090909;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* ── HERO VIDEO BACKGROUND ────────────────────────────────── */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
}
.hero-video-bg.playing { opacity: 1; }

/* Scale the video/iframe to always fill the hero, letterbox-free */
.hero-video-bg video,
.hero-video-bg iframe,
.hero-video-bg #yt-hero-player {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 16:9 covering math */
  width: 100vw;
  height: 56.25vw;   /* 16:9 of viewport width */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 of viewport height */
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Hide slides when video is active */
.hero-video-active .hero-slides { opacity: 0; }

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 1s ease;
  display: none; /* video plays on desktop; slides shown on mobile via media query */
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  transform: scale(1.03);
  animation: none;
}

.hero-slide.active {
  opacity: 1;
  animation: heroKen 8s ease-in-out forwards;
}

@keyframes heroKen {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  max-width: 1280px;
  margin: 0 auto;
}

.hero-rule {
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-headline {
  color: #ffffff;
  max-width: 700px;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-subhead {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Slide nav dots */
.hero-nav {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.25rem, 6vw, 5rem);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 0; /* hard edge */
  background: rgba(255,255,255,0.35);
  transition: all 0.3s ease;
}
.hero-dot.active {
  background: var(--accent);
  width: 24px;
}

/* ── THREE PILLARS ────────────────────────────────────────── */
.pillars {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.pillar {
  padding: clamp(2rem, 4vw, 3rem);
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.3s ease;
}

.pillar:last-child { border-right: none; }

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.pillar:hover::before,
.pillar-featured::before {
  background: var(--accent);
}

.pillar-featured {
  background: var(--pillar-alt-bg);
}

.pillar-number {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.pillar-icon svg { width: 100%; height: 100%; }

.pillar h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.pillar-featured h3 { color: #f0ede6; }

.pillar p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.pillar-featured p { color: rgba(240,237,230,0.7); }

.pillar-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: letter-spacing 0.2s ease;
}
.pillar-link:hover { letter-spacing: 0.2em; }

/* ── FEATURED WORK ────────────────────────────────────────── */
.featured-work {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-primary);
}

.work-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.tab {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
}

.tab:hover { color: var(--text-primary); }

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  cursor: pointer;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover img { transform: scale(1.05); }

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.work-card:hover .work-card-overlay { opacity: 1; }

.work-card-info h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.work-card-info span {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
}

.work-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ── ABOUT STRIP ──────────────────────────────────────────── */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-strip-image {
  position: relative;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.about-strip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}
.about-strip:hover .about-strip-image img { filter: grayscale(0%); }

.about-strip-content {
  background: var(--bg-secondary);
  padding: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.about-strip-content h2 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.about-strip-content p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.about-strip-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── DISTRIBUTION NETWORK ─────────────────────────────────── */
.distribution {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.platform-item {
  background: var(--bg-secondary);
  padding: 1.5rem 1rem;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.platform-item:hover {
  background: var(--accent);
  color: #090909;
}

/* ── CAREER HIGHLIGHTS GRID ───────────────────────────────── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.highlight-card {
  background: var(--bg-secondary);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.2s ease;
}
.highlight-card:hover { background: var(--bg-tertiary); }

/* Big number stat */
.highlight-num {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.highlight-sup {
  font-size: 0.5em;
  vertical-align: super;
  line-height: 0;
}

/* Text / credential card */
.highlight-card-text { justify-content: center; }
.highlight-icon {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0;
  margin-bottom: 0.25rem;
}

.highlight-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hero-nav { display: none; } /* no dot nav on mobile */
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .highlights-grid { grid-template-columns: 1fr 1fr; }
}

/* ── CURRENT WORK CARDS (Steve Karel page) ────────────────── */
.cwc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 520px;
}

.cwc-card {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  border-right: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.cwc-card:last-child { border-right: none; }

/* Subtle zoom on hover */
.cwc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.cwc-card:hover::before { transform: scale(1.04); }

.cwc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.18) 100%
  );
  z-index: 1;
}

.cwc-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cwc-content .eyebrow {
  color: var(--accent);
  margin-bottom: 0;
}

.cwc-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.cwc-content p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin: 0;
}

.cwc-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s;
}
.cwc-link:hover { color: #fff; }

@media (max-width: 768px) {
  .cwc-grid { grid-template-columns: 1fr; }
  .cwc-card { min-height: 380px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* ── YOUTUBE MODAL ────────────────────────────────────────── */
.yt-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.yt-modal.open { display: flex; }

.yt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
}

.yt-modal-container {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
}

.yt-modal-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.yt-modal-close:hover { opacity: 1; }

.yt-modal-frame {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}
.yt-modal-frame iframe,
.yt-modal-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

/* Play button on video cards */
.work-card.has-video { cursor: pointer; }
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.work-card.has-video:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.work-card.has-video:hover .work-card-overlay { opacity: 1; }

/* ── CTA BAND ─────────────────────────────────────────────── */
.cta-band {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--bg-inverse);
  text-align: center;
}

.cta-band-rule {
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 2rem;
}

.cta-band h2 {
  color: var(--text-on-inverse);
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--text-on-inverse-secondary);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.footer-linkedin {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: letter-spacing 0.2s;
}
.footer-linkedin:hover { letter-spacing: 0.18em; }

.footer-nav h4 {
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }

.footer-contact h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-contact p {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ── ABOUT PAGE ───────────────────────────────────────────── */
.page-hero {
  height: 100svh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-tertiary);
}

/* Video background inside inner-page heroes */
.page-hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
/* Transparent shield blocks YouTube from detecting hover → no control UI */
.page-hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto; /* override parent's none so cursor never reaches the iframe */
}
.page-hero-video-wrap video,
.page-hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* page-hero-video-wrap visible on all sizes — native video handles mobile autoplay */

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
}
/* Hide static bg whenever a video wrap is present (all screen sizes) */
.page-hero:has(.page-hero-video-wrap) .page-hero-bg { opacity: 0; }

/* News empty state */
.news-empty-state {
  grid-column: 1 / -1;
  padding: 4rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}
.news-empty-state code {
  font-size: 0.8rem;
  background: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5rem);
  padding-bottom: clamp(10rem, 16vw, 14rem);
}

.page-hero-content h1 {
  color: #fff;
  max-width: 700px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 0.5rem;
}
.page-hero-content .eyebrow {
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.page-hero-rule {
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}


/* ── MASTHEAD FILM CREDIT ─────────────────────────────────── */
.page-hero-credit {
  position: absolute;
  bottom: 1.25rem;
  right: clamp(1.25rem, 4vw, 3rem);
  z-index: 3;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-hero-credit::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

/* Content section */
.content-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--bg-primary);
}

.content-section.alt { background: var(--bg-secondary); }

.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }

.content-text h2 { color: var(--text-primary); margin-bottom: 1.25rem; }
.content-text p { margin-bottom: 1rem; }
.content-text .btn { margin-top: 1rem; }

.content-image {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.content-image:hover img { transform: scale(1.03); }

/* ── NEWS PAGE ────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.news-card {
  background: var(--bg-secondary);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s ease;
}

.news-card:hover { background: var(--bg-tertiary); }

.news-card-category {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.news-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.4;
}

.news-card p { font-size: 0.88rem; }

.news-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
}

.news-card-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── CONTACT PAGE ─────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  min-height: 500px;
}

.contact-info {
  background: var(--bg-tertiary);
  padding: clamp(3rem, 6vw, 5rem);
  border-right: 1px solid var(--border);
}

.contact-info h2 { color: var(--text-primary); margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.contact-detail-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-detail-value { font-size: 0.95rem; color: var(--text-primary); }

.contact-form {
  background: var(--bg-secondary);
  padding: clamp(3rem, 6vw, 5rem);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.2s ease;
  outline: none;
  border-radius: 0; /* hard edge */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group select option { background: var(--bg-secondary); }

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── MOBILE NAV ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100dvh - 72px);
    z-index: 9990;
    background: rgba(9, 9, 9, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem clamp(1.25rem, 4vw, 3rem);
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    font-size: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
  }

  .nav-links a::after { display: none; }
  .nav-links .nav-cta {
    margin: 1.5rem 0 0;
    display: inline-flex;
    border: 1px solid var(--accent);
  }
}

@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--border); }
  .pillar:last-child { border-bottom: none; }
  .pillar::before { display: none; }

  .about-strip { grid-template-columns: 1fr; }
  .about-strip-image { aspect-ratio: 16/9; min-height: 320px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: auto; }

  .work-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; }

  .content-block { grid-template-columns: 1fr; }
  .content-block.reverse { direction: ltr; }

  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  /* clients grid on work.html has 8 items — override there if needed */
}

@media (max-width: 480px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card { aspect-ratio: 16/9; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── PRINT / ACCESSIBILITY ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: #090909;
}
