/* ==========================================================================
   Tone Pit Media — Design tokens
   Palette derived from the Tone Pit Media logo (navy / coral / teal). Display type is a tall condensed
   face (film-credit feel); body is a clean geometric sans; small labels
   use a monospace face for the "role / client / category" metadata
   pattern seen in production-house portfolios.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800&family=Manrope:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  /* Colors — from Tone Pit Media logo */
  --ink: #252a45;
  --navy-900: #1d2239;
  --navy-800: #2b3153;
  --blue-700: #363f6b;
  --blue-500: #4a5590;
  --cyan-500: #38d5b0;
  --cyan-400: #2bbd9a;
  --sky-300: #b5efe0;
  --moss-300: #ffd9d4;
  --sand-200: #e6e8f0;
  --amber-500: #fa7268;
  --cream-50: #fafbfd;
  --cream-100: #f2f4f8;
  --white: #ffffff;
  --line: rgba(37, 42, 69, 0.12);

  /* Type */
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius: 6px;
  --max-width: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
}

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 var(--space-2); max-width: 62ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-400);
  display: inline-block;
  margin-bottom: var(--space-1);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   River line — signature divider element
   ========================================================================== */

.river-line {
  display: block;
  width: 100%;
  height: 34px;
  margin: 0;
}
.river-line svg { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  gap: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}
.brand img { height: 52px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 700;
}

.main-nav { display: flex; align-items: center; gap: var(--space-3); }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--cyan-500);
}

.nav-cta {
  background: var(--cta-color, var(--amber-500));
  color: var(--cta-text, var(--ink)) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  border-bottom: none !important;
}
.nav-cta:hover { filter: brightness(1.12); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2) var(--space-3) var(--space-3);
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: var(--space-2); }
  .nav-cta { text-align: center; margin-top: var(--space-1); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: var(--space-6) 0 var(--space-5);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(56,213,176,0.22), transparent 60%),
    radial-gradient(50% 50% at 85% 90%, rgba(250,114,104,0.16), transparent 60%);
  pointer-events: none;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.38;
}
.hero-media iframe {
  position: absolute; top: 50%; left: 50%;
  width: 177.77vh; min-width: 100%; height: 56.25vw; min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0; opacity: 0.38;
}
.hero .container { position: relative; z-index: 1; }
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--sky-300);
  max-width: 46ch;
  margin-top: var(--space-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cta-color, var(--amber-500)); color: var(--cta-text, var(--ink)); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { border-color: var(--cyan-500); color: var(--cyan-500); }
.btn-dark { border-color: var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--white); }

/* ==========================================================================
   Sections (generic)
   ========================================================================== */

section.block { padding: var(--space-5) 0; }
.block-header { max-width: 60ch; margin-bottom: var(--space-4); }
.section-alt { background: var(--cream-100); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-dark .eyebrow { color: var(--cyan-500); }

/* ==========================================================================
   Category tiles (home)
   ========================================================================== */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tile-grid { grid-template-columns: 1fr; } }

.tile {
  display: block;
  text-decoration: none;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-3);
  min-height: 160px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--cyan-500); }
.tile .tile-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--sky-300);
  letter-spacing: 0.1em;
}
.tile h3 { margin-top: var(--space-2); margin-bottom: 0; text-transform: uppercase; }

/* ==========================================================================
   Portfolio / work grid
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-4);
}
.filter-bar a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-bar a:hover { border-color: var(--cyan-400); }
.filter-bar a.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  text-decoration: none;
  color: var(--ink);
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(37,42,69,0.35); }
.work-card .thumb {
  aspect-ratio: 16/10;
  background: var(--navy-800) center/cover no-repeat;
  position: relative;
}
.work-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(37,42,69,0.55));
}
.work-card .thumb-empty {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.work-card .card-body { padding: var(--space-2) var(--space-3) var(--space-3); }
.work-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  display: flex; flex-wrap: wrap; gap: 0.5em 1em;
  margin-bottom: 0.5rem;
}
.work-card h3 { margin: 0 0 0.35rem; text-transform: none; font-size: 1.25rem; }
.work-card .summary { font-size: 0.92rem; color: #555; margin: 0; }

/* Project detail */
.project-hero-media {
  width: 100%;
  aspect-ratio: 16/8;
  background: var(--navy-800) center/cover no-repeat;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.project-hero-media iframe, .project-hero-media video { width: 100%; height: 100%; border: 0; }
.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-2);
  margin: var(--space-3) 0;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project-meta-grid dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 0.2rem;
}
.project-meta-grid dd { margin: 0; font-weight: 600; }

/* ==========================================================================
   Cards: services, testimonials, clients
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (max-width: 700px) { .card-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--cyan-400); transform: translateY(-3px); }
.service-card .num { font-family: var(--font-mono); color: var(--cyan-400); font-size: 0.75rem; }

.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber-500);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.testimonial p.quote { font-size: 1.05rem; font-style: italic; }
.testimonial .who { font-family: var(--font-mono); font-size: 0.75rem; color: var(--blue-500); text-transform: uppercase; letter-spacing: 0.05em; }

.client-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  opacity: 0.9;
}
.client-strip img { max-height: 42px; width: auto; filter: grayscale(1); opacity: 0.7; transition: opacity 0.2s ease, filter 0.2s ease; }
.client-strip a:hover img { opacity: 1; filter: grayscale(0); }
.client-strip .client-name-only {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--blue-700);
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--navy-800);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid { display: grid; gap: var(--space-2); max-width: 640px; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--cyan-400); }
.form-row textarea { resize: vertical; min-height: 140px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 0.85rem; color: #666; }
.form-error {
  background: #fdeeee; border: 1px solid #e6b0b0; color: #8a2020;
  padding: 0.8rem 1rem; border-radius: var(--radius); margin-bottom: var(--space-2);
  font-size: 0.9rem;
}
.form-success {
  background: #eef8ee; border: 1px solid #b3d9b3; color: #1f5c1f;
  padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: var(--space-2);
}

.contact-details { display: grid; gap: 0.6rem; margin-top: var(--space-3); }
.contact-details .row { display: flex; gap: 0.6rem; font-size: 0.95rem; }
.contact-details .label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--blue-500); min-width: 70px; }

/* ==========================================================================
   Live stream banner
   ========================================================================== */

