/* ==========================================================================
   Eli Pruett — Personal Site
   Brand style guide: black / yellow / white primaries, coral + purple
   secondaries, Lilita One display, Libre Franklin body, Montserrat UI.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Libre+Franklin:wght@400;900&family=Montserrat:wght@500;600;700&display=swap');

:root {
  /* ---- Primary palette ---- */
  --yellow: #FFC700;
  --black: #000000;
  --white: #FFFFFF;

  /* ---- Secondary palette ---- */
  --coral: #EA4F55;
  --purple: #7D70F7;

  /* ---- Neutral UI ---- */
  --gray-800: #333333;
  --gray-600: #888888;
  --gray-500: #999999;
  --gray-400: #AAAAAA;
  --gray-300: #E0E0E0;
  --gray-200: #F0F0F0;
  --gray-100: #F8F8F8;

  /* ---- Opacity variants (on dark / colored surfaces) ---- */
  --white-85: rgba(255, 255, 255, 0.85);
  --white-65: rgba(255, 255, 255, 0.65);
  --white-60: rgba(255, 255, 255, 0.60);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-35: rgba(255, 255, 255, 0.35);
  --black-70: rgba(0, 0, 0, 0.70);
  --black-50: rgba(0, 0, 0, 0.50);

  /* ---- Fonts ---- */
  --font-display: 'Lilita One', cursive;
  --font-heavy: 'Libre Franklin', sans-serif;   /* weight 900, uppercase */
  --font-body: 'Libre Franklin', sans-serif;
  --font-ui: 'Montserrat', sans-serif;

  /* ---- Layout tokens ---- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --space-header: 48px;
  --space-section: 40px;
  --space-card: 20px;
  --space-logo-block: 24px 28px;

  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

section {
  padding: 96px 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: var(--space-section);
}

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

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  background: var(--yellow);
  color: var(--black);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: #ffd633;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--black);
}

.btn-secondary {
  background: var(--black);
  color: var(--white);
}

.btn-secondary:hover {
  background: #1a1a1a;
  box-shadow: 4px 4px 0 var(--yellow);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.btn-coral:hover {
  background: #ef6a6f;
  box-shadow: 4px 4px 0 var(--black);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--black);
  color: var(--black);
  padding: 10px 22px;
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  box-shadow: none;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--yellow);
  color: var(--black);
  padding: 10px 22px;
}

.btn-ghost:hover {
  background: var(--yellow);
  box-shadow: none;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Nav — Primary Surface (black bg, yellow headline, white body/labels)
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.nav-logo {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--white);
}

.nav-logo span {
  color: var(--yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-65);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   Hero — Primary Surface
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 48px) 0 64px;
  position: relative;
  background: radial-gradient(
      ellipse 80% 55% at 70% 20%,
      rgba(255, 199, 0, 0.14),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 45% at 15% 85%,
      rgba(125, 112, 247, 0.12),
      transparent 60%
    ),
    var(--black);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.1;
  color: var(--yellow);
  margin-bottom: 24px;
}

.hero .tagline {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: var(--white-65);
  max-width: 640px;
  margin-bottom: 40px;
}

@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 64px;
  }

  .hero-photo img {
    width: 320px;
    height: 320px;
  }

  .hero-content {
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  background: var(--gray-100);
}

/* Center the whole About column (label, title, body) in the container so the
   narrative sits balanced rather than hugging the left edge. */
.about .section-label,
.about .section-title,
.about-body {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.about .section-label {
  display: block;
}

.about-body p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-800);
  margin-bottom: 18px;
}

.about-body p strong {
  color: var(--black);
}

.about-figure {
  max-width: 360px;
  margin: 8px auto 32px;
}

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.stat {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-card);
}

.stat .stat-number {
  display: block;
  font-family: var(--font-heavy);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  font-size: 1.45rem;
  color: var(--coral);
}

.stat:nth-child(even) .stat-number {
  color: var(--purple);
}

.stat .stat-desc {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--gray-600);
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-card);
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-logo-block);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 4px 0 var(--black);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--yellow);
  color: var(--black);
}

.service-card:nth-child(2) .service-icon {
  background: var(--purple);
  color: var(--white);
}

.service-card:nth-child(3) .service-icon {
  background: var(--coral);
  color: var(--white);
}

.service-card:nth-child(4) .service-icon {
  background: var(--black);
  color: var(--yellow);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-family: var(--font-heavy);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  font-size: 18px;
  color: var(--black);
  margin-bottom: 10px;
}

.service-card p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-800);
}

/* --------------------------------------------------------------------------
   Selected Work
   -------------------------------------------------------------------------- */

.work {
  background: var(--gray-100);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.project-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--black);
}

.project-card .card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.04);
}

/* Icon-card variant: for projects with no photography of Eli's own to show
   (e.g. video-only projects sourced from client/stock footage). */
.card-image--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: var(--white);
}

.card-image--icon svg {
  width: 25%;
  height: 25%;
  transition: transform 0.4s ease;
}

.project-card:hover .card-image--icon svg {
  transform: scale(1.08);
}

.project-card .card-body {
  padding: var(--space-logo-block);
}

.project-card h3 {
  font-family: var(--font-heavy);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  font-size: 20px;
  color: var(--black);
  margin-bottom: 8px;
}

.project-card p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-800);
  margin-bottom: 14px;
}

.card-link {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--coral);
  transition: color 0.2s ease;
}

.project-card:hover .card-link {
  color: var(--black);
}

