/* ============================================
   МІЙ КУРС — Black & red editorial system
============================================ */

:root {
  --ink: #050505;
  --ink-2: #0e0e0e;
  --ink-3: #171717;
  --fog: #f4f4f4;
  --fog-2: #e8e8e8;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(0, 0, 0, 0.1);
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --text-dark: #0a0a0a;
  --muted-dark: #5c5c5c;
  --accent: #e11d2e;
  --accent-hot: #ff2a3a;
  --accent-ink: #ffffff;
  --accent-glow: rgba(225, 29, 46, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1120px;
  --header: 88px;
  --font: 'Instrument Sans', system-ui, sans-serif;
  --display: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.site-header__inner {
  width: min(100% - 2rem, var(--wrap));
  margin: 0 auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.site-logo img {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.site-nav a,
.site-nav__drop-btn {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: rgba(244, 246, 248, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav__drop-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.site-nav__drop {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: -0.5rem;
}

.site-nav__drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 0.45rem;
  padding-top: calc(0.45rem + 0.35rem);
  margin-top: 0;
  border-radius: 14px;
  background: #111;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  z-index: 50;
}

/* Invisible bridge so cursor doesn't leave hover zone */
.site-nav__drop-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -0.55rem;
  height: 0.55rem;
}

.site-nav__drop:hover .site-nav__drop-menu,
.site-nav__drop:focus-within .site-nav__drop-menu {
  display: grid;
}

.site-nav__drop-menu a {
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}

.site-header .site-btn--sm {
  display: none;
  margin-left: 0.5rem;
}

.site-burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
}

.site-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
}

.site-nav.is-open {
  display: flex;
  position: fixed;
  inset: var(--header) 1rem auto;
  flex-direction: column;
  align-items: stretch;
  padding: 1rem;
  border-radius: 18px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  z-index: 45;
}

@media (min-width: 960px) {
  .site-nav { display: flex; }
  .site-burger { display: none; }
  .site-header .site-btn--sm { display: inline-flex; }
}

/* Buttons */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
}

.site-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-hot);
}

.site-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.site-btn--ghost:hover {
  border-color: var(--accent-hot);
  background: rgba(225, 29, 46, 0.12);
  color: #fff;
}

.site-btn--sm {
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: end;
  padding: calc(var(--header) + 3rem) 0 0;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050505;
  will-change: transform, opacity;
}

.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media video { z-index: 1; }
.hero__media img {
  z-index: 0;
  animation: ken 28s ease-in-out infinite alternate;
}

.hero__media.is-fallback video {
  opacity: 0 !important;
}

.hero__media.is-fallback img {
  z-index: 2;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 38%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 55%, transparent 100%),
    radial-gradient(70% 55% at 70% 40%, rgba(225, 29, 46, 0.22), transparent 60%);
}

.hero__layout,
.hero__meta {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  will-change: transform, opacity;
}

.hero__layout {
  padding-bottom: 1.5rem;
}

