/* ===================== Tokens ===================== */
:root {
  --red: #e31d2c;
  --red-dark: #a91320;
  --black: #0a0a0c;
  --near-black: #131316;
  --charcoal: #1c1c20;
  --white: #ffffff;
  --off-white: #f4f3f2;
  --gray: #9a9aa2;
  --gray-light: #c9c9d0;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --max-width: 1200px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1.6em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(227, 29, 44, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(227, 29, 44, 0.75);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 0.9em 2em; font-size: 1.05rem; }

/* ===================== Nav ===================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.1rem 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-nav.scrolled {
  background: rgba(10,10,12,0.88);
  backdrop-filter: blur(10px);
  padding: 0.7rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 32px; height: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--white);
}
.brand-word em { color: var(--red); font-style: normal; }

.nav-links {
  display: flex;
  gap: 1.75rem;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-light);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.12) translate(-1.5%, -1.5%); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.65) 45%, rgba(10,10,12,0.95) 100%);
}
.hero-sweep {
  position: absolute; inset: -20%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(227,29,44,0.18) 40deg, transparent 90deg, transparent 220deg, rgba(255,255,255,0.08) 260deg, transparent 310deg);
  animation: sweep 16s linear infinite;
  mix-blend-mode: screen;
}
@keyframes sweep {
  to { transform: rotate(360deg); }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 1.5rem;
}
.hero-mark { width: 140px; height: auto; margin: 0 auto 1.25rem; filter: drop-shadow(0 6px 20px rgba(227,29,44,0.5)); }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--white);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line:last-child { color: var(--red); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray-light);
  max-width: 560px;
  margin: 1.5rem auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 999px;
}
.scroll-cue span {
  display: block;
  width: 4px; height: 8px;
  background: var(--red);
  border-radius: 999px;
  margin: 7px auto;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ===================== Trust strip ===================== */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 1.5rem;
  background: var(--near-black);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  color: var(--gray-light);
}
.trust-item span { color: var(--red); margin-right: 0.4em; }

/* ===================== Sections ===================== */
.section { padding: var(--space-6) 1.5rem; }
.section-dark { background: var(--near-black); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.eyebrow {
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}
.section-lede {
  color: var(--gray-light);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: var(--space-4);
}

/* ===================== Services ===================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227,29,44,0.5);
  box-shadow: 0 16px 40px -16px rgba(227,29,44,0.4);
}
.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.15) rotate(-6deg); }
.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.service-card p { color: var(--gray-light); margin: 0; font-size: 0.98rem; }

/* ===================== Gallery ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.85rem;
  margin-bottom: var(--space-5);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--charcoal);
}
.gallery-item:nth-child(4n+1) { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.65) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

.video-feature h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.video-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
}
.video-wrap video { width: 100%; display: block; max-height: 70vh; }

/* ===================== Testimonials ===================== */
.testimonial-carousel { position: relative; }
.testimonial-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--charcoal);
}
.testimonial-card {
  flex: 0 0 min(420px, 85vw);
  scroll-snap-align: start;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 2rem;
  margin: 0;
}
.testimonial-featured { border-color: rgba(227,29,44,0.4); }
.testimonial-card p {
  color: var(--gray-light);
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
}
.testimonial-card footer {
  font-family: var(--font-display);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
}
.stars { color: var(--red); margin-right: 0.5em; }
.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  padding: 0;
}
.carousel-dots button.active { background: var(--red); transform: scale(1.3); }

/* ===================== About ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}
.about-copy p { color: var(--gray-light); }
.about-copy a { color: var(--red); text-decoration: none; font-weight: 600; }
.about-copy a:hover { text-decoration: underline; }
.about-social {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.about-social a { text-decoration: none; color: var(--white); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.about-photo img {
  border-radius: 16px;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* ===================== CTA ===================== */
.cta-section {
  position: relative;
  background: linear-gradient(160deg, var(--red-dark), var(--black) 70%), url('../assets/brand/mesh-bg.jpg');
  background-blend-mode: overlay;
  background-size: cover;
  text-align: center;
}
.cta-inner { max-width: 640px; }
.cta-mark { width: 70px; height: auto; margin: 0 auto 1.25rem; }
.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-section p { color: var(--gray-light); }
.cta-area { font-size: 0.9rem; margin-top: 1.5rem; }

/* ===================== Footer ===================== */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--white);
}
.footer-brand em { color: var(--red); font-style: normal; }
.footer-brand img { width: 40px; height: auto; }
.footer-links, .footer-social {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-links a, .footer-social a { text-decoration: none; color: var(--gray-light); }
.footer-links a:hover, .footer-social a:hover { color: var(--white); }
.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--gray);
  font-size: 0.82rem;
  margin: 1.5rem 0 0;
}

/* ===================== Lightbox ===================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5,5,7,0.96);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(90vw, 1100px); max-height: 78vh; border-radius: 8px; }
.lightbox-caption { color: var(--gray-light); margin-top: 1rem; font-size: 0.95rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 999px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--red); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ===================== Reveal animations ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.26s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.33s; }
.reveal-group .reveal:nth-child(6) { transition-delay: 0.4s; }

.hero-content .reveal { transition-delay: var(--d, 0s); }
.hero-mark.reveal { --d: 0.1s; }
.hero-title .line:nth-child(1) { --d: 0.25s; }
.hero-title .line:nth-child(2) { --d: 0.4s; }
.hero-sub.reveal { --d: 0.55s; }
.hero-actions.reveal { --d: 0.7s; }
.hero-content .reveal { transition-delay: var(--d, 0s) !important; }

@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-sweep, .scroll-cue span { animation: none !important; }
  .reveal { transition-duration: 0.01s !important; }
}

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item:nth-child(4n+1) { grid-row: span 1; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--near-black);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -10px 0 30px rgba(0,0,0,0.4);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .trust-strip { gap: 1.25rem; font-size: 0.85rem; }
  .section { padding: var(--space-5) 1.25rem; }
}
