/* ============================================================
   KYLEWC MOTORSPORT CONSULTING — STYLESHEET
   Edit design tokens in :root to retheme the entire site
   ============================================================ */

/* ----------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
  --clr-bg:         #0a0a0a;
  --clr-bg-2:       #111111;
  --clr-bg-3:       #161616;
  --clr-bg-card:    #0f0f0f;
  --clr-accent:     #de0301;
  --clr-accent-dim: #9e0200;
  --clr-white:      #ffffff;
  --clr-off-white:  #e8e8e8;
  --clr-grey-1:     #aaaaaa;
  --clr-grey-2:     #666666;
  --clr-grey-3:     #333333;
  --clr-border:     rgba(255,255,255,0.07);

  --ff-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ff-body:    'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --fw-regular:    400;
  --fw-medium:     500;
  --fw-semibold:   600;
  --fw-bold:       700;
  --fw-extrabold:  800;
  --fw-black:      900;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  4rem;
  --fs-5xl:  5.5rem;
  --fs-6xl:  7rem;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   600ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height: 72px;
  --max-width:  1100px;
  --section-pad: clamp(var(--space-20), 8vw, var(--space-32));
}

/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-off-white);
  font-family: var(--ff-body);
  font-weight: var(--fw-regular);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul { list-style: none; }
a  { color: inherit; text-decoration: none; }

/* ----------------------------------------------------------
   3. UTILITY CLASSES
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}

.section-pad {
  padding-block: var(--section-pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-4xl));
  font-weight: var(--fw-black);
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--clr-white);
}

.section-title em {
  font-style: normal;
  color: var(--clr-accent);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-grey-1);
  max-width: 52ch;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 1.3rem;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--clr-accent);
  color: var(--clr-white);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary:hover {
  background: var(--clr-accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(222,3,1,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border: 1px solid var(--clr-grey-3);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  transform: translateY(-2px);
}

.btn-arrow svg {
  transition: transform var(--transition-base);
}

.btn-arrow:hover svg {
  transform: translateX(4px);
}

/* Reveal animation base */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ----------------------------------------------------------
   4. NAVIGATION
   ---------------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--clr-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(var(--space-6), 3vw, var(--space-12));
  width: 100%;
}

/* Logo area */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-logo img,
.nav-logo svg {
  height: 44px;
  width: auto;
}

/* Logo placeholder shown until real logo is supplied */
.nav-logo-placeholder {
  height: 44px;
  display: flex;
  align-items: center;
}

.nav-logo-placeholder svg {
  height: 44px;
  width: auto;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-grey-1);
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-white);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--clr-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-mobile.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile a {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  color: var(--clr-grey-2);
  transition: color var(--transition-fast);
  letter-spacing: 0.02em;
}

.nav-mobile a:hover { color: var(--clr-white); }

/* ----------------------------------------------------------
   5. HERO SECTION
   ---------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--clr-bg);
}

/* Speed-line texture background */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 80px,
      rgba(222,3,1,0.022) 80px,
      rgba(222,3,1,0.022) 81px
    );
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse at 70% 50%, rgba(222,3,1,0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* Large decorative number */
.hero-deco-number {
  position: absolute;
  right: -2%;
  bottom: -5%;
  font-family: var(--ff-display);
  font-size: clamp(200px, 28vw, 400px);
  font-weight: var(--fw-black);
  color: rgba(255,255,255,0.018);
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
  text-transform: uppercase;
}

/* Red vertical accent bar */
.hero-accent-bar {
  position: absolute;
  left: clamp(var(--space-6), 5vw, var(--space-16));
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  transition: height 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.hero-accent-bar.is-visible {
  height: 65%;
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 2;
  padding-bottom: clamp(var(--space-16), 8vw, var(--space-32));
  padding-top: calc(var(--nav-height) + var(--space-24));
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-6);
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--clr-accent);
}

.hero-headline {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-4xl), 9vw, var(--fs-6xl));
  font-weight: var(--fw-black);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: var(--space-8);
}