/* --------------------------------------------------------------------------
   How I Work — CTA Surface (yellow bg, black headline/body/label)
   -------------------------------------------------------------------------- */

.how-i-work {
  background: var(--yellow);
}

.how-i-work .section-label {
  color: var(--black-50);
}

.how-i-work .usp {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--black-70);
  max-width: 860px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  background: var(--gray-100);
}

.contact .lede {
  font-family: var(--font-body);
  color: var(--gray-800);
  margin-bottom: 36px;
  max-width: 560px;
}

.contact-form {
  max-width: 640px;
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.contact-form label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.35);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* Success = CTA Surface (yellow bg, black body); Error = Alert Surface (coral bg, white body) */
.form-note {
  display: none;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 16px;
}

.form-note.visible {
  display: block;
  background: var(--yellow);
  color: var(--black-70);
}

.form-note.visible.error {
  background: var(--coral);
  color: var(--white-85);
}

.calendly-line {
  font-family: var(--font-body);
  color: var(--gray-800);
  margin-top: 28px;
}

.calendly-line a {
  color: var(--coral);
  font-weight: 500;
}

.calendly-line a:hover {
  color: var(--black);
}

/* --------------------------------------------------------------------------
   Footer — Primary Surface
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--black);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}

.footer-inner .copyright {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--white-65);
}

.social-links {
  display: flex;
  gap: 18px;
  list-style: none;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--white-35);
  color: var(--white-65);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.footer-small {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--white-40);
}

/* --------------------------------------------------------------------------
   Project page
   -------------------------------------------------------------------------- */

.project-hero {
  padding: calc(var(--nav-height) + 72px) 0 72px;
  background: radial-gradient(
      ellipse 75% 60% at 75% 10%,
      rgba(255, 199, 0, 0.14),
      transparent 60%
    ),
    var(--black);
}

.back-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-65);
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--yellow);
}

.project-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.1;
  color: var(--yellow);
  margin-bottom: 10px;
}

.project-dates {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 26px;
}

.project-overview {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: var(--white-65);
  max-width: 760px;
  margin-bottom: 44px;
}

.project-overview a {
  color: var(--yellow);
}

.project-overview a:hover {
  color: var(--white);
  text-decoration: underline;
}

.project-hero-image img {
  border-radius: var(--radius-md);
  border: 1px solid var(--white-35);
  width: 100%;
}

.services-provided {
  background: var(--gray-100);
}

/* Results — CTA Surface (yellow bg, black headline/label), reuses the
   .stats/.stat component from the homepage About section. */
.results {
  background: var(--yellow);
}

.results .section-label {
  color: var(--black-50);
}

.stat-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 28px var(--space-card);
  margin-bottom: 20px;
}

.stat-hero-number {
  font-family: var(--font-heavy);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  font-size: 2.25rem;
  color: var(--black);
}

.stat-hero-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-600);
  max-width: 560px;
}

@media (min-width: 640px) {
  .stat-hero {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 32px var(--space-logo-block);
  }

  .stat-hero-number {
    font-size: 3rem;
    white-space: nowrap;
  }
}

/* Flex (not fixed grid) so a project with only 1–2 service buckets lays out
   naturally instead of leaving empty grid columns. */
.buckets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-card);
  margin-top: 40px;
}

.bucket {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-logo-block);
  flex: 1 1 220px;
  max-width: 320px;
}

.bucket h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}

.bucket ul {
  list-style: none;
}

.bucket li {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-800);
  padding: 5px 0 5px 20px;
  position: relative;
}

.bucket li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}

/* Additional credits + inline notes */

.credits {
  margin-top: 36px;
  max-width: 720px;
}

.credits h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.credits ul {
  list-style: none;
}

.credits li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-800);
  padding: 4px 0;
}

.credits li strong {
  color: var(--black);
  font-weight: 600;
}

.credits a {
  color: var(--coral);
  font-weight: 600;
}

.credits a:hover {
  color: var(--black);
}

.section-note {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--gray-600);
  max-width: 720px;
  margin-top: 8px;
}

/* Media grid */

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-card);
  margin-top: 40px;
}

.media-item {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-300);
  aspect-ratio: 4 / 3;
  background: var(--gray-200);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-item:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--black);
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Video embeds */

.videos {
  background: var(--gray-100);
}

/* Mobile-first: single column, each video at its own natural aspect ratio.
   On desktop the grid becomes a flex row where every video shares one fixed
   HEIGHT and takes the width its aspect ratio implies — so mixed vertical /
   horizontal / square videos line up in clean rows without staggering, and
   verticals are shown full-frame rather than pillarboxed. Each .video-embed
   carries its own `aspect-ratio` inline (from the real Vimeo dimensions). */
.video-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9; /* fallback; overridden inline per video */
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-300);
  background: var(--black);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 720px) {
  .video-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .video-embed {
    width: auto;
    max-width: 100%;
    height: 300px;
  }
}

/* --------------------------------------------------------------------------
   Lightbox (project page media grids)
   -------------------------------------------------------------------------- */

body.lightbox-locked {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 90vw;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-caption {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-65);
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--white-35);
  border-radius: 50%;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}

/* --------------------------------------------------------------------------
   Fade-in reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive: tablet and up
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-logo {
    font-size: 20px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Responsive: mobile nav
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 0 16px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

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

  .nav-links a {
    display: block;
    padding: 14px 6%;
    font-size: 13px;
  }

  .nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
