/* ============================================================
   Kinsupplies — premium e-commerce landing
   Navy #1B2A4A · Deep #0F1A2E · Gold #C9A227
   ============================================================ */

:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1A2E;
  --navy-2: #223458;
  --gold: #C9A227;
  --gold-rgb: 201, 162, 39;
  --white: #FFFFFF;
  --font-display: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }
html.js-smooth { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section { padding: 120px 0; position: relative; }
.section__lede {
  color: rgba(255, 255, 255, 0.6);
  font-size: 17px;
  margin: 18px 0 56px;
  max-width: 520px;
}
.text-gold { color: var(--gold); }

/* centred section headers (products, logistics, why) */
.products .wrap > h2,
.logistics .wrap > h2,
.why .wrap > h2 { text-align: center; }
.products .section__lede,
.logistics .section__lede,
.why .section__lede {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ============ Curtain footer layout ============ */
.site { position: relative; }
.site main {
  position: relative;
  z-index: 2;
  background: var(--navy-deep);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
}

/* ============ Custom cursor ============ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-100px, -100px);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.25s;
  will-change: transform;
  display: none;
}
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}
.cursor.is-hover { width: 24px; height: 24px; opacity: 0.5; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, 4vw);
  height: 72px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
              backdrop-filter 0.4s var(--ease-out), height 0.4s var(--ease-out);
}
.nav.is-scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(27, 42, 74, 0.85);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.1);
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.nav__cube { display: inline-flex; perspective: 300px; }
.nav__mark {
  width: 40px;
  height: auto;
  transition: transform 0.4s ease-out;
  transform-style: preserve-3d;
}
.nav__logo:hover .nav__mark { transform: rotateX(15deg) rotateY(15deg); }
.nav__wordimg { height: 20px; width: auto; }

.nav__links {
  display: flex;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 2px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease-out;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 18px; }

/* animated Customer Portal pill */
.nav__portal {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(var(--gold-rgb), 0.45);
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
  animation: portalGlow 3s ease-in-out infinite;
}
.nav__portal::before {
  /* shimmer sweep */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(105deg, transparent, rgba(var(--gold-rgb), 0.28), transparent);
  animation: portalShimmer 2.8s ease-in-out infinite;
}
@keyframes portalShimmer {
  0%, 55% { left: -60%; }
  85%, 100% { left: 120%; }
}
@keyframes portalGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.25); }
  50% { box-shadow: 0 0 16px 2px rgba(var(--gold-rgb), 0.18); }
}
.nav__portal:hover {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
  animation: none;
}
.nav__portal:hover::before { display: none; }
.nav__portal-label { white-space: nowrap; }
@media (max-width: 1024px) {
  .nav__portal { padding: 7px 12px; font-size: 12px; }
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  padding: 8px;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease 0.1s, opacity 0.3s ease 0.05s;
  transform-origin: center;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); transition-delay: 0s; }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transition-delay: 0.1s; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); transition-delay: 0.2s; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--navy);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  padding: 10px 24px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transition-delay: 0s;
}
.mobile-menu.is-open a {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(0.15s + var(--i) * 0.05s);
}
.mobile-menu a:hover { color: var(--gold); }

@media (max-width: 1024px) {
  .nav__links { gap: 20px; }
  .nav__links a { font-size: 13px; letter-spacing: 0.3px; }
  .nav__mark { width: 34px; }
  .nav__wordimg { height: 17px; }
}
@media (max-width: 767px) {
  .nav__links, .nav__portal { display: none; }
  .nav__burger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 45%, var(--navy) 0%, #16233F 55%, var(--navy-deep) 100%);
}
.hero__globe {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.hero__globe-tilt {
  width: min(80vh, 92vw);
  height: min(80vh, 92vw);
  will-change: transform;
  transition: transform 0.2s linear;
}
#globe { width: 100%; height: 100%; display: block; }

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 1100px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  /* vw-proportional so the two lines can never truncate at any width */
  font-size: min(7.2vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 40px rgba(15, 26, 46, 0.8);
}
.hero__line { display: block; overflow: hidden; white-space: nowrap; }
.hero__line-inner {
  display: block;
  transform: translateY(110%);
  animation: heroLineUp 0.9s var(--ease-out-expo) 0.2s forwards;
}
.hero__line-inner--d2 { animation-delay: 0.38s; }
@keyframes heroLineUp { to { transform: translateY(0); } }

.hero__sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(15px, 2.2vw, 19px);
  margin: 22px auto 0;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.6s forwards;
}
/* single line wherever it can physically fit; wraps only on small phones */
@media (min-width: 700px) {
  .hero__sub { white-space: nowrap; max-width: none; }
}
@keyframes fadeIn { to { opacity: 1; } }

