/* ============================================================
   CLYDE SERVICES — Design System
   Dark-mode-first. Bold red. Industrial premium.
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* --- Custom Properties --- */
:root {
  --bg-primary: #0C0C0C;
  --bg-elevated: #141414;
  --bg-card: #1A1A1A;
  --bg-accent: #1E1E1E;
  --clyde-red: #D92D2D;
  --clyde-red-bright: #EF3535;
  --clyde-red-dark: #A01F1F;
  --clyde-red-glow: rgba(217, 45, 45, 0.25);
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #6B6B6B;
  --border: #2A2A2A;
  --border-light: #333333;

  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 100px;
  --space-3xl: 140px;

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

  --max-width: 1200px;
  --max-width-narrow: 800px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  overflow-x: hidden;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.loaded { opacity: 1; }

a {
  color: var(--clyde-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover { color: var(--clyde-red-bright); }

ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.1;
  font-weight: 700;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 2px;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clyde-red);
  display: block;
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: var(--text-secondary);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
  .section { padding: var(--space-2xl) 0; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--clyde-red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--clyde-red-bright);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}

.btn--outline:hover {
  border-color: var(--clyde-red);
  color: var(--clyde-red);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1rem;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: background 0.3s ease, padding 0.3s ease;
  background: rgba(12, 12, 12, 0.7);
}

.header.scrolled {
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1001;
}

.header__logo-mark {
  width: 36px;
  height: 36px;
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}

.header__logo-text span {
  color: var(--clyde-red);
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-md);
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-desktop a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 0, 0, 0.4);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clyde-red);
  transition: width 0.3s ease;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text-primary);
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
  width: 100%;
}

.nav-desktop .btn {
  margin-left: var(--space-xs);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown__trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
  fill: currentColor;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xs) 0;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown__trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown__menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav-dropdown__menu a:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-dropdown__menu a::after { display: none; }

/* Mobile nav */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-elevated);
  z-index: 999;
  transition: right 0.35s ease;
  padding: 100px var(--space-lg) var(--space-lg);
  overflow-y: auto;
}

.mobile-nav.open { right: 0; }

.mobile-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--text-primary);
  padding-left: 8px;
}

.mobile-nav .mobile-nav__label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  padding: 0;
  border: none;
}

.mobile-nav .btn {
  margin-top: var(--space-lg);
  width: 100%;
  justify-content: center;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 998;
}

.nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(12, 12, 12, 0.95) 0%,
    rgba(12, 12, 12, 0.7) 35%,
    rgba(12, 12, 12, 0.3) 60%,
    rgba(12, 12, 12, 0.15) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 var(--space-md) var(--space-xl);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--clyde-red);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero h1 .accent {
  color: var(--clyde-red);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .hero__content {
    padding-bottom: var(--space-2xl);
  }
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: 1px;
}

.stat__number .accent {
  color: var(--clyde-red);
}

.stat__label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: var(--space-xs);
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

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

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  display: block;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-color: var(--clyde-red);
}

.service-card__image {
  overflow: hidden;
  aspect-ratio: 16/10;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.05);
}

.service-card__body {
  padding: var(--space-md);
}

.service-card__body h3 {
  margin-bottom: var(--space-xs);
}

.service-card__body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.service-card__link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clyde-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.service-card:hover .service-card__link {
  gap: 10px;
}

/* --- Feature / The Machine --- */
.feature {
  position: relative;
  overflow: hidden;
}

.feature__bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .feature__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

.feature__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.feature__content .eyebrow { margin-bottom: var(--space-xs); }

.feature__content h2 { margin-bottom: var(--space-md); }

.feature__content p {
  margin-bottom: var(--space-sm);
}

/* Spec list */
.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.spec-item {
  padding: var(--space-sm);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--clyde-red);
}

.spec-item__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: 1px;
}

.spec-item__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* --- Projects Grid --- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

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

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

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,12,12,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

@media (max-width: 767px) {
  .project-card__overlay { opacity: 1; }
}