.hero__meta {
  margin-top: 2.2rem;
  margin-bottom: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__eyebrow {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__brand {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.2rem, 14vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero__brand .hero__line:last-child .char {
  color: var(--accent-hot);
}

.hero__brand span { display: block; }

.hero__lead {
  margin: 0;
  max-width: 32rem;
  color: rgba(244, 246, 248, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero__meta strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
}

.hero__meta span {
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes ken {
  from { transform: scale(1.04); }
  to { transform: scale(1.12) translate(-1%, -1%); }
}

/* Entrance */
[data-in] {
  opacity: 0;
  transform: translateY(24px);
}

.hero.is-ready [data-in] {
  animation: rise 0.9s var(--ease) forwards;
}

.hero.is-ready .hero__eyebrow { animation-delay: 0.05s; }
.hero.is-ready .hero__brand { animation-delay: 0.15s; }
.hero.is-ready .hero__lead { animation-delay: 0.3s; }
.hero.is-ready .hero__cta { animation-delay: 0.42s; }
.hero.is-ready .hero__meta { animation-delay: 0.55s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Ticker */
.ticker {
  overflow: hidden;
  border-block: 1px solid rgba(225, 29, 46, 0.28);
  background: rgba(225, 29, 46, 0.07);
  padding: 0.95rem 0;
}

.ticker--hero {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
  border-bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.ticker__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: tick 26s linear infinite;
}

.ticker__track span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(244, 246, 248, 0.5);
}

@keyframes tick {
  to { transform: translateX(-50%); }
}

.block--about {
  padding-top: clamp(3rem, 7vw, 5rem);
}

/* Blocks */
.block {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.block--cream {
  background: var(--fog);
  color: var(--text-dark);
}

.block__head { margin-bottom: 2.2rem; max-width: 40rem; }

.label {
  margin: 0 0 0.8rem;
  color: #8a8a8a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.label--mint { color: var(--accent-hot); }

.heading {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.heading--light { color: #fff; }

.text {
  margin: 0;
  color: var(--muted-dark);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 36rem;
}

.text--dim { color: var(--muted); }

/* Split about */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.checklist {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.25);
}

.split__visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #d8dee8;
}

.split__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.split__visual:hover img { transform: scale(1.04); }

.split__chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.split__chip b {
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.1rem;
}

/* Flow */
.flow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 1rem;
  overflow-x: auto;
  padding: 0 max(1.25rem, calc((100vw - var(--wrap)) / 2)) 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.flow__card {
  scroll-snap-align: start;
  position: relative;
  min-height: 390px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}

.flow__card:hover {
  transform: translateY(-8px);
  border-color: rgba(225, 29, 46, 0.4);
}

.flow__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.flow__card:hover img { transform: scale(1.06); }

.flow__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.92));
}

.flow__num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--accent);
}

.flow__body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1.25rem;
}

.flow__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: #fff;
}

.flow__body p {
  margin: 0;
  color: rgba(244, 246, 248, 0.72);
  line-height: 1.45;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 1rem;
}

.bento__item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1.4rem;
  background: #111;
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
  color: #fff;
  isolation: isolate;
}

.bento__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 0.7s var(--ease);
}

.bento__item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

.bento__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.bento__item:hover .bento__img {
  transform: scale(1.1);
}

.bento__item--lg {
  grid-row: span 2;
  border: 0;
  min-height: 0;
}

.bento__tag,
.bento__item h3,
.bento__item p {
  position: relative;
  z-index: 2;
}

.bento__tag {
  margin-bottom: auto;
  color: var(--accent-hot);
  font-weight: 700;
  font-size: 0.85rem;
}

.bento__item--lg .bento__tag { color: var(--accent-hot); }

.bento__item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  color: #fff;
}

.bento__item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.bento__item--lg p { color: rgba(244, 246, 248, 0.78); }

/* Calc */
.calc {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(225, 29, 46, 0.1), transparent 55%),
    var(--ink-2);
}

.calc__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.calc__form label {
  display: grid;
  gap: 0.4rem;
}

.calc__form label span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.calc__form input,
.calc__form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 0.85rem 0.95rem;
}

.calc__form input:focus,
.calc__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.15);
}

.calc__full { grid-column: 1 / -1; }
.calc__submit { grid-column: 1 / -1; width: 100%; margin-top: 0.35rem; }

/* Quotes */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.quote {
  margin: 0;
  padding: 1.5rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line-dark);
}

.quote p {
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--text-dark);
}

.quote cite {
  font-style: normal;
  color: var(--muted-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Info links */
.info-row {
  display: grid;
  gap: 1.5rem;
}

.info-links {
  display: grid;
  gap: 0.75rem;
}

.info-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.35rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.15rem;
  font-weight: 600;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}

.info-links a:hover {
  border-color: rgba(225, 29, 46, 0.45);
  background: rgba(225, 29, 46, 0.06);
  transform: translateX(4px);
}

.info-links span { color: var(--accent); }

/* Finale */
.finale {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(700px 280px at 20% 50%, rgba(225, 29, 46, 0.22), transparent 55%),
    radial-gradient(500px 220px at 90% 80%, rgba(225, 29, 46, 0.1), transparent 50%),
    #080808;
  border-top: 1px solid rgba(225, 29, 46, 0.22);
}

.finale__inner { max-width: 40rem; }

.finale h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  color: #fff;
}

.finale p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: #000;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer__logo {
  height: 34px;
  width: auto;
  margin-bottom: 0.8rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer h4 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  transition: color 0.25s ease;
}

