/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

:root {
  /* Minimalist Black & White Palette */
  --color-primary: oklch(0% 0 0);
  /* Pure Black */
  --color-primary-light: oklch(28% 0 0);
  --color-accent: oklch(32% 0 0);
  /* Dark Gray Accent */
  --color-accent-hover: oklch(23% 0 0);

  --color-surface: oklch(100% 0 0);
  /* Pure White */
  --color-surface-alt: oklch(99% 0 0);

  --color-text: oklch(18% 0 0);
  /* Nearly Black */
  --color-text-light: oklch(52% 0 0);
  /* Medium Gray */

  --color-border: oklch(84% 0 0 / 50%);

  /* Glassmorphism */
  --glass-bg: oklch(100% 0 0 / 95%);
  --glass-border: oklch(0% 0 0 / 10%);
  --glass-shadow: 0 8px 32px 0 oklch(0% 0 0 / 8%);

  /* Typography */
  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing & Layout */
  --container-max: 1400px;
  --container-padding: clamp(1.5rem, 5vw, 4rem);
  --header-height: 80px;

  /* Typography Scale */
  --font-size-sm: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
  --font-size-base: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);
  --font-size-lg: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
  --font-size-xl: clamp(1.5rem, 1.3rem + 1.25vw, 2.5rem);
  --font-size-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --font-size-3xl: clamp(3rem, 2.5rem + 3vw, 5rem);

  /* Animations */
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
  overflow-y: overlay;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-primary);
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-surface-alt);
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--transition-smooth);
}

ul {
  list-style: none;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: clamp(3rem, 5vw, 6rem);
}

.bg-primary {
  background-color: var(--color-primary);
  color: oklch(100% 0 0);
}

.bg-surface {
  background-color: var(--color-surface);
}

.text-accent {
  color: var(--color-accent);
}

.grid {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
}

/* Additional Utilities */
.page-content {
  padding-top: var(--header-height);
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-between {
  justify-content: space-between;
}

.items-end {
  align-items: end;
}

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

.gap-4 {
  gap: 4rem;
}

.gap-3 {
  gap: 3rem;
}

.gap-2 {
  gap: 2rem;
}

.gap-1-5 {
  gap: 1.5rem;
}

.gap-1 {
  gap: 1rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-1-5 {
  margin-bottom: 1.5rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-05 {
  margin-bottom: 0.5rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-05 {
  margin-top: 0.5rem;
}

.w-full {
  width: 100%;
}

.max-w-700 {
  max-width: 700px;
}

.max-w-600 {
  max-width: 600px;
}

.max-w-900 {
  max-width: 900px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.opacity-90 {
  opacity: 0.9;
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-50 {
  opacity: 0.5;
}

.font-weight-800 {
  font-weight: 800;
}

.font-weight-700 {
  font-weight: 700;
}

.font-weight-600 {
  font-weight: 600;
}

.text-xs {
  font-size: 0.9rem;
}

.text-sm {
  font-size: 1.1rem;
}

.text-base {
  font-size: 1.2rem;
}

.text-lg {
  font-size: 1.5rem;
}

.text-xl {
  font-size: 2rem;
}

.text-2xl {
  font-size: 2.5rem;
}

.text-3xl {
  font-size: 3rem;
}

.line-height-1-6 {
  line-height: 1.6;
}

.grid-2-col {
  grid-template-columns: 1fr;
}

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

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

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

.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-products {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.padding-block-4 {
  padding-block: 4rem;
}

.padding-3 {
  padding: 3rem;
}

.border-left-accent {
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
}

.footer-divider {
  border-top: 1px solid oklch(100% 0 0 / 10%);
  padding-top: 2rem;
}

.copyright {
  text-align: center;
  opacity: 0.5;
  font-size: 0.9rem;
}

.footer__legal-link {
  margin-inline: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.footer__legal-link:hover {
  text-decoration: underline;
  opacity: 1;
}

.color-text-light {
  color: var(--color-text-light);
}

.pt-0 {
  padding-top: 0 !important;
}

/* Form Inputs */
.form-input {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: oklch(100% 0 0 / 80%);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 0.3s var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* ========================================
   COMPONENTS
   ======================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1em 2.5em;
  font-weight: 600;
  border-radius: 4px;
  /* More industrial/architectural feel */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: oklch(100% 0 0);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px oklch(0% 0 0 / 30%);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: oklch(100% 0 0);
}

.btn-sm {
  padding: 0.4em 1em;
  font-size: 0.8rem;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 6px -1px oklch(0% 0 0 / 5%);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px oklch(0% 0 0 / 10%), 0 10px 10px -5px oklch(0% 0 0 / 4%);
}

/* ========================================
   HEADER
   ======================================== */

.header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: oklch(100% 0 0 / 95%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%),
      oklch(100% 0 0 / 8%),
      transparent 100%);
}

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

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  /* Mobile handling in media queries */
}

/* ========================================
   HERO SECTION — Keyframes
   ======================================== */

@keyframes heroGridDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 40px 40px;
  }
}

@keyframes heroFadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(36px);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroLineExpand {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }

  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes heroCornersIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroGlowPulse {

  0%,
  100% {
    box-shadow: 0 10px 30px -5px hsla(0, 0%, 0%, 0.25);
  }

  50% {
    box-shadow: 0 10px 40px -2px hsla(0, 0%, 0%, 0.4);
  }
}

/* ========================================
   HERO SECTION — Layout & Background
   ======================================== */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--header-height);
  text-align: center;
  overflow: hidden;

  /* Layered background: subtle dot grid over gradient */
  background:
    radial-gradient(circle, oklch(0% 0 0 / 4%) 1px, transparent 1px),
    linear-gradient(180deg, oklch(100% 0 0) 0%, oklch(97% 0 0) 100%);
  background-size: 40px 40px, 100% 100%;
  animation: heroGridDrift 8s linear infinite;
}

/* Thin decorative horizontal lines at top & bottom of hero */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0% 0 0 / 10%) 30%, oklch(0% 0 0 / 10%) 70%, transparent);
}