.hero__cta {
  margin-top: 36px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 2s forwards;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 32px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  will-change: transform;
  transition: transform 0.2s ease-out, background 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--glow { animation: goldGlow 3s ease-in-out infinite; }
@keyframes goldGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.45); }
  50% { box-shadow: 0 0 32px 6px rgba(var(--gold-rgb), 0.18); }
}
.btn__arrow { transition: transform 0.25s ease-out; display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn--outline:hover { background: var(--gold); color: var(--navy); }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 2.4s forwards;
}
.hero__scroll-text {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
}
.hero__chevron { animation: chevronBounce 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; }
@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(8px); }
}

/* ============================================================
   SPLIT TEXT + REVEALS
   ============================================================ */
.split-text .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-text .w__inner {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-out-expo);
  transition-delay: calc(var(--wi) * 0.08s);
}
.split-text.in .w__inner { transform: translateY(0); }

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   PRODUCTS — category cards
   ============================================================ */
.products { background: var(--navy-deep); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: var(--navy);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: 12px;
  padding: 32px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.4s var(--ease-out), transform 0.15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
.js .card {
  opacity: 0;
  scale: 0.9;
  transition: opacity 0.6s var(--ease-out), scale 0.6s var(--ease-out),
              box-shadow 0.4s var(--ease-out), transform 0.15s ease-out;
  transition-delay: calc(var(--i) * 0.1s), calc(var(--i) * 0.1s), 0s, 0s;
}
.js .card.in { opacity: 1; scale: 1; }
.card:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); }

.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(14px) saturate(0.3);
  transform: scale(1.15);
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}
.card__img.loaded { opacity: 0.1; filter: blur(0) saturate(0.3); transform: scale(1); }

.card__body { position: relative; z-index: 1; }
.card__icon { display: inline-flex; margin-bottom: 18px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: rgba(255, 255, 255, 0.6); margin-bottom: 18px; }

.card__link {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card__link span { transition: transform 0.25s ease-out; }
.card__link:hover span { transform: translateX(4px); }

.card__line {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.card:hover .card__line { transform: scaleX(1); }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), 0.35);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleGo 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 2;
}
@keyframes rippleGo {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

@media (max-width: 1024px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .card { padding: 22px; } }
@media (max-width: 420px) { .card h3 { font-size: 16px; } .card p { font-size: 13px; } }

/* ============================================================
   LOGISTICS
   ============================================================ */
.logistics { background: linear-gradient(180deg, var(--navy-deep) 0%, #14213A 100%); }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
  padding: 24px 0 56px;
}
.steps__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.step { text-align: center; padding: 0 12px; position: relative; }
.step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
/* sonar ring while a vehicle is at this stop */
.step__icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(var(--gold-rgb), 0.7);
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}
.step.is-ringing .step__icon { border-color: rgba(var(--gold-rgb), 0.6); }
.step.is-ringing .step__icon::after {
  animation: stepRing 1.1s ease-out infinite;
}
@keyframes stepRing {
  0% { opacity: 0.8; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.45); }
}
.step__icon .draw {
  stroke-dasharray: var(--len, 200);
  stroke-dashoffset: var(--len, 200);
}
.step.is-active .step__icon .draw {
  animation: iconDraw 0.8s var(--ease-out) forwards;
}
@keyframes iconDraw { to { stroke-dashoffset: 0; } }

.step h3, .step p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.step p { transition-delay: 0.12s; font-size: 15px; color: rgba(255, 255, 255, 0.65); max-width: 280px; margin: 8px auto 0; }
.step h3 { font-size: 19px; transition-delay: 0.25s; }
.step.is-active h3, .step.is-active p { opacity: 1; transform: translateY(0); }