.project-card__overlay h4 {
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.project-card__overlay p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* --- About / Story Section --- */
.story {
  background: var(--bg-elevated);
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .story__grid {
    grid-template-columns: 5fr 4fr;
    gap: var(--space-xl);
  }
}

.story__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.story__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* --- CTA Band --- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-xl) 0;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(217, 45, 45, 0.9) 0%,
    rgba(160, 31, 31, 0.95) 100%
  );
}

.cta-band__content {
  position: relative;
  z-index: 3;
}

.cta-band h2 { margin-bottom: var(--space-sm); }

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn--primary {
  background: #fff;
  color: var(--clyde-red);
}

.cta-band .btn--primary:hover {
  background: #f0f0f0;
  color: var(--clyde-red-dark);
}

/* --- Partners --- */
.partners__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  opacity: 0.5;
}

.partners__logos span {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--clyde-red);
  box-shadow: 0 0 0 3px var(--clyde-red-glow);
}

textarea { min-height: 140px; resize: vertical; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-xl);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    var(--bg-primary) 0%,
    rgba(12, 12, 12, 0.85) 40%,
    rgba(12, 12, 12, 0.6) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 3;
}

/* --- Content Pages --- */
.content-section {
  padding: var(--space-xl) 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--border);
}

.content-section--alt {
  background: var(--bg-elevated);
}

.content-body {
  max-width: 720px;
}

.content-body p {
  margin-bottom: var(--space-md);
}

.content-body h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.content-body ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.content-body ul li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-xs);
}

.content-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--clyde-red);
  border-radius: 50%;
}

/* Two col content */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

.two-col--reverse {
  direction: ltr;
}

@media (min-width: 768px) {
  .two-col--reverse .two-col__image { order: 2; }
  .two-col--reverse .two-col__content { order: 1; }
}

.two-col__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.two-col__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* --- Blockquote --- */
blockquote {
  border-left: 3px solid var(--clyde-red);
  padding: var(--space-md) var(--space-md);
  margin: var(--space-lg) 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote p {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: var(--space-xs) !important;
}

blockquote cite {
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__brand p {
  margin-top: var(--space-sm);
  font-size: 0.9375rem;
  max-width: 300px;
}

.footer h4 {
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer__links a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__links a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  fill: var(--clyde-red);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer__social a:hover {
  border-color: var(--clyde-red);
  color: var(--clyde-red);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.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; }

/* --- Red accent line --- */
.red-line {
  width: 60px;
  height: 3px;
  background: var(--clyde-red);
  margin-bottom: var(--space-md);
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: var(--space-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-lg) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clyde-red);
  border: 2px solid var(--bg-primary);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--clyde-red);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.timeline__item h4 {
  margin-bottom: 6px;
}

.timeline__item p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  counter-reset: step;
}

@media (min-width: 640px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

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

.process-step {
  position: relative;
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  counter-increment: step;
  transition: border-color 0.3s ease;
}

.process-step:hover {
  border-color: var(--clyde-red);
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--clyde-red);
  opacity: 0.3;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-sm);
}

.process-step h4 { margin-bottom: var(--space-xs); }

.process-step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-red { color: var(--clyde-red); }
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* --- Sticky CTA (mobile) --- */
.sticky-cta {
  display: none;
}

@media (max-width: 1023px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 12px var(--space-md);
    gap: var(--space-xs);
  }

  .sticky-cta .btn {
    flex: 1;
    justify-content: center;
    padding: 14px;
  }

  main {
    padding-bottom: 72px;
  }
}

/* --- Scrollbar (desktop) --- */
@media (min-width: 1024px) {
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: var(--bg-primary); }
  ::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
}

/* --- Selection --- */
::selection {
  background: var(--clyde-red);
  color: white;
}

/* -----------------------------------------------------------------
 * Reveal-animation fix (2026-04-17): previously, .reveal elements had
 * opacity:0 by default and only became visible after scroll-reveal JS
 * kicked in. On slow connections, during print, or if JS failed, half
 * the page appeared empty. Now reveal elements default to visible; any
 * scroll-in animation runs as an additive enhancement instead of a
 * subtractive hide.
 * ----------------------------------------------------------------- */
.reveal,
.reveal-left,
.reveal-right,
.reveal-up,
.reveal-down,
.fade-in,
.scroll-reveal,
[data-reveal],
[data-aos],
.stagger > * {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