.site-footer a:hover { color: var(--accent); }

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.85rem;
}

/* Reveal — CSS fallback when GSAP absent */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: 0.08s;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.has-lenis [data-reveal] {
  transition: none;
}

[data-tilt] {
  transform-style: preserve-3d;
}

/* Responsive */
@media (max-width: 960px) {
  .split,
  .calc,
  .quotes,
  .bento,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-rows: none;
  }

  .bento__item--lg {
    grid-row: auto;
    min-height: 280px;
  }

  .split__visual { aspect-ratio: 16 / 10; }

  .hero__meta { grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }

  .calc__form { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .site-btn { width: 100%; }
  .hero__brand { font-size: clamp(3.4rem, 18vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  [data-in],
  [data-reveal],
  .ticker__track,
  .hero__media img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .scroll-progress,
  .cursor { display: none !important; }
}

/* ============================================
   Motion layer — cursor, progress, sticky journey
============================================ */

html.has-cursor,
html.has-cursor body {
  cursor: none;
}

html.has-cursor a,
html.has-cursor button,
html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select,
html.has-cursor label,
html.has-cursor [role="button"],
html.has-cursor [data-magnetic],
html.has-cursor [data-tilt] {
  cursor: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  pointer-events: none;
}

.cursor {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  display: none;
}

@media (pointer: fine) {
  .cursor { display: block; }
}

.cursor__dot,
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  will-change: transform;
}

.cursor__dot {
  width: 8px;
  height: 8px;
  background: var(--accent-hot);
  box-shadow: 0 0 20px rgba(225, 29, 46, 0.7);
}

.cursor__ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(225, 29, 46, 0.65);
  background: rgba(225, 29, 46, 0.06);
  box-shadow: 0 0 28px rgba(225, 29, 46, 0.22);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.12s linear;
}

.cursor.is-hover .cursor__ring {
  width: 72px;
  height: 72px;
  border-color: rgba(255, 42, 58, 0.95);
  background: rgba(225, 29, 46, 0.16);
  box-shadow: 0 0 40px rgba(225, 29, 46, 0.4);
}

.cursor.is-hover .cursor__dot {
  box-shadow: 0 0 28px rgba(225, 29, 46, 0.9);
}

.hero__brand .hero__line {
  display: block;
  overflow: hidden;
  line-height: 0.9;
}

.hero__brand .char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero__scroll {
  position: relative;
  z-index: 3;
  width: 28px;
  height: 44px;
  margin: 0.5rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  transition: opacity 0.35s ease;
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: scroll-dot 1.4s var(--ease) infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

.hero__media {
  will-change: transform;
}

[data-magnetic] {
  transition: transform 0.25s var(--ease), background 0.3s ease, border-color 0.3s ease;
}

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

[data-glow] {
  position: relative;
  overflow: hidden;
}

[data-glow]::before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--gx, 50%) var(--gy, 30%),
    rgba(225, 29, 46, 0.18),
    transparent 45%
  );
  opacity: 0.9;
  z-index: 0;
}

[data-glow] > * {
  position: relative;
  z-index: 1;
}

/* Sticky journey stack */
.journey {
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--ink);
}

.journey__head {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.journey__stack {
  width: min(100% - 2rem, 980px);
  margin: 0 auto;
  display: grid;
  gap: 10vh;
  padding-bottom: 8vh;
}

.journey__card {
  position: sticky;
  top: 18vh;
  height: min(42vh, 360px);
  min-height: 280px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0a0a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.journey__media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #1a1a1a;
}

.journey__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey__veil {
  display: none;
}

.journey__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
  background:
    linear-gradient(160deg, rgba(225, 29, 46, 0.16), transparent 42%),
    #121212;
}

.journey__num {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1;
  color: var(--accent-hot);
}

.journey__content h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: #fff;
  letter-spacing: -0.02em;
}

.journey__content p {
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.5;
}

.bento__item {
  will-change: transform;
}

.info-links a span {
  transition: transform 0.3s var(--ease);
}

.info-links a:hover span {
  transform: translateX(6px);
}

.quote {
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}

.quote:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 20, 28, 0.2);
}

