/* Valeron Labs — racing / migration-at-speed company hub */

:root {
  --pit-black: #05080d;
  --navy: #0b1520;
  --panel: #101a26;
  --paper: #f2f5f8;
  --muted: #9aa8b5;
  --cyan: #3ec6ff;
  --cyan-dim: rgba(62, 198, 255, 0.14);
  --red: #e10600;
  --line: rgba(242, 245, 248, 0.1);
  --font-display: "Teko", sans-serif;
  --font-body: "Sora", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --max: 1120px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--pit-black);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--cyan);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.92), rgba(5, 8, 13, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
  transition: background 0.35s ease, border-color 0.35s ease, height 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  height: 64px;
  background: rgba(5, 8, 13, 0.94);
  border-bottom-color: var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--max));
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.brand span {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(62, 198, 255, 0.35);
  animation: brandGlow 4.5s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a.cta {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(62, 198, 255, 0.45);
  background: var(--cyan-dim);
  color: var(--cyan);
}

.nav-links a.cta:hover {
  background: rgba(62, 198, 255, 0.28);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) 0 4.5rem;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.04);
  animation: heroDrift 28s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.92) 0%, rgba(5, 8, 13, 0.55) 48%, rgba(5, 8, 13, 0.25) 100%),
    linear-gradient(0deg, rgba(5, 8, 13, 0.95) 0%, transparent 42%);
}

.hero-streaks {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
}

.hero-streaks span {
  position: absolute;
  left: -40%;
  height: 1px;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(62, 198, 255, 0.85), transparent);
  animation: streakRun 5.5s linear infinite;
}

.hero-streaks span:nth-child(1) {
  top: 28%;
  animation-duration: 4.8s;
}

.hero-streaks span:nth-child(2) {
  top: 46%;
  width: 55%;
  opacity: 0.7;
  animation-duration: 6.2s;
  animation-delay: -1.8s;
}

.hero-streaks span:nth-child(3) {
  top: 62%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.55), transparent);
  animation-duration: 7s;
  animation-delay: -3.2s;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-kicker::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(62, 198, 255, 0.8);
  animation: pulseBar 1.8s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 11ch;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}

.hero-lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-primary {
  background: var(--cyan);
  color: var(--pit-black);
  border-color: var(--cyan);
  font-weight: 600;
}

.btn-primary:hover {
  background: #79d6ff;
  color: var(--pit-black);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(242, 245, 248, 0.28);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-red {
  background: transparent;
  color: var(--paper);
  border-color: rgba(225, 6, 0, 0.55);
}

.btn-red:hover {
  background: rgba(225, 6, 0, 0.15);
  color: #ff6b63;
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.85rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.45rem;
}

.section-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.7s ease 0.15s;
}

.reveal.visible .section-label::after,
.section-label.reveal.visible::after {
  transform: scaleX(1);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.prose {
  max-width: 40rem;
  color: var(--muted);
  display: grid;
  gap: 1.1rem;
}

.prose strong {
  color: var(--paper);
  font-weight: 600;
}

/* —— Products —— */
.products {
  background: var(--navy);
}

.product-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  min-height: 320px;
  border: 1px solid var(--line);
  margin-top: 2rem;
  overflow: hidden;
  background: var(--panel);
  transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.product-band:hover {
  border-color: rgba(62, 198, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(62, 198, 255, 0.12), 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.product-band + .product-band {
  margin-top: 1.25rem;
}

.product-band.reverse .product-copy {
  order: 2;
}

.product-band.reverse .product-visual {
  order: 1;
}

.product-copy {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.product-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.product-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.product-copy p {
  color: var(--muted);
  max-width: 34rem;
}

.product-visual {
  position: relative;
  min-height: 240px;
  background: #070d14;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  transition: transform 0.8s ease, opacity 0.4s ease;
}

.product-band:hover .product-visual img {
  transform: scale(1.06);
  opacity: 1;
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 26, 38, 0.55), transparent 55%);
  pointer-events: none;
}

.product-band.reverse .product-visual::after {
  background: linear-gradient(270deg, rgba(16, 26, 38, 0.55), transparent 55%);
}

/* —— Craft —— */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.craft-item {
  padding: 1.5rem 1.35rem;
  border-top: 2px solid var(--cyan);
  background: rgba(16, 26, 38, 0.65);
  transition: transform 0.3s ease, background 0.3s ease;
}

.craft-item:hover {
  transform: translateY(-4px);
  background: rgba(16, 26, 38, 0.9);
}

.craft-item.red {
  border-top-color: var(--red);
}

.craft-item h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.craft-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Gallery strip —— */
.track-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.track-strip figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
  background: #000;
}

.track-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.track-strip figure:hover img {
  transform: scale(1.04);
}

.track-strip figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

/* —— Contact —— */
.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(62, 198, 255, 0.06), transparent 40%),
    var(--panel);
}

.contact-panel a.email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.03em;
  color: var(--cyan);
  margin: 0.5rem 0 1.25rem;
}

.address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}

.address strong {
  display: block;
  color: var(--paper);
  margin-bottom: 0.25rem;
}

.contact-aside {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-links a {
  color: var(--cyan);
}

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

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.32s;
}

.reveal-delay-4 {
  transition-delay: 0.44s;
}

.hero .reveal.visible {
  animation: none;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 0.5%, 0);
  }
}

@keyframes streakRun {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateX(280%);
    opacity: 0;
  }
}

@keyframes brandGlow {
  0%,
  100% {
    text-shadow: 0 0 12px rgba(62, 198, 255, 0.25);
  }
  50% {
    text-shadow: 0 0 22px rgba(62, 198, 255, 0.55);
  }
}

@keyframes pulseBar {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.7;
  }
  50% {
    transform: scaleX(1.35);
    opacity: 1;
  }
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  animation: btnSheen 3.8s ease-in-out infinite;
}

@keyframes btnSheen {
  0%,
  55% {
    left: -40%;
  }
  100% {
    left: 120%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .track-strip figure:hover img,
  .brand span,
  .hero-kicker::before,
  .hero-streaks span,
  .btn-primary::after {
    animation: none !important;
  }

  .hero-streaks {
    display: none;
  }

  .reveal,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4 {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-band:hover,
  .craft-item:hover {
    transform: none;
  }
}

/* —— Responsive —— */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    right: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: rgba(11, 21, 32, 0.96);
    border: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .product-band,
  .product-band.reverse {
    grid-template-columns: 1fr;
  }

  .product-band.reverse .product-copy,
  .product-band.reverse .product-visual {
    order: initial;
  }

  .product-visual {
    min-height: 200px;
  }

  .craft-grid,
  .track-strip,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 3rem;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 8, 13, 0.45) 0%, rgba(5, 8, 13, 0.88) 55%, rgba(5, 8, 13, 0.98) 100%);
  }
}