.hero::before {
  top: calc(var(--header-height) + 16px);
}

.hero::after {
  bottom: 16px;
}

/* ========================================
   HERO SECTION — Content & Corner Marks
   ======================================== */

.hero__content {
  color: var(--color-text);
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
}

/* Precision corner brackets */
.hero__content::before,
.hero__content::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: oklch(0% 0 0 / 15%);
  border-style: solid;
  pointer-events: none;
  animation: heroCornersIn 1s var(--transition-smooth) 1.2s both;
}

.hero__content::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.hero__content::after {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

/* ========================================
   HERO SECTION — Title with accent underline
   ======================================== */

.hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  color: var(--color-primary);
  position: relative;
  display: inline-block;

  /* Entrance animation */
  animation: heroFadeSlideUp 0.8s var(--transition-smooth) 0.15s both;
}

/* Gradient accent underline that expands on load */
.hero__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, oklch(76% 0 0), oklch(23% 0 0), oklch(76% 0 0));
  border-radius: 2px;
  transform-origin: center;
  animation: heroLineExpand 0.7s var(--transition-smooth) 0.7s both;
}

/* ========================================
   HERO SECTION — Subtitle & Actions
   ======================================== */

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-text-light);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;

  animation: heroFadeSlideUp 0.8s var(--transition-smooth) 0.45s both;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;

  animation: heroFadeSlideUp 0.8s var(--transition-smooth) 0.75s both;
}

/* Enhanced hero-specific button hover */
.hero .btn-primary {
  transition: all 0.35s var(--transition-smooth);
}

.hero .btn-primary:hover {
  animation: heroGlowPulse 1.5s ease infinite;
}

.hero .btn-outline {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.35s var(--transition-smooth), border-color 0.35s var(--transition-smooth);
}

.hero .btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--transition-smooth);
}

.hero .btn-outline:hover::before {
  transform: scaleX(1);
}

.hero .btn-outline:hover {
  color: oklch(100% 0 0);
  border-color: var(--color-primary);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }

  .hero__title,
  .hero__subtitle,
  .hero__actions {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .hero__title::after {
    animation: none;
    transform: scaleX(1);
    opacity: 1;
  }

  .hero__content::before,
  .hero__content::after {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }

  .hero .btn-primary:hover {
    animation: none;
  }
}

/* ========================================
   PRODUCTS GRID
   ======================================== */

.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.product-card {
  position: relative;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
}

.product-card:hover .product-card__img {
  transform: scale(1.05);
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0% 0 0 / 85%), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: oklch(100% 0 0);
}

.product-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-card__arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s var(--transition-smooth);
  color: oklch(100% 0 0);
  font-weight: 600;
  margin-top: 1rem;
}

.product-card:hover .product-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   SCROLL ANIMATIONS (Fade Reveal)
   ======================================== */

.reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-smooth),
    filter 0.8s var(--transition-smooth),
    transform 0.8s var(--transition-smooth);
  will-change: opacity, filter, transform;
}

.reveal.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  will-change: auto;
}

.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

/* ========================================
   PARTNERS MARQUEE
   ======================================== */

.partners-section {
  padding-block: 4rem;
  background-color: var(--color-surface);
  overflow: hidden;
}