@media (max-width: 860px) {
  .journey__card {
    grid-template-columns: 1fr;
    top: 12vh;
    height: auto;
    min-height: 0;
  }

  .journey__media {
    aspect-ratio: 16 / 9;
    min-height: 160px;
  }

  .journey__stack {
    gap: 8vh;
  }
}

@media (max-width: 960px) {
  html.has-cursor,
  html.has-cursor body,
  html.has-cursor a,
  html.has-cursor button {
    cursor: auto;
  }

  .cursor { display: none !important; }
}

/* ============================================
   Inner pages — hero, prose, tables, forms
============================================ */

.page-hero {
  padding: calc(var(--header) + 3.5rem) 0 3.5rem;
  background:
    radial-gradient(600px 280px at 80% 0%, rgba(225, 29, 46, 0.1), transparent 55%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  max-width: 44rem;
}

.page-hero__eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.page-hero__title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
}

.page-hero__lead {
  margin: 0;
  max-width: 36rem;
  color: rgba(244, 246, 248, 0.72);
  font-size: 1.12rem;
  line-height: 1.6;
}

/* Prose */
.prose {
  max-width: 46rem;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.prose h2 {
  margin: 2.2rem 0 0.9rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.prose h3 {
  margin: 1.6rem 0 0.7rem;
  font-size: 1.45rem;
}

.prose h4 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  font-size: 1.05rem;
  line-height: 1.7;
}

.prose p { margin: 0 0 1rem; }

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
}

.prose li { margin-bottom: 0.45rem; }

.prose strong { font-weight: 700; }

.block--cream .prose h2,
.block--cream .prose h3,
.block--cream .prose h4,
.block--cream .prose p,
.block--cream .prose li {
  color: var(--text-dark);
}

.block--cream .prose p,
.block--cream .prose li {
  color: var(--muted-dark);
}

.block:not(.block--cream) .prose h2,
.block:not(.block--cream) .prose h3,
.block:not(.block--cream) .prose h4 {
  color: #fff;
}

.block:not(.block--cream) .prose p,
.block:not(.block--cream) .prose li {
  color: var(--muted);
}

.block:not(.block--cream) .prose strong {
  color: #fff;
}

/* Spec cards */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.spec-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.spec-card {
  border-radius: 22px;
  border: 1px solid var(--line-dark);
  background: #fff;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 20, 28, 0.08);
}

.spec-card--wide { grid-column: 1 / -1; }

.spec-card__head {
  padding: 1.15rem 1.25rem;
  background: var(--ink-2);
  color: #fff;
}

.spec-card__head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.spec-card__tag {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.spec-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.95rem;
}

.spec-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-row dt {
  margin: 0;
  color: var(--muted-dark);
  font-weight: 500;
}

.spec-row dd {
  margin: 0;
  color: var(--text-dark);
  font-weight: 700;
  text-align: right;
}

/* Scheme / info cards */
.scheme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.scheme-card,
.info-panel {
  padding: 1.4rem 1.5rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.scheme-card h4,
.info-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  color: #fff;
}

.scheme-card p,
.scheme-card li,
.info-panel p,
.info-panel li {
  color: var(--muted);
  line-height: 1.6;
}