.hero-headline .word-accent {
  color: var(--clr-accent);
  display: block;
}

.hero-sub {
  font-size: clamp(var(--fs-base), 1.5vw, var(--fs-lg));
  color: var(--clr-grey-1);
  max-width: 48ch;
  line-height: 1.7;
  margin-bottom: var(--space-12);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 2;
  opacity: 0.5;
}

.hero-scroll span {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-grey-1);
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--clr-grey-3);
  border-radius: 11px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-mouse::before {
  content: '';
  width: 2px;
  height: 6px;
  background: var(--clr-accent);
  border-radius: 1px;
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  80%       { transform: translateY(8px); opacity: 0; }
}

/* Horizontal stat strip at bottom of hero */
.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--clr-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-stat {
  padding: var(--space-6) clamp(var(--space-6), 5vw, var(--space-16));
  border-right: 1px solid var(--clr-border);
}

.hero-stat:last-child { border-right: none; }

.hero-stat-value {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
  font-weight: var(--fw-black);
  color: var(--clr-white);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero-stat-value span { color: var(--clr-accent); }

.hero-stat-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-grey-2);
}

/* ----------------------------------------------------------
   6. ABOUT SECTION
   ---------------------------------------------------------- */
#about {
  background: var(--clr-bg-2);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
  opacity: 0.4;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-frame {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--clr-bg-3);
  overflow: hidden;
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform var(--transition-slow);
}

.about-image-frame:hover img {
  transform: scale(1.03);
}

/* Decorative corner accents */
.about-image-frame::before,
.about-image-frame::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
}

.about-image-frame::before {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--clr-accent);
  border-left: 3px solid var(--clr-accent);
}

.about-image-frame::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 3px solid var(--clr-accent);
  border-right: 3px solid var(--clr-accent);
}

/* Red offset block behind image */
.about-image-offset {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 60%;
  height: 40%;
  background: var(--clr-accent);
  z-index: -1;
  opacity: 0.15;
}

/* 3 images stacked vertically in landscape orientation */
.about-image-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-image-gallery .about-image-frame {
  aspect-ratio: 16/9;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about-lead {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-2xl));
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--clr-white);
  letter-spacing: -0.01em;
}

.about-body {
  color: var(--clr-grey-1);
  line-height: 1.75;
  font-size: var(--fs-base);
}

.about-divider {
  width: 48px;
  height: 3px;
  background: var(--clr-accent);
  margin: var(--space-2) 0;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(222,3,1,0.08);
  border: 1px solid rgba(222,3,1,0.2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

/* ----------------------------------------------------------
   7. SERVICES SECTION
   ---------------------------------------------------------- */
#services {
  background: var(--clr-bg);
  position: relative;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: start;
}

.services-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
}

.service-card {
  position: relative;
  background: var(--clr-bg-card);
  padding: clamp(var(--space-8), 3vw, var(--space-12));
  overflow: hidden;
  transition: background var(--transition-base);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(222,3,1,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover { background: var(--clr-bg-3); }
.service-card:hover::before { opacity: 1; }

/* Top accent line that slides in on hover */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--clr-accent);
  transition: width var(--transition-slow);
}

.service-card:hover::after { width: 100%; }

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  margin-bottom: var(--space-6);
  transition: transform var(--transition-spring);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-number {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-3xl), 4vw, 56px);
  font-weight: var(--fw-black);
  color: rgba(255,255,255,0.03);
  line-height: 1;
  letter-spacing: -0.03em;
  pointer-events: none;
  transition: color var(--transition-base);
}

.service-card:hover .service-number {
  color: rgba(222,3,1,0.07);
}

.service-title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-lg), 2vw, var(--fs-xl));
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  color: var(--clr-white);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
  line-height: 1.1;
}

.service-desc {
  font-size: var(--fs-sm);
  color: var(--clr-grey-1);
  line-height: 1.65;
}

/* ----------------------------------------------------------
   8. CREDENTIALS / SERIES BAR
   ---------------------------------------------------------- */