.live-banner {
  background: var(--amber-500);
  color: var(--ink);
  padding: 0.85rem 0;
}
.live-banner .container { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.live-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #d3241a;
  animation: pulse 1.4s infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.35 } }
.live-banner strong { font-family: var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.85rem; }
.live-embed { aspect-ratio: 16/9; width: 100%; border-radius: var(--radius); overflow: hidden; margin: var(--space-3) 0; }
.live-embed iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); } }
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}
.footer-grid a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-grid a:hover { color: var(--cyan-500); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.social-row { display: flex; gap: 0.8rem; margin-top: var(--space-2); }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
}
.social-row a:hover { border-color: var(--cyan-500); color: var(--cyan-500); }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ==========================================================================
   Empty states (admin will fill these in)
   ========================================================================== */

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
  color: #777;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.stack { display: grid; gap: var(--space-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Beauty pass — video grid, photo gallery, lightbox, motion & polish
   ========================================================================== */

/* --- Videos on Work page --- */
.section-sub { margin: var(--space-6) 0 var(--space-3); }
.section-sub h2 { margin-bottom: 0; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (max-width: 800px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -20px rgba(37,42,69,0.4); }
.video-frame { aspect-ratio: 16/9; background: var(--ink); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-frame-empty {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-family: var(--font-mono); font-size: 0.78rem;
  padding: var(--space-3); text-align: center; height: 100%;
}
.video-card .card-body { padding: var(--space-2) var(--space-3); }
.video-card h3 { margin: 0.2rem 0 0; text-transform: none; font-size: 1.15rem; }

/* --- Photo gallery on Work page --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 980px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

.photo-tile {
  border: none; padding: 0; margin: 0; background: var(--navy-800);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 1/1; display: block; width: 100%;
}
.photo-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.photo-tile:hover img { transform: scale(1.06); filter: saturate(1.1); }

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(37, 42, 69, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-3);
  backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); max-height: 88vh; text-align: center; }
.lightbox img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  margin: 0 auto;
}
.lightbox figcaption {
  color: var(--sky-300); font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 0.05em; margin-top: var(--space-2);
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: 1px solid rgba(255,255,255,0.35); color: var(--white);
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { border-color: var(--amber-500); color: var(--amber-500); transform: rotate(90deg); }

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- Flowing river line (continuous solid wave, slides seamlessly) --- */
.river-line { overflow: hidden; }
.river-line .river-path {
  animation: riverflow 14s linear infinite;
}
@keyframes riverflow {
  to { transform: translateX(-800px); }
}
@media (prefers-reduced-motion: reduce) {
  .river-line .river-path { animation: none; }
}

/* --- Hero polish: drifting light + underline accent --- */
.hero::before {
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { background-position: 0% 0%, 100% 100%; }
  to   { background-position: 8% 12%, 92% 88%; }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

.hero h1 {
  background: linear-gradient(100deg, var(--white) 55%, var(--sky-300) 78%, var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--white); /* fallback */
}

/* --- Section header accent bar --- */
.block-header h2::after,
.section-sub h2::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-500), var(--amber-500));
}
.text-center .block-header h2::after { margin-left: auto; margin-right: auto; }

/* --- Card & tile polish --- */
.work-card { position: relative; }
.work-card .thumb { transition: transform 0.45s ease; }
.work-card:hover .thumb { transform: scale(1.045); }
.work-card, .service-card, .tile, .video-card { will-change: transform; }

.tile {
  background: linear-gradient(150deg, var(--navy-800), var(--ink) 70%);
}
.tile::after {
  content: "\2192";
  position: absolute; right: 1.4rem; bottom: 1.2rem;
  color: var(--cyan-500); font-size: 1.2rem;
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tile:hover::after { opacity: 1; transform: none; }

/* --- Testimonial polish --- */
.testimonial { position: relative; padding-top: var(--space-4); }
.testimonial::before {
  content: "\201C";
  position: absolute; top: 0.4rem; left: 1.2rem;
  font-family: var(--font-display);
  font-size: 4rem; line-height: 1;
  color: var(--amber-500);
  opacity: 0.85;
}

/* --- Buttons: subtle depth --- */
.btn-primary { box-shadow: 0 8px 20px -10px rgba(37,42,69,0.45); }
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(37,42,69,0.55); }

/* --- Footer refinement --- */
.site-footer { border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue-500), var(--cyan-500), var(--moss-300), var(--amber-500)) 1; }

/* --- Filter pills refinement --- */
.filter-bar a { background: var(--white); }
.filter-bar a.active {
  background: linear-gradient(120deg, var(--navy-800), var(--ink));
  box-shadow: 0 6px 16px -8px rgba(37,42,69,0.5);
}

/* --- Homepage photo strip --- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
@media (max-width: 800px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } }
.photo-strip-item {
  display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--navy-800);
}
.photo-strip-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: saturate(0.92);
}
.photo-strip-item:hover img { transform: scale(1.07); filter: saturate(1.15); }