.scheme-card ul,
.info-panel ul,
.info-panel ol {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.block--cream .scheme-card,
.block--cream .info-panel {
  background: #fff;
  border-color: var(--line-dark);
}

.block--cream .scheme-card h4,
.block--cream .info-panel h3 {
  color: var(--text-dark);
}

.block--cream .scheme-card p,
.block--cream .scheme-card li,
.block--cream .info-panel p,
.block--cream .info-panel li {
  color: var(--muted-dark);
}

.block--cream .scheme-card strong,
.block--cream .info-panel strong {
  color: var(--text-dark);
}

.info-panel a:hover,
.scheme-card a:hover {
  color: var(--accent);
}

/* Data tables */
.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.block--cream .table-wrap {
  border-color: var(--line-dark);
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.block--cream .data-table th,
.block--cream .data-table td {
  border-bottom-color: var(--line-dark);
}

.data-table th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.data-table td {
  color: var(--muted);
}

.block--cream .data-table td {
  color: var(--muted-dark);
}

.data-table tbody tr:last-child td { border-bottom: 0; }

/* Callouts */
.callout {
  margin: 1.2rem 0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1rem;
  line-height: 1.55;
}

.callout--info {
  border-color: rgba(225, 29, 46, 0.35);
  background: rgba(225, 29, 46, 0.08);
  color: #fff;
}

.callout--warn {
  border-color: rgba(255, 180, 60, 0.35);
  background: rgba(255, 180, 60, 0.08);
  color: #fff;
}

.block--cream .callout {
  border-color: var(--line-dark);
  background: var(--fog-2);
  color: var(--text-dark);
}

.block--cream .callout--info {
  border-color: rgba(16, 20, 28, 0.12);
  background: rgba(225, 29, 46, 0.35);
}

.block--cream .callout--warn {
  border-color: rgba(200, 120, 0, 0.25);
  background: rgba(255, 200, 80, 0.2);
}

/* Feature cards (heavy cargo) */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feat-card {
  padding: 1.35rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.feat-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  color: #fff;
}

.feat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(225, 29, 46, 0.1), transparent 55%),
    var(--ink-2);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
}

.contact-form label span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 0.85rem 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.15);
}

.contact-form__full { grid-column: 1 / -1; }

.contact-form__submit {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0.35rem;
}

.contact-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line-dark);
  background: #fff;
}

.contact-card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.contact-card p,
.contact-card a {
  margin: 0;
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 500;
}

.contact-card a:hover { color: var(--accent); }

.site-map {
  width: 100%;
  min-height: 380px;
  border: 0;
  display: block;
  filter: grayscale(0.35) contrast(1.05);
}

.calc-notice {
  position: fixed;
  top: calc(var(--header) + 1rem);
  right: 1rem;
  z-index: 60;
  max-width: 22rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(225, 29, 46, 0.4);
  background: #0a0a0a;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: rise 0.5s var(--ease) forwards;
}

/* 404 */
.error-page {
  min-height: calc(100vh - var(--header));
  min-height: calc(100dvh - var(--header));
  display: grid;
  place-items: center;
  padding: calc(var(--header) + 3rem) 0 4rem;
  text-align: center;
}

.error-page__code {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 1;
  color: var(--accent);
}

.error-page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
}

.error-page p {
  margin: 0 auto 1.6rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.error-page__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Media figure */
.media-figure {
  margin: 1.5rem 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.media-figure img {
  width: 100%;
  height: auto;
}

.media-figure figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

/* Inner page responsive */
@media (max-width: 960px) {
  .spec-grid,
  .spec-grid--2,
  .scheme-grid,
  .feat-grid,
  .contact-layout,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-form { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .error-page__cta { flex-direction: column; align-items: stretch; }
}

/* ============================================
   Dock scene — continuous sticky scrub
============================================ */

.dock {
  position: relative;
  height: 260vh;
  background: #050505;
  border-block: 1px solid rgba(225, 29, 46, 0.2);
  overflow-anchor: none;
}

.dock__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header) + 0.75rem) 1rem 1rem;
  background: #050505;
}

.dock__hud {
  position: absolute;
  right: clamp(0.8rem, 2.5vw, 1.5rem);
  bottom: clamp(3.2rem, 8vh, 5.5rem);
  z-index: 7;
  width: min(100% - 2rem, 340px);
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.dock__title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}

.dock__text {
  margin: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}

.dock__steps {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.dock__steps span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(225, 29, 46, 0.55);
  background: transparent;
  transition: background 0.25s ease, transform 0.25s ease;
}

.dock__steps span.is-active {
  background: var(--accent-hot);
  transform: scale(1.25);
}

.dock__stage {
  position: relative;
  width: min(100%, 1100px);
  height: min(72vh, 580px);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  isolation: isolate;
}

