/* ============================================================
   Ryan Dundas — Videographer Portfolio
   styles.css
   ============================================================ */

/* ---------- Color tokens & typography ---------- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #e8b84b;
  --accent-hover: #d4a43a;
  --accent-rgb: 232, 184, 75;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.6);
  --nav-bg: rgba(10, 10, 10, 0.92);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 200ms ease;
}

html.light {
  --bg-primary: #fafaf8;
  --bg-secondary: #f0f0ec;
  --bg-card: #ffffff;
  --text-primary: #0f0f0f;
  --text-secondary: #444444;
  --text-muted: #888888;
  --accent: #c9960e;
  --accent-hover: #b5830c;
  --accent-rgb: 201, 150, 14;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(250, 250, 248, 0.92);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Theme the root element (it carries the .light class). Body inherits from
     here instead of declaring its own var-based background/color, which avoids
     a Chromium invalidation quirk that left body stuck on the dark values. */
  background: var(--bg-primary);
  color: var(--text-primary);
}
:root { color-scheme: dark; }
html.light { color-scheme: light; }

/* During a theme switch, kill all transitions so every color/background that
   references a theme variable recomputes instantly instead of getting stuck
   (Chromium doesn't transition var() changes cleanly). Hovers keep their
   transitions the rest of the time. */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: transparent;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open { overflow: hidden; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-orientation: from-image;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

button { font-family: inherit; cursor: pointer; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.section {
  padding: 7.5rem 0;
}
@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }
}

.section-header {
  margin-bottom: 3.75rem;
  max-width: 760px;
}
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #000;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-block { display: block; width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  inset: auto 0 -4px 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.icon-sun { display: block; }
.icon-moon { display: none; }
html.light .icon-sun { display: none; }
html.light .icon-moon { display: block; }

.hamburger {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--text-primary);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}
body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 300ms ease;
}
body.nav-open .mobile-menu { transform: translateX(0); }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
}

/* ---------- Hero (full-bleed looping video) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
/* Self-hosted video covers the hero cleanly, no chrome */
.hero-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Legibility overlay over the video */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.25) 100%),
    linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.hero-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  max-width: 15ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.86);
  margin-bottom: 2rem;
  max-width: 620px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-cta .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.hero-cta .btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  animation: bounce 2.4s ease-in-out infinite;
  padding: 0.5rem;
  border-radius: 50%;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

@media (max-width: 768px) {
  .hero-content { padding: 2rem 1.5rem 5rem; }
  .scroll-indicator { display: none; }
}

/* ---------- Featured reel ---------- */
.reel { padding-bottom: 3rem; }
.reel-frame {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px var(--shadow);
}
.reel-frame lite-youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

/* ---------- Trust strip (TV credit + client logos) ---------- */
.trust {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.trust-tv {
  text-align: center;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.trust-eyebrow {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
}
.trust-networks {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  color: var(--text-primary);
}
.trust-networks strong { font-weight: 700; }
.trust-networks .dot { color: var(--accent); font-weight: 700; }

.logo-bar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.5rem;
}
.logo-bar li {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0.75;
  transition: opacity var(--transition), color var(--transition);
  white-space: nowrap;
}
.logo-bar li:hover { opacity: 1; color: var(--accent); }
@media (max-width: 600px) {
  .logo-bar { gap: 0.85rem 1.5rem; }
  .logo-bar li { font-size: 0.85rem; }
}

/* ---------- Featured work (alternating case-study rows) ---------- */
.featured-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}
.featured-item {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.featured-item:nth-child(even) .featured-video { order: 2; }
.featured-video {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 44px var(--shadow);
}
.featured-video lite-youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.featured-info .badge { margin-bottom: 0.9rem; }
.featured-info h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.75rem;
}
.featured-info > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}
.featured-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}
.featured-tags li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}
@media (max-width: 820px) {
  .featured-item { grid-template-columns: 1fr; gap: 1.5rem; }
  .featured-item:nth-child(even) .featured-video { order: 0; }
}

/* ---------- On-set photo grid ---------- */
.onset { background: var(--bg-secondary); }
.onset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.onset-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.onset-item.tall { aspect-ratio: 3 / 4; grid-row: span 1; }
.onset-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.onset-item:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .onset-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .onset-grid { grid-template-columns: 1fr; } }

/* ---------- Filter tabs ---------- */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.filter-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  position: relative;
  transition: color var(--transition);
}
.filter-tab:hover { color: var(--text-primary); }
.filter-tab.active { color: var(--accent); }
.filter-tab.active::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--accent);
}