.partners-scroll {
  width: 90%;
  max-width: 1536px;
  margin-inline: auto;
  height: 100px;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0));
}

.partners-scroll:hover .partner-logo {
  animation-play-state: paused;
}

.partner-logo {
  width: 200px;
  height: 60px;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateX(calc(max(calc(200px * 9), 100vw))) translateY(-50%);
  animation-name: scrollLeft;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;

  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.3s var(--transition-smooth);
}

.partner-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: translateX(var(--logo-x, 0)) translateY(-50%) scale(1.1);
  z-index: 10;
}

@keyframes scrollLeft {
  from {
    transform: translateX(calc(max(calc(200px * 9), 100vw))) translateY(-50%);
  }

  to {
    transform: translateX(-200px) translateY(-50%);
  }
}

.partner-logo:nth-child(1) {
  animation-delay: calc(30s / 9 * (9 - 1) * -1);
}

.partner-logo:nth-child(2) {
  animation-delay: calc(30s / 9 * (9 - 2) * -1);
}

.partner-logo:nth-child(3) {
  animation-delay: calc(30s / 9 * (9 - 3) * -1);
}

.partner-logo:nth-child(4) {
  animation-delay: calc(30s / 9 * (9 - 4) * -1);
}

.partner-logo:nth-child(5) {
  animation-delay: calc(30s / 9 * (9 - 5) * -1);
}

.partner-logo:nth-child(6) {
  animation-delay: calc(30s / 9 * (9 - 6) * -1);
}

.partner-logo:nth-child(7) {
  animation-delay: calc(30s / 9 * (9 - 7) * -1);
}

.partner-logo:nth-child(8) {
  animation-delay: calc(30s / 9 * (9 - 8) * -1);
}

.partner-logo:nth-child(9) {
  animation-delay: calc(30s / 9 * (9 - 9) * -1);
}

/* ========================================
   ABOUT HERO
   ======================================== */

.about-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle, hsla(0, 0%, 0%, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 100%);
  background-size: 40px 40px, 100% 100%;
}

.about-hero__content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  animation: heroFadeSlideUp 0.8s var(--transition-smooth) 0.15s both;
}

.about-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--color-primary);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  animation: heroFadeSlideUp 0.8s var(--transition-smooth) 0.35s both;
}

/* Gradient accent underline that expands on load */
.about-hero__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin: 1.5rem auto 0;
  background: linear-gradient(90deg, hsl(0, 0%, 70%), hsl(0, 0%, 10%), hsl(0, 0%, 70%));
  border-radius: 2px;
  transform-origin: center;
  animation: heroLineExpand 0.7s var(--transition-smooth) 0.8s both;
}

.about-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--color-text-light);
  max-width: 650px;
  margin-inline: auto;
  line-height: 1.7;
  animation: heroFadeSlideUp 0.8s var(--transition-smooth) 0.55s both;
}

/* ========================================
   STATS BAR
   ======================================== */

.stats-bar {
  padding-block: 3rem;
  background: var(--color-primary);
  color: oklch(100% 0 0);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 2rem 1rem;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.stat__suffix {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.stat__label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.7;
}

/* ========================================
   PARALLAX TIMELINE
   ======================================== */

.timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding-block: 3rem;
}

/* Vertical center line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom,
      transparent,
      hsla(0, 0%, 0%, 0.15) 10%,
      hsla(0, 0%, 0%, 0.15) 90%,
      transparent);
  transform: translateX(-50%);
}

/* Each milestone row */
.timeline__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  margin-bottom: 6rem;
  perspective: 1200px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

/* Dot on the center line */
.timeline__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border: 3px solid var(--color-surface-alt);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 0 0 4px oklch(0% 0 0 / 6%);
}

/* Pulsing ring on dot when active */
.timeline__item.active .timeline__dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid oklch(0% 0 0 / 10%);
  animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Year badge */
.timeline__year {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%) translateY(-100%);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
  background: var(--color-surface-alt);
  padding: 0.3rem 0.8rem;
  border: 1px solid oklch(0% 0 0 / 8%);
  border-radius: 2px;
  z-index: 4;
  white-space: nowrap;
}

/* Image wrapper — 3D parallax container */
.timeline__image-wrap {
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  will-change: transform;
  transition: transform 0.1s linear;
  transform-style: preserve-3d;
  transform:
    translateY(calc(var(--parallax-y, 0) * 1px)) rotateY(calc(var(--tilt, 3) * 1deg));
  box-shadow: 0 20px 60px -15px oklch(0% 0 0 / 20%);
}