.dock__sky {
  position: absolute;
  inset: 0 0 38% 0;
  background:
    radial-gradient(60% 80% at 70% 20%, rgba(225, 29, 46, 0.18), transparent 55%),
    linear-gradient(180deg, #151515 0%, #0a0a0a 100%);
}

.dock__warehouse {
  position: absolute;
  left: 0;
  bottom: 28%;
  width: 42%;
  height: 58%;
  background: linear-gradient(90deg, #1c1c1c 0%, #121212 70%, #0d0d0d 100%);
  border-right: 3px solid #2a2a2a;
  box-shadow: inset -40px 0 60px rgba(0, 0, 0, 0.45);
}

.dock__warehouse::before {
  content: '';
  position: absolute;
  inset: 8% 10% 18% auto;
  width: 18%;
  background: repeating-linear-gradient(
    180deg,
    #2a2a2a 0 10px,
    #1a1a1a 10px 22px
  );
  opacity: 0.7;
}

.dock__bay {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 72%;
  background: linear-gradient(180deg, #2a1216 0%, #12080a 100%);
  border: 2px solid #3a3a3a;
  border-right: 0;
  box-shadow: inset 0 0 40px rgba(225, 29, 46, 0.15);
}

.dock__door {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28%;
  height: 72%;
  background: linear-gradient(90deg, #333 0%, #1a1a1a 100%);
  border-left: 2px solid #444;
  transform-origin: right center;
  z-index: 2;
}

.dock__ramp {
  position: absolute;
  right: -2%;
  bottom: -2%;
  width: 34%;
  height: 14%;
  z-index: 3;
  background: linear-gradient(180deg, #3a3a3e 0%, #252528 55%, #1a1a1c 100%);
  border: 1px solid #4a4a50;
  border-right: 0;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.45);
  clip-path: polygon(0 35%, 12% 0, 100% 0, 100% 100%, 0 100%);
}

.dock__ramp::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 8%;
  top: 38%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(225, 29, 46, 0.75) 0 10px,
    rgba(255, 255, 255, 0.35) 10px 20px
  );
  opacity: 0.7;
}

.dock__sign {
  position: absolute;
  top: 10%;
  left: 8%;
  color: var(--accent-hot);
  font-size: clamp(0.65rem, 1.4vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  z-index: 2;
}

.dock__load {
  position: absolute;
  top: 9%;
  left: calc(8% + 5.5rem);
  z-index: 3;
  width: min(42%, 168px);
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.dock__load-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.dock__load-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.dock__load-pct {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.dock__load-track {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.dock__load-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9c111e, var(--accent-hot));
  box-shadow: 0 0 10px rgba(225, 29, 46, 0.45);
  will-change: width;
}

.dock__load-steps {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.22rem;
}

.dock__load-steps li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s ease;
}

.dock__load-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(225, 29, 46, 0.4);
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dock__load-steps li.is-done {
  color: rgba(255, 255, 255, 0.55);
}

.dock__load-steps li.is-done::before {
  background: rgba(225, 29, 46, 0.55);
  border-color: rgba(225, 29, 46, 0.55);
}

.dock__load-steps li.is-active {
  color: #fff;
}

.dock__load-steps li.is-active::before {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
  box-shadow: 0 0 8px rgba(225, 29, 46, 0.7);
}

.dock__hint {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transform: translateX(-50%);
  color: #fff;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.dock__hint.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.dock__hint-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
}

.dock__hint-mouse i {
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-hot);
  animation: dock-scroll-hint 1.3s var(--ease) infinite;
}

.dock__hint-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

@keyframes dock-scroll-hint {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

.dock__ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

.dock__road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    #555 0 28px,
    transparent 28px 48px
  );
  opacity: 0.55;
}

.dock__pallet {
  position: absolute;
  left: 8%;
  bottom: 38%;
  width: 120px;
  height: 90px;
  z-index: 4;
}

.dock__box {
  position: absolute;
  width: 42px;
  height: 34px;
  border-radius: 4px;
  background:
    linear-gradient(145deg, #c9a26b 0%, #a67c42 55%, #8a6232 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 2px 3px 0 rgba(0, 0, 0, 0.35);
}

.dock__box::after {
  content: '';
  position: absolute;
  inset: 40% 8% auto;
  height: 2px;
  background: rgba(0, 0, 0, 0.25);
}

.dock__box:nth-child(1) { left: 8px; bottom: 8px; }
.dock__box:nth-child(2) { left: 54px; bottom: 8px; }
.dock__box:nth-child(3) { left: 100px; bottom: 8px; }
.dock__box:nth-child(4) { left: 20px; bottom: 44px; }
.dock__box:nth-child(5) { left: 66px; bottom: 44px; }
.dock__box:nth-child(6) { left: 48px; bottom: 78px; }

.dock__truck {
  position: absolute;
  left: -2%;
  bottom: 12%;
  width: min(66%, 600px);
  z-index: 5;
  will-change: transform;
}

.dock__truck-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
}

.dock__cargo-stack {
  position: absolute;
  left: 8%;
  top: 28%;
  width: 48%;
  height: 42%;
  pointer-events: none;
}

.dock__box--loaded {
  opacity: 0;
  width: 18%;
  height: 28%;
  position: absolute;
}

.dock__box--loaded:nth-child(1) { left: 4%; bottom: 8%; }
.dock__box--loaded:nth-child(2) { left: 26%; bottom: 8%; }
.dock__box--loaded:nth-child(3) { left: 48%; bottom: 8%; }
.dock__box--loaded:nth-child(4) { left: 14%; bottom: 42%; }
.dock__box--loaded:nth-child(5) { left: 36%; bottom: 42%; }
.dock__box--loaded:nth-child(6) { left: 26%; bottom: 74%; }

.dock__dust {
  position: absolute;
  left: 0;
  bottom: 18%;
  width: 120px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

@media (max-width: 760px) {
  .dock { height: 220vh; }
  .route { height: 170vh; }

  .dock__warehouse { width: 48%; }

  .dock__truck {
    width: 84%;
    left: -6%;
  }

  .dock__pallet {
    left: 6%;
    bottom: 32%;
    transform: scale(0.85);
    transform-origin: left bottom;
  }

  .dock__hud {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 3.6rem;
    width: auto;
    padding: 0.85rem 1rem;
  }

  .dock__load {
    left: 8%;
    top: calc(10% + 1.35rem);
    width: min(54%, 148px);
    padding: 0.45rem 0.55rem;
  }

  .dock__load-steps {
    display: none;
  }

  .dock__hint-label {
    white-space: normal;
    text-align: center;
    max-width: 16rem;
  }

  .dock__stage {
    height: min(72vh, 560px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock { height: auto; }
  .dock__sticky { position: relative; min-height: 70vh; height: auto; }
  .dock__hint { display: none; }
  .dock__hint-mouse i { animation: none; }
}

/* ============================================
   Route corridor — continuous sticky scrub
============================================ */

.route {
  position: relative;
  height: 200vh;
  background: #050505;
  border-bottom: 1px solid rgba(225, 29, 46, 0.2);
  overflow-anchor: none;
}

.route__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--header) + 1rem) 1.25rem 2rem;
  background:
    radial-gradient(600px 280px at 50% 30%, rgba(225, 29, 46, 0.12), transparent 60%),
    #050505;
}

.route__inner {
  width: min(100%, 980px);
}

.route__copy {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.route__title {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.03em;
}

.route__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.5;
}

.route__track {
  position: relative;
  padding: 2.5rem 0 1rem;
}

.route__line {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 3.15rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.route__progress {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
}

.route__stops {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.route__stop {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease;
}

.route__stop.is-active,
.route__stop.is-passed {
  color: #fff;
}

.route__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: #111;
  box-shadow: 0 0 0 6px rgba(5, 5, 5, 0.9);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.route__stop.is-active .route__dot,
.route__stop.is-passed .route__dot {
  border-color: var(--accent-hot);
  background: var(--accent-hot);
  box-shadow: 0 0 0 6px rgba(5, 5, 5, 0.9), 0 0 18px rgba(225, 29, 46, 0.45);
}

.route__stop strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.route__stop em {
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.7;
}

.route__truck {
  position: absolute;
  top: 1.2rem;
  left: 4%;
  width: 104px;
  margin-left: -52px;
  z-index: 2;
  will-change: left;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.route__truck svg {
  width: 100%;
  height: auto;
  display: block;
}

.route__hint {
  margin: 2rem 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.route__hint.is-hidden {
  opacity: 0;
}

@media (max-width: 700px) {
  .route__stops {
    gap: 0.35rem;
  }

  .route__stop strong {
    font-size: 0.78rem;
  }

  .route__truck {
    width: 82px;
    margin-left: -41px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route { height: auto; }
  .route__pin { position: relative; height: auto; min-height: 70vh; }
}