.steps__check {
  position: absolute;
  right: -8px;
  top: 34px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  z-index: 2;
  box-shadow: 0 6px 18px rgba(var(--gold-rgb), 0.35);
}
.steps__check.pop { animation: elasticPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes elasticPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps__check { right: auto; left: 50%; top: auto; bottom: -22px; margin-left: -22px; }
}

/* ============================================================
   WHY
   ============================================================ */
.why { background: var(--navy-deep); }
/* "Kinsupplies" rendered in the logo's two-tone colours */
.brand-name__kin { color: var(--white); }
.brand-name__sup { color: var(--gold); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--navy);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: 12px;
  padding: 36px 32px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              opacity 0.8s var(--ease-out);
  will-change: transform;
}
.js .why-card.reveal { transition-delay: calc(var(--i) * 0.08s); }
.why-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.3);
}
.why-card__icon {
  display: inline-flex;
  margin-bottom: 16px;
  transition: transform 0.6s var(--ease-out);
}
.why-card:hover .why-card__icon { transform: rotate(360deg); }
.why-card__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.why-card__num--word { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.why-card h3 { font-size: 18px; margin-bottom: 6px; }
.why-card p { font-size: 14px; color: rgba(255, 255, 255, 0.6); }

.why-legend {
  margin-top: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.why-legend i { color: var(--gold); margin: 0 14px; font-style: normal; }

@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } .why-legend i { margin: 0 8px; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: linear-gradient(180deg, var(--navy-deep) 0%, #131F38 100%); }
.about__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__body {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.6;
  margin: 24px 0 32px;
  max-width: 480px;
}
.about__img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  will-change: transform;
}
.about__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.blur-up {
  filter: blur(16px);
  transform: scale(1.06);
  transition: filter 0.8s ease, transform 0.8s ease;
}
.blur-up.loaded { filter: blur(0); transform: scale(1); }

/* ---- Staggered flip-card brand gallery ---- */
.about__media { text-align: center; }
.flip-gallery__hint {
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  opacity: 0.8;
  margin-bottom: 8px;
}
.flip-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 34px 0 74px; /* room for the wave offset */
}
.flip-card {
  width: 124px;
  height: 170px;
  perspective: 900px;
  cursor: pointer;
  outline: none;
}
.flip-card:nth-child(even) { transform: translateY(48px); } /* wave */
.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.flip-card:hover .flip-card__inner,
.flip-card:focus-visible .flip-card__inner,
.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg) scale(1.08);
}
.flip-card__face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.flip-card__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flip-card__back {
  transform: rotateY(180deg);
  background: rgba(27, 42, 74, 0.97);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.flip-card__back h4 { color: var(--gold); font-size: 15px; margin-bottom: 8px; }
.flip-card__back p { color: rgba(255, 255, 255, 0.7); font-size: 11.5px; line-height: 1.45; }
@media (max-width: 900px) {
  .flip-card { width: 104px; height: 146px; }
  .flip-card:nth-child(even) { transform: translateY(30px); }
  .flip-gallery { gap: 12px; padding-bottom: 54px; }
}

@media (max-width: 900px) {
  .about__cols { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--navy-deep); }
.contact__cols {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 56px;
  align-items: start;
}

.form-stage { position: relative; overflow: hidden; }

.contact-form {
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.form-stage.sent .contact-form {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.field { position: relative; margin-bottom: 30px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 2px 10px;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  resize: vertical;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--navy); color: var(--white); }
.field label {
  position: absolute;
  left: 2px;
  top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: transform 0.3s var(--ease-out), font-size 0.3s var(--ease-out), color 0.3s;
  transform-origin: left top;
}
.field input:focus ~ label,
.field textarea:focus ~ label,
.field select:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field.has-value label {
  transform: translateY(-24px);
  font-size: 12px;
  color: var(--gold);
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--gold); }
.field__caret {
  position: absolute;
  right: 4px; top: 14px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.btn--submit {
  width: 100%;
  overflow: hidden;
}
.btn--submit .btn__spinner,
.btn--submit .btn__check {
  position: absolute;
  opacity: 0;
}
.btn--submit .btn__spinner circle {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.btn--submit.is-loading { pointer-events: none; }
.btn--submit.is-loading .btn__label { opacity: 0; }
.btn--submit.is-loading .btn__spinner {
  opacity: 1;
  animation: spinnerSpin 1.5s linear infinite;
}
.btn--submit.is-loading .btn__spinner circle {
  animation: spinnerDraw 1.5s ease-in-out infinite;
}
@keyframes spinnerSpin { to { transform: rotate(360deg); } }
@keyframes spinnerDraw {
  0% { stroke-dashoffset: 100; }
  60% { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: 100; }
}
.btn--submit.is-done .btn__label,
.btn--submit.is-done .btn__spinner { opacity: 0; animation: none; }
.btn--submit.is-done .btn__check {
  opacity: 1;
  animation: elasticPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.form-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out) 0.15s, opacity 0.5s var(--ease-out) 0.15s;
  pointer-events: none;
}
.form-stage.sent .form-success { transform: translateX(0); opacity: 1; }
.form-success p { font-size: 17px; max-width: 320px; }

.form-success__burst { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
.burst-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: burstOut 1s ease-out forwards;
}
@keyframes burstOut {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)) scale(0.4); opacity: 0; }
}