.timeline__image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--transition-smooth);
}

.timeline__image-wrap:hover .timeline__image {
  transform: scale(1.04);
}

/* Text block — slides in from opposite side */
.timeline__text {
  will-change: transform;
  transition: transform 0.1s linear;
  transform: translateY(calc(var(--parallax-text-y, 0) * 1px));
}

/* Reversed layout: swap grid columns */
.timeline__item--reverse {
  direction: rtl;
}

.timeline__item--reverse>* {
  direction: ltr;
}

.timeline__item--reverse .timeline__image-wrap {
  transform:
    translateY(calc(var(--parallax-y, 0) * 1px)) rotateY(calc(var(--tilt, -3) * -1deg));
}

/* ========================================
   TIMELINE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline__item,
  .timeline__item--reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-left: 50px;
    margin-bottom: 4rem;
    direction: ltr;
    perspective: none;
  }

  .timeline__dot {
    left: 20px;
    top: 0;
    transform: translate(-50%, 0);
  }

  .timeline__year {
    left: 50px;
    top: -8px;
    transform: translateY(-100%);
  }

  .timeline__image-wrap,
  .timeline__item--reverse .timeline__image-wrap {
    transform: none !important;
  }

  .timeline__image {
    height: 220px;
  }

  .timeline__text {
    transform: none !important;
  }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background-color: var(--color-primary);
  color: oklch(100% 0 0);
  padding-block: 3rem 1.5rem;
}

.footer .logo {
  color: hsl(0, 0%, 100%);
  display: inline-block;
  margin-bottom: 1rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
  color: oklch(100% 0 0);
  opacity: 0.9;
}

.footer__list li {
  margin-top: 0.6rem;
}

.footer__link {
  opacity: 0.7;
}

.footer__link:hover {
  opacity: 1;
  color: oklch(100% 0 0);
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid oklch(87% 0 0);
  background-color: oklch(100% 0 0 / 80%);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  transition: all 0.3s var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-text);
  background-color: oklch(100% 0 0);
  box-shadow: 0 0 0 3px oklch(0% 0 0 / 5%);
}

.form-input::placeholder {
  color: var(--color-text-light);
  opacity: 0.7;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

label {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  opacity: 0.8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.link-direction {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 1px;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: 1.5rem;
  padding-bottom: 2px;
}

.link-direction:hover {
  border-bottom-color: var(--color-primary);
  opacity: 0.8;
}

/* ========================================
   CUSTOM SELECT UI
   ======================================== */

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select__trigger {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid oklch(87% 0 0);
  background-color: oklch(100% 0 0 / 80%);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s var(--transition-smooth);
  user-select: none;
}

.custom-select-wrapper.open .custom-select__trigger {
  border-color: var(--color-text);
  background-color: oklch(100% 0 0);
  box-shadow: 0 0 0 3px oklch(0% 0 0 / 5%);
}

.custom-select__arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--transition-smooth);
  color: var(--color-text-light);
}

.custom-select-wrapper.open .custom-select__arrow {
  transform: rotate(180deg);
  color: var(--color-text);
}

.custom-select__options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: var(--glass-shadow);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s var(--transition-smooth);
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
}

.custom-select-wrapper.open .custom-select__options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select__option {
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-select__option:hover,
.custom-select__option.selected {
  background-color: oklch(0% 0 0 / 4%);
  color: var(--color-primary);
}

.custom-select__option.selected {
  font-weight: 600;
}

/* Custom scrollbar for dropdown */
.custom-select__options::-webkit-scrollbar {
  width: 6px;
}

.custom-select__options::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select__options::-webkit-scrollbar-thumb {
  background-color: oklch(0% 0 0 / 15%);
  border-radius: 10px;
}

/* Hide native select visually but keep it accessible for form submission if needed */
.select-hidden {
  display: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background-color: var(--color-surface);
    height: calc(100vh - var(--header-height));
    width: 100%;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    font-size: 1.25rem;
  }

  .menu-toggle {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    position: absolute;
    transition: 0.3s;
  }

  .menu-toggle span:nth-child(1) {
    top: 0;
  }

  .menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .menu-toggle span:nth-child(3) {
    bottom: 0;
  }

  .menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: rotate(-45deg);
  }

  .hide-mobile {
    display: none;
  }

  .show-mobile {
    display: inline;
  }
}

@media (min-width: 769px) {
  .show-mobile {
    display: none;
  }
}

/* Mobile Menu Enhancements */
.nav__actions {
  width: 100%;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-surface-alt);
  color: var(--color-text);
  font-size: 0.8rem;
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--color-primary);
  color: oklch(100% 0 0);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}