/* TWITTER Bikes — local one-page replica. Desktop-first, fullpage snap sections. */

:root {
  --red: #b80906;
  --red-hover: #d41b18;
  --ink: #121212;
  --grey: #9b9b9b;
  --nav-h: 87px;
  --font: "Bahnschrift", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: #000;
  color: #fff;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
img { border: 0; }
a { -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---------------- Fullpage container ---------------- */
#fullpage {
  width: 100%;
  transition: transform .8s cubic-bezier(.645, .045, .355, 1);
  will-change: transform;
}
#fullpage.no-anim { transition: none !important; }

.section { position: relative; height: 100vh; overflow: hidden; }
.section .bg { position: absolute; inset: 0; z-index: 0; }
.section .bg img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Desktop nav ---------------- */
.site-nav {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
  z-index: 102;
  background: transparent;
  transition: background .3s ease;
}
.site-nav:hover { background: #fff; }

.nav-logo {
  position: absolute; left: 0; top: 0; height: var(--nav-h); width: 14%;
  padding-left: 2%; display: flex; align-items: center; z-index: 3;
}
.nav-logo img { display: block; width: 172px; max-width: 100%; }

.nav-menu { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.nav-menu > ul {
  display: flex; justify-content: space-between;
  max-width: 920px; height: 100%; margin: 0 auto; padding: 35px 40px 0;
}
.nav-menu > ul > li { position: relative; }
.nav-menu > ul > li > a {
  color: #fff; text-decoration: none; text-transform: uppercase;
  font-size: 10px; letter-spacing: 3px; position: relative;
  transition: color .3s ease; padding-bottom: 4px;
}
.site-nav:hover .nav-menu > ul > li > a { color: #121212; }
.nav-menu > ul > li > a::after {
  content: ''; position: absolute; left: 0; bottom: -30px; width: 100%; height: 1px;
  background: currentColor; opacity: 0;
  transform: scaleX(0); transform-origin: 0 0;
  transition: transform .6s cubic-bezier(.165, .84, .44, 1), opacity .6s cubic-bezier(.165, .84, .44, 1);
}
.nav-menu > ul > li:hover > a::after { transform: scaleX(1); opacity: 1; }

/* translucent panel that expands under the bar */
.nav-panel {
  position: absolute; top: var(--nav-h); left: 0; width: 100%; height: 0;
  overflow: hidden; background: rgba(255, 255, 255, .6);
  transition: height .35s ease; z-index: 1;
}

/* dropdown columns */
.dropdown {
  position: absolute; left: -4px; top: 52px; z-index: 2;
  min-width: 150px; padding: 26px 4px 18px; text-align: left;
  opacity: 0; visibility: hidden;
  transition: opacity .25s .05s ease, visibility .25s ease;
}
.nav-menu > ul > li:hover .dropdown { opacity: 1; visibility: visible; }
.dropdown li { margin-bottom: 13px; white-space: nowrap; }
.dropdown a {
  color: #737373; font-size: 12px; text-decoration: none; position: relative;
  transition: color .4s ease;
}
.dropdown a::after {
  content: ''; position: absolute; left: -15px; top: 50%; width: 4px; height: 4px;
  margin-top: -2px; border-radius: 50%; background: #121212; opacity: 0;
  transition: left .4s ease, opacity .4s ease;
}
.dropdown a:hover { color: #121212; }
.dropdown a:hover::after { left: -10px; opacity: 1; }
.dropdown--right { left: auto; right: -4px; text-align: right; }
.dropdown--right a::after { display: none; }

.nav-search {
  position: absolute; right: 0; top: 0; height: var(--nav-h);
  padding-right: 2%; display: flex; align-items: center; z-index: 3;
}
.nav-search a { color: #fff; transition: color .3s ease; display: block; line-height: 0; }
.site-nav:hover .nav-search a { color: #121212; }
.nav-search svg { width: 20px; height: 20px; }

/* ---------------- Mobile nav ---------------- */
.mobile-nav { display: none; }

/* ---------------- Section 1: hero ---------------- */
.hero { background: var(--ink); }
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: kenburns 80s ease-in-out infinite;
}
@keyframes kenburns {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.hero-info {
  position: absolute; left: 0; top: 50%; width: 100%; z-index: 2;
  transform: translateY(-50%); text-align: center;
}
.hero-caption {
  font-size: 48px; font-style: italic; text-transform: uppercase;
  color: #fff; margin: 0 0 40px; line-height: normal; font-weight: 700;
}
.btn-more {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  padding: 12px 28px; text-decoration: none; transition: background .3s ease;
}
.btn-more:hover { background: var(--red-hover); }
.btn-more:active { background: #292929; }
.hero-dots {
  position: absolute; bottom: 0; left: 0; width: 100%; z-index: 2;
  padding-bottom: 30px; text-align: center;
}
.hero-dot { display: inline-block; padding: 10px; cursor: pointer; }
.hero-dot i {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid #8e8e8e; background: rgba(0, 0, 0, .3);
  transition: transform .5s, background .5s;
}
.hero-dot.sel i { transform: scale(1.5); background: transparent; }

/* ---------------- Section 2: brand intro ---------------- */
.s2-logo {
  position: absolute; left: 0; bottom: 80px; width: min(892px, 58vw);
  opacity: 0; transition: all 1s; z-index: 1;
}
.s2-logo img { display: block; width: 100%; }
.section.active .s2-logo { margin-left: 10%; opacity: 1; transition-delay: .7s; }

.s2-text {
  position: absolute; top: 42%; left: 50%; width: min(600px, 42vw); z-index: 1;
  margin-left: -100%; font-size: 16px; line-height: 2; color: #fff;
  transition: all 2s;
}
.section.active .s2-text { margin-left: 80px; transition-delay: .7s; }

/* ---------------- Shared section heading ---------------- */
.sec-title {
  position: absolute; left: 50%; top: 15%; z-index: 10;
  width: 680px; margin-left: -340px; margin-top: 60px;
  font-size: 24px; font-weight: 400; color: #fff; text-align: center;
  opacity: 0; transform: scale(.5); transition: all 1s;
}
.section.active .sec-title { opacity: 1; transform: scale(1); transition-delay: .7s; }

/* ---------------- Section 3: three bikes ---------------- */
.prod {
  position: absolute; bottom: 15%; left: 50%; width: 340px; z-index: 1;
  font-size: 16px; color: #fff; opacity: 0; transition: all 1s;
}
.prod img { display: block; width: 100%; }
.prod .label { padding-left: 70px; line-height: 1.7; margin-top: 4px; }
.prod--road { margin-left: -970px; }
.prod--mtb  { margin-left: -180px; }
.prod--fold { margin-left: 630px; }
.section.active .prod--road { margin-left: -570px; opacity: 1; transition-delay: .7s; }
.section.active .prod--mtb  { opacity: 1; transition-delay: .8s; }
.section.active .prod--fold { margin-left: 230px; opacity: 1; transition-delay: .7s; }

/* ---------------- Section 4: four tech features ---------------- */
.section4 { background: #000; }
.feat {
  position: absolute; bottom: 20%; left: 50%; width: 208px; z-index: 1;
  color: #ddd; opacity: 0; transition: all 1s;
}
.feat img { display: block; width: 100%; }
.feat h4 { margin: 16px 0 10px; font-size: 16px; font-weight: 600; color: #fff; line-height: 1.35; }
.feat p { font-size: 12.5px; line-height: 1.65; color: #b9b9b9; }
.feat--1 { margin-left: -851px; }
.feat--2 { margin-left: -403px; }
.feat--3 { margin-left: 195px; }
.feat--4 { margin-left: 645px; }
.section.active .feat--1 { margin-left: -551px; opacity: 1; transition-delay: .7s; }
.section.active .feat--2 { margin-left: -253px; opacity: 1; transition-delay: .7s; }
.section.active .feat--3 { margin-left: 45px;   opacity: 1; transition-delay: .7s; }
.section.active .feat--4 { margin-left: 345px;  opacity: 1; transition-delay: .7s; }

/* ---------------- Section 5: outro image + footer ---------------- */
.section5 .bg img { object-fit: fill; }

.footer {
  position: absolute; bottom: 0; left: 0; width: 100%; z-index: 2;
  background: #000; text-align: center;
}
.footer a { text-decoration: none; }
.footer-main {
  display: flex; gap: 44px; max-width: 1020px; margin: 0 auto;
  padding: 34px 28px 0; text-align: left;
}
.f-left { flex: 1.9; display: flex; gap: 36px; }
.f-locale { min-width: 110px; }
.f-locale a {
  display: block; margin-bottom: 10px; color: var(--grey);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  transition: color .6s linear;
}
.f-locale a:hover, .f-locale a.active { color: #fff; }
.f-links { columns: 3; flex: 1; }
.f-links li { break-inside: avoid; }
.f-links a {
  display: block; margin-bottom: 10px; color: var(--grey);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  transition: color .6s linear;
}
.f-links a:hover { color: #fff; }
.f-right { flex: 1; }
.f-right .f-copy {
  color: var(--grey); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 14px;
}
.f-right input {
  display: block; width: 100%; max-width: 230px;
  background: #666; border: none; color: #fff; font-size: 12px;
  padding: 8px 10px; margin-bottom: 14px; outline: 0;
}
.f-right input:focus { background: #1f1f1f; }
.f-go {
  background: none; border: none; color: #999; cursor: pointer;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  padding: 0; transition: color .4s ease;
}
.f-go:hover { color: #fff; }

.footer-social { padding-top: 42px; }
.footer-social li { display: inline-block; padding: 0 10px; vertical-align: middle; }
.footer-social a { color: var(--grey); transition: color .6s linear; display: block; line-height: 0; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 20px; height: 20px; }

.footer-copyright {
  color: var(--grey); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  line-height: 1.8; padding: 22px 20px 44px;
}

/* ---------------- Right-side page dots ---------------- */
.fp-nav {
  position: fixed; right: 17px; top: 50%; transform: translateY(-50%); z-index: 100;
}
.fp-nav li { width: 14px; height: 14px; margin: 10px 0; display: flex; align-items: center; justify-content: center; }
.fp-nav a {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid #8f9da4; transition: all .3s ease;
}
.fp-nav a.active { background: #fff; border-color: #fff; transform: scale(1.3); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; z-index: 300;
  transform: translateX(-50%) translateY(16px);
  background: rgba(18, 18, 18, .94); color: #fff;
  font-size: 13px; letter-spacing: .5px; padding: 12px 22px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: all .35s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ================= Narrower desktops ================= */
@media (max-width: 1699px) {
  .prod { width: 290px; }
  .prod--road { margin-left: -945px; }
  .prod--mtb  { margin-left: -145px; }
  .prod--fold { margin-left: 655px; }
  .section.active .prod--road { margin-left: -545px; }
  .section.active .prod--fold { margin-left: 255px; }

  .feat { width: 186px; }
  .feat--1 { margin-left: -762px; }
  .feat--2 { margin-left: -366px; }
  .feat--3 { margin-left: 180px; }
  .feat--4 { margin-left: 576px; }
  .section.active .feat--1 { margin-left: -462px; }
  .section.active .feat--2 { margin-left: -216px; }
  .section.active .feat--3 { margin-left: 30px; }
  .section.active .feat--4 { margin-left: 276px; }
}
@media (max-width: 1249px) {
  .hero-caption { font-size: 40px; }
  .prod { width: 240px; }
  .prod .label { padding-left: 46px; }
  .prod--road { margin-left: -840px; }
  .prod--mtb  { margin-left: -120px; }
  .prod--fold { margin-left: 600px; }
  .section.active .prod--road { margin-left: -440px; }
  .section.active .prod--mtb  { margin-left: -120px; }
  .section.active .prod--fold { margin-left: 200px; }

  .feat { width: 160px; }
  .feat--1 { margin-left: -680px; }
  .feat--2 { margin-left: -330px; }
  .feat--3 { margin-left: 170px; }
  .feat--4 { margin-left: 520px; }
  .section.active .feat--1 { margin-left: -380px; }
  .section.active .feat--2 { margin-left: -180px; }
  .section.active .feat--3 { margin-left: 20px; }
  .section.active .feat--4 { margin-left: 220px; }
}

/* ================= Mobile / tablet ================= */
@media (max-width: 1023px) {
  body { overflow: auto; }
  html { scroll-behavior: smooth; }
  #fullpage { transform: none !important; }
  .section { height: auto; min-height: 100svh; }

  .site-nav, .fp-nav { display: none; }

  /* top bar */
  .mobile-nav { display: block; }
  .mobile-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px; z-index: 120;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .mobile-bar .m-logo img { display: block; height: 34px; }
  .m-burger {
    position: absolute; left: 14px; top: 0; height: 60px; width: 52px;
    background: none; border: none; cursor: pointer; z-index: 130;
  }
  .m-burger span, .m-burger span::before, .m-burger span::after {
    content: ''; display: block; position: absolute; left: 14px; width: 24px; height: 2px;
    background: #fff; border-radius: 2px; transition: all .3s ease;
  }
  .m-burger span { top: 29px; }
  .m-burger span::before { left: 0; top: -8px; }
  .m-burger span::after { left: 0; top: 8px; }
  .m-burger.x span { background: transparent; }
  .m-burger.x span::before { transform: rotate(-45deg); top: 0; }
  .m-burger.x span::after { transform: rotate(45deg); top: 0; }

  /* full-screen overlay menu */
  .m-overlay {
    position: fixed; inset: 0; z-index: 125; background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
    overflow-y: auto; padding: 90px 30px 40px; text-align: left;
  }
  .m-overlay.open { opacity: 1; visibility: visible; }
  .m-item { margin-bottom: 26px; }
  .m-item > a {
    color: #fff; font-size: 14px; letter-spacing: 5px; text-transform: uppercase;
    text-decoration: none; display: inline-block;
  }
  .m-sub { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .m-item.expanded .m-sub { max-height: 320px; }
  .m-sub li { margin-top: 14px; }
  .m-sub li:first-child { margin-top: 16px; }
  .m-sub a { color: #9b9b9b; font-size: 12px; letter-spacing: 1px; text-decoration: none; }
  .m-langs { margin-top: 40px; padding-top: 26px; border-top: 1px solid #2a2a2a; }
  .m-langs a {
    display: inline-block; margin-right: 22px; color: #9b9b9b;
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  }
  .m-langs a.active { color: #fff; border-bottom: 1px solid #fff; padding-bottom: 3px; }

  /* hero */
  .hero-caption { font-size: 26px; padding: 0 22px; }
  .hero-info { padding: 0 10px; }

  /* generic section flow */
  .section2, .section3, .section4 {
    display: flex; flex-direction: column; justify-content: center;
    padding: 96px 26px 64px;
  }
  .sec-title {
    position: static; width: auto; margin: 0 0 34px; font-size: 21px;
  }
  .s2-logo { position: static; width: 78%; max-width: 420px; margin: 0 0 30px !important; }
  .s2-text { position: static; width: auto; margin: 0 !important; font-size: 15px; z-index: 1; }

  .prod {
    position: static; width: auto !important; margin: 0 0 34px !important;
    opacity: 0; transform: translateY(24px); text-align: center;
  }
  .prod img { width: min(300px, 78vw); margin: 0 auto; }
  .prod .label { padding-left: 0; }
  .section.active .prod { opacity: 1; transform: none; }

  .feat {
    position: static; width: auto !important; margin: 0 0 30px !important;
    opacity: 0; transform: translateY(24px); max-width: 420px;
  }
  .feat img { width: 100%; }
  .section.active .feat { opacity: 1; transform: none; }

  /* outro + footer */
  .section5 { min-height: 0; }
  .section5 .bg { position: static; height: 34svh; }
  .section5 .bg img { object-fit: cover; object-position: 50% 30%; }
  .footer { position: static; }
  .footer-main { flex-direction: column; gap: 28px; text-align: center; }
  .f-left { flex-direction: column; gap: 24px; }
  .f-locale { display: flex; justify-content: center; gap: 20px; }
  .f-locale a { margin-bottom: 0; }
  .f-links { columns: 2; }
  .f-right input { margin: 0 auto 14px; }
}