.contact__list { list-style: none; display: flex; flex-direction: column; gap: 26px; margin-bottom: 36px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  flex-shrink: 0;
}
.contact__list strong { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.contact__list a { color: var(--gold); }
.contact__list a:hover { text-decoration: underline; }

/* ---- Current location widget ---- */
.loc-widget-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* flush with the contact list */
}
.loc-widget__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 12px;
}
.loc-widget {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 22, 38, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  padding: 18px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  outline: none;
  transition: height 0.5s cubic-bezier(0.34, 1.3, 0.64, 1), transform 0.3s var(--ease-out),
              background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.loc-widget:hover,
.loc-widget:focus-visible {
  background: rgba(24, 34, 56, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border-color: rgba(var(--gold-rgb), 0.25);
}
.loc-widget.open { height: 320px; }

.loc-widget__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.loc-widget__icon { display: inline-flex; }
.loc-widget__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
}
.loc-widget__live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  50% { transform: scale(1.25); opacity: 0.7; box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}

.loc-widget__map {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 14px 0 12px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.45s ease 0.1s;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 42px),
    rgba(255, 255, 255, 0.02);
}
.loc-widget.open .loc-widget__map { opacity: 1; }
.loc-widget__map .b {
  position: absolute;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
}
.loc-widget__pin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  opacity: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}
.loc-widget.open .loc-widget__pin {
  animation: pinDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards;
}
@keyframes pinDrop {
  0% { opacity: 0; transform: translate(-50%, -230%); }
  60% { opacity: 1; transform: translate(-50%, -88%); }
  100% { opacity: 1; transform: translate(-50%, -100%); }
}

.loc-widget__bottom { margin-top: auto; flex-shrink: 0; }
.loc-widget__name {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--gold);
}
.loc-widget__coords {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease 0.15s, max-height 0.4s ease;
}
.loc-widget.open .loc-widget__coords { opacity: 1; max-height: 20px; }
.loc-widget__hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 12px;
}

@media (max-width: 900px) {
  .contact__cols { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0B1424;
  padding: 72px 0 40px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  text-align: center;
}
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}
.js .footer__links a {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
  transition-delay: calc(var(--i) * 0.03s);
}
.js .footer.in .footer__links a { opacity: 1; transform: translateY(0); }
.footer__links a:hover { color: var(--gold); }

.footer__logo {
  display: flex;
  align-items: center;
  animation: breathe 4s ease-in-out infinite;
}
.footer__logo img { width: 140px; height: auto; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.footer__social { display: flex; gap: 22px; }
.footer__social a {
  color: var(--gold);
  display: inline-flex;
  transition: transform 0.3s var(--ease-out);
}
.footer__social a:hover { transform: scale(1.2) rotate(10deg); }

.footer__copy { color: rgba(255, 255, 255, 0.4); font-size: 12px; }
.footer__admin { color: rgba(255, 255, 255, 0.35); text-decoration: underline dotted; }
.footer__admin:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE / MOTION
   ============================================================ */
@media (max-width: 767px) {
  .section { padding: 80px 0; }
  .about__body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.3s !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .card, .split-text .w__inner,
  .hero__line-inner, .hero__sub, .hero__cta, .hero__scroll,
  .step h3, .step p, .js .footer__links a, .mobile-menu a {
    opacity: 1 !important;
    transform: none !important;
  }
  .cursor { display: none !important; }
}