/* ---------- Video grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 12px 32px var(--shadow);
  border-color: rgba(var(--accent-rgb), 0.3);
}
.video-card.hidden { display: none; }

.video-card lite-youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.video-meta {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.video-meta h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0;
}
.video-meta p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}
.badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* ---------- Services ---------- */
.services { background: var(--bg-secondary); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 5rem;
}
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-2px);
}
.service-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: var(--radius-md);
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.service-card .tagline {
  color: var(--accent);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.service-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.deliverables {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.deliverables li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
}
@media (max-width: 768px) { .process { grid-template-columns: 1fr; gap: 1.5rem; } }

.process-step h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin: 0.25rem 0 0.4rem;
}
.process-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 500;
}

.services-cta {
  text-align: center;
  padding: 2rem 0 4rem;
}
.services-cta p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq-heading {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q .faq-chev { transition: transform 300ms ease; flex-shrink: 0; color: var(--accent); }
.faq-q[aria-expanded="true"] .faq-chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}
.faq-a.open { max-height: 500px; }
.faq-a p {
  color: var(--text-secondary);
  padding: 0 0 1.25rem;
  margin: 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { order: 2; max-width: 400px; margin: 0 auto; }
  .about-text  { order: 1; }
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px var(--shadow);
}
.about-text h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}
.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.about-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact {
  background: #0a0a0a;
  color: #f0f0f0;
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(var(--accent-rgb), 0.06), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(var(--accent-rgb), 0.03), transparent 60%);
  pointer-events: none;
}
.contact-inner { position: relative; max-width: 720px; }
.contact .section-header h2 { color: #f0f0f0; }
.contact .section-header p { color: #a0a0a0; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: #f0f0f0;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), background-color var(--transition);
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}
.form-field select option { background: #1a1a1a; color: #f0f0f0; }

.contact-success {
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}
.contact-success h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
.contact-success p { color: #a0a0a0; margin: 0; }

.contact-details {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #a0a0a0;
  font-size: 0.95rem;
}
.contact-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-detail svg { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Mobile nav ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
}

/* ---------- Social ad cards (vertical YouTube Shorts) ---------- */
/* Shorts are 9:16. Fill the full card width so the vertical player has no dark
   flanking bars; the card just becomes a taller vertical card. */
.ad-card lite-youtube {
  aspect-ratio: 9 / 16;
  width: 100%;
  background: #000;
}

/* ---------- About gallery ---------- */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 4.5rem;
}
.about-gallery figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.about-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.about-gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 768px) { .about-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .about-gallery { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal (JS-gated, no-flash, hover-safe) ---------- */
/* Pre-hide only when JS is present and not yet revealed (.rvd = done, exempt
   so hover transforms work again). Without JS, nothing matches → all visible. */
.has-reveal .hero-content > *:not(.rvd),
.has-reveal .trust-tv:not(.rvd),
.has-reveal .logo-bar:not(.rvd),
.has-reveal .featured-item:not(.rvd),
.has-reveal .section-header:not(.rvd),
.has-reveal .reel-frame:not(.rvd),
.has-reveal .video-card:not(.rvd),
.has-reveal .onset-item:not(.rvd),
.has-reveal .service-card:not(.rvd),
.has-reveal .process-step:not(.rvd),
.has-reveal .about-photo:not(.rvd),
.has-reveal .about-text:not(.rvd),
.has-reveal .about-gallery figure:not(.rvd),
.has-reveal .contact-form:not(.rvd),
.has-reveal .contact-details:not(.rvd) {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.22, 0.72, 0.24, 1);
  will-change: opacity, transform;
}
/* Visible state — selectors mirror the pre-hide list so specificity matches
   and this (later in source) wins during the transition. */
.has-reveal .hero-content > *.is-visible,
.has-reveal .trust-tv.is-visible,
.has-reveal .logo-bar.is-visible,
.has-reveal .featured-item.is-visible,
.has-reveal .section-header.is-visible,
.has-reveal .reel-frame.is-visible,
.has-reveal .video-card.is-visible,
.has-reveal .onset-item.is-visible,
.has-reveal .service-card.is-visible,
.has-reveal .process-step.is-visible,
.has-reveal .about-photo.is-visible,
.has-reveal .about-text.is-visible,
.has-reveal .about-gallery figure.is-visible,
.has-reveal .contact-form.is-visible,
.has-reveal .contact-details.is-visible {
  opacity: 1;
  transform: none;
}

/* Fade video/photo cards back in when a filter re-shows them */
.video-card.refade {
  animation: cardFade 0.45s ease both;
}
@keyframes cardFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Never leave reveal elements stuck hidden */
  .has-reveal .trust-tv,
  .has-reveal .logo-bar,
  .has-reveal .featured-item,
  .has-reveal .section-header,
  .has-reveal .reel-frame,
  .has-reveal .video-card,
  .has-reveal .onset-item,
  .has-reveal .service-card,
  .has-reveal .process-step,
  .has-reveal .about-photo,
  .has-reveal .about-text,
  .has-reveal .about-gallery figure,
  .has-reveal .contact-form,
  .has-reveal .contact-details,
  .has-reveal .hero-content > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