#credentials {
  background: var(--clr-bg-2);
  padding-block: clamp(var(--space-16), 6vw, var(--space-24));
  overflow: hidden;
  position: relative;
}

.credentials-header {
  text-align: center;
  margin-bottom: clamp(var(--space-12), 4vw, var(--space-16));
}

.credentials-header .section-subtitle {
  margin-inline: auto;
  text-align: center;
}

/* Scrolling logo ticker */
.creds-ticker-wrap {
  position: relative;
  overflow: hidden;
}

/* Fade edges */
.creds-ticker-wrap::before,
.creds-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.creds-ticker-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--clr-bg-2), transparent);
}

.creds-ticker-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--clr-bg-2), transparent);
}

.creds-ticker {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.creds-ticker:hover { animation-play-state: paused; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cred-item {
  position: relative;
  flex-shrink: 0;
  padding: var(--space-5) clamp(var(--space-8), 4vw, var(--space-12));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-right: 1px solid var(--clr-grey-2);
  min-width: 160px;
  transition: background var(--transition-fast);
}

.cred-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--clr-accent);
  transition: width var(--transition-slow);
}

.cred-item:hover { background: rgba(255,255,255,0.02); }
.cred-item:hover::after { width: 100%; }

.cred-logo {
  width: 100px;
  height: 40px;
  object-fit: contain;
}

.cred-logo-placeholder {
  width: 80px;
  height: 32px;
  background: var(--clr-grey-3);
  opacity: 0.35;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.cred-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-grey-2);
}

/* Achievement strip below ticker */
.creds-achievements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  margin-top: var(--space-16);
}

.cred-achievement {
  background: var(--clr-bg-card);
  padding: var(--space-8) var(--space-10);
  text-align: center;
}

.cred-achievement-icon {
  color: var(--clr-accent);
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: center;
}

.cred-achievement-title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.cred-achievement-desc {
  font-size: var(--fs-sm);
  color: var(--clr-grey-1);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   9. PROCESS SECTION
   ---------------------------------------------------------- */
#process {
  background: var(--clr-bg);
  position: relative;
  overflow: hidden;
}

/* Large background word */
#process::before {
  content: 'PROCESS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-display);
  font-size: clamp(100px, 15vw, 220px);
  font-weight: var(--fw-black);
  color: rgba(255,255,255,0.018);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.process-header {
  text-align: center;
  margin-bottom: clamp(var(--space-12), 5vw, var(--space-20));
}

.process-header .section-subtitle {
  margin-inline: auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Connecting line between steps */
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--clr-accent), rgba(222,3,1,0.2));
  z-index: 0;
}

.process-step {
  padding: 0 var(--space-6) var(--space-8);
  position: relative;
  text-align: center;
}

.process-step-number-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.process-step-number {
  width: 72px;
  height: 72px;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.process-step:hover .process-step-number {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  transform: scale(1.08);
}

.process-step-num-text {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  color: var(--clr-grey-2);
  transition: color var(--transition-base);
  line-height: 1;
}

.process-step:hover .process-step-num-text {
  color: var(--clr-white);
}

.process-step-title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-lg), 2vw, var(--fs-xl));
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  color: var(--clr-white);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-3);
  line-height: 1.1;
}

.process-step-title span {
  color: var(--clr-accent);
}

.process-step-desc {
  font-size: var(--fs-sm);
  color: var(--clr-grey-1);
  line-height: 1.65;
}

/* ----------------------------------------------------------
   10. TESTIMONIALS SECTION
   ---------------------------------------------------------- */
#testimonials {
  background: var(--clr-bg-2);
  position: relative;
  overflow: hidden;
}

#testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -8deg,
    transparent,
    transparent 120px,
    rgba(255,255,255,0.012) 120px,
    rgba(255,255,255,0.012) 121px
  );
  pointer-events: none;
}

.testimonials-header {
  text-align: center;
  margin-bottom: clamp(var(--space-12), 5vw, var(--space-16));
}

.testimonials-header .section-subtitle {
  margin-inline: auto;
}

.testimonials-track-wrap {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: var(--space-6);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 calc(50% - var(--space-3));
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  padding: clamp(var(--space-8), 3vw, var(--space-10));
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.testimonial-card.active-card {
  border-color: rgba(222,3,1,0.3);
}

/* Large quote mark */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -var(--space-4);
  right: var(--space-6);
  font-family: Georgia, serif;
  font-size: 120px;
  line-height: 1;
  color: rgba(222,3,1,0.08);
  pointer-events: none;
  top: -10px;
}

.testimonial-text {
  font-size: clamp(var(--fs-base), 1.2vw, var(--fs-md));
  color: var(--clr-off-white);
  line-height: 1.75;
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: var(--clr-grey-3);
  flex-shrink: 0;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-info { flex: 1; }

.testimonial-name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--clr-white);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: var(--fs-xs);
  color: var(--clr-grey-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-series {
  margin-left: auto;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  opacity: 0.8;
}

/* Carousel controls */
.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--clr-grey-3);
  color: var(--clr-grey-1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.carousel-btn:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: rgba(222,3,1,0.06);
}

.carousel-dots {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  background: var(--clr-grey-3);
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
}

.carousel-dot.active {
  width: 24px;
  background: var(--clr-accent);
}

/* ----------------------------------------------------------
   11. CONTACT SECTION
   ---------------------------------------------------------- */
#contact {
  background: var(--clr-bg);
  position: relative;
  overflow: hidden;
}

#contact::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--clr-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-lead {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-3xl));
  font-weight: var(--fw-black);
  text-transform: uppercase;
  color: var(--clr-white);
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.contact-lead em {
  font-style: normal;
  display: block;
  color: var(--clr-accent);
}

.contact-body {
  font-size: var(--fs-base);
  color: var(--clr-grey-1);
  line-height: 1.75;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--clr-grey-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  flex-shrink: 0;
}

.contact-detail-text {
  font-size: var(--fs-sm);
  color: var(--clr-grey-1);
}

.contact-detail-text strong {
  display: block;
  font-weight: var(--fw-semibold);
  color: var(--clr-white);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Social links */
.contact-socials {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--clr-grey-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-grey-1);
  transition: all var(--transition-base);
}

.social-link:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: rgba(222,3,1,0.06);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-grey-2);
}

.form-input,
.form-textarea,
.form-select {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-grey-3);
  color: var(--clr-white);
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm);
  font-family: var(--ff-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--clr-grey-2);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(222,3,1,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: var(--space-10);
}

.form-select option {
  background: var(--clr-bg-2);
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--clr-grey-2);
  margin-top: var(--space-2);
}

/* ----------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------- */
footer {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  padding-block: var(--space-10);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-logo {
  height: 32px;
  opacity: 0.6;
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--clr-grey-2);
  letter-spacing: 0.05em;
}

.footer-copy a {
  color: var(--clr-grey-1);
  transition: color var(--transition-fast);
}

.footer-copy a:hover { color: var(--clr-accent); }

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-grey-2);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--clr-white); }

/* ----------------------------------------------------------
   13. PAGE TRANSITION OVERLAY
   ---------------------------------------------------------- */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--clr-accent);
  z-index: 9999;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ----------------------------------------------------------
   14. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-layout {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .process-steps::before { display: none; }

  .testimonial-card {
    flex: 0 0 calc(100% - var(--space-3));
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  .nav-links,
  .nav-cta .btn { display: none; }

  .nav-hamburger { display: flex; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image-wrap { order: -1; }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

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

  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(3) { border-top: 1px solid var(--clr-border); }

  .creds-achievements {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }
}

/* ----------------------------------------------------------
   15. SCROLLBAR
   ---------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-grey-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-accent); }

/* ----------------------------------------------------------
   16. SELECTION
   ---------------------------------------------------------- */
::selection {
  background: var(--clr-accent);
  color: var(--clr-white);
}

/* ----------------------------------------------------------
   17. FOCUS VISIBLE (accessibility)
   ---------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
}
