:root {
  --ink: #191816;
  --paper: #f7f4ec;
  --workbench: #dfd6c5;
  --steel: #59636a;
  --shop-red: #b82f24;
  --rim-blue: #1187a6;
  --rubber: #262b29;
  --line: rgba(25, 24, 22, 0.18);
  --shadow: 0 24px 60px rgba(31, 25, 17, 0.18);
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(25, 24, 22, 0.035) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--paper);
  font-family: var(--body);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 236, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  border: 4px solid var(--shop-red);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 45%, var(--shop-red) 45% 55%, transparent 55%),
    linear-gradient(35deg, transparent 46%, var(--shop-red) 46% 54%, transparent 54%),
    linear-gradient(-35deg, transparent 46%, var(--shop-red) 46% 54%, transparent 54%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--steel);
  font-size: 0.86rem;
  font-weight: 750;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--shop-red);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
  min-height: min(780px, calc(100vh - 72px));
  padding: clamp(24px, 4vw, 58px) clamp(18px, 4vw, 56px) 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--shop-red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 6vw, 5.1rem);
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  text-transform: uppercase;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--steel);
  font-size: clamp(1.04rem, 1.5vw, 1.28rem);
}

.hero-actions,
.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--shop-red);
  border-color: var(--shop-red);
}

.hero-media {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 520px;
}

.hero-media img {
  height: min(62vh, 600px);
  min-height: 380px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.parts-rail {
  position: absolute;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  left: clamp(12px, 2vw, 28px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(247, 244, 236, 0.86);
  border: 1px solid rgba(247, 244, 236, 0.7);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
}

.parts-rail span {
  min-width: 0;
  padding: 12px 10px;
  color: var(--paper);
  background: rgba(25, 24, 22, 0.86);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.shop-band,
.build-section,
.contact-panel {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.66fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}

.section-heading .kicker {
  margin: 0;
}

.section-heading h2 {
  margin: 0;
}

.bike-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bike-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.bike-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.03);
}

.bike-card-body {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.5vw, 28px);
}

.bike-label {
  margin-bottom: 12px;
  color: var(--rim-blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bike-card p:not(.bike-label) {
  color: var(--steel);
}

.bike-card a {
  margin-top: auto;
  color: var(--shop-red);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.build-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.42fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  background: var(--rubber);
  color: var(--paper);
}

.build-copy p:not(.kicker) {
  max-width: 720px;
  color: rgba(247, 244, 236, 0.72);
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
}

.build-list {
  display: grid;
  gap: 12px;
}

.build-list div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  background: rgba(247, 244, 236, 0.08);
  border: 1px solid rgba(247, 244, 236, 0.18);
  border-radius: 4px;
}

.build-list span {
  color: var(--rim-blue);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 850;
}

.build-list p {
  margin: 0;
  font-weight: 760;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.4fr) auto;
  align-items: center;
  background: var(--workbench);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-panel h2 {
  margin-bottom: 0;
}

.contact-panel p:not(.kicker) {
  margin: 0;
  color: var(--steel);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .build-section,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    gap: 24px;
  }

  .hero-media,
  .hero-media img {
    min-height: 0;
  }

  .hero-media img {
    height: auto;
    max-height: 620px;
  }

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

  .bike-card {
    grid-template-columns: minmax(240px, 0.85fr) 1fr;
    grid-template-rows: auto;
  }

  .bike-card img {
    height: 100%;
  }

  .contact-panel {
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 12px 16px;
  }

  .brand {
    gap: 10px;
    font-size: clamp(1.35rem, 7vw, 1.62rem);
  }

  .brand-mark {
    width: 28px;
    border-width: 3px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.7rem;
  }

  .hero {
    gap: 20px;
    padding: 24px 16px 28px;
  }

  h1 {
    font-size: clamp(2.3rem, 13vw, 3.9rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.3rem);
  }

  h3 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .hero-text {
    margin-bottom: 22px;
    font-size: 1rem;
  }

  .button {
    min-height: 50px;
  }

  .shop-band,
  .build-section,
  .contact-panel {
    padding: 44px 16px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
    padding-top: 18px;
  }

  .bike-card {
    grid-template-columns: 1fr;
  }

  .bike-card img {
    height: auto;
  }

  .parts-rail {
    position: static;
    margin-top: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .parts-rail span {
    padding: 10px 4px;
    font-size: 0.62rem;
  }

  .contact-panel {
    gap: 18px;
    justify-items: start;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body {
    background:
      linear-gradient(90deg, rgba(25, 24, 22, 0.03) 1px, transparent 1px) 0 0 / 20px 20px,
      var(--paper);
  }

  .hero-copy {
    justify-content: start;
  }

  .kicker {
    margin-bottom: 10px;
    font-size: 0.7rem;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: clamp(1.92rem, 9.8vw, 2.6rem);
    line-height: 0.96;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button {
    width: 100%;
    padding-inline: 14px;
    text-align: center;
  }

  .hero-media {
    min-height: 0;
  }

  .hero-media img {
    aspect-ratio: 4 / 3.15;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .parts-rail {
    grid-template-columns: repeat(5, 1fr);
    overflow: hidden;
  }

  .parts-rail span {
    padding: 9px 2px;
    font-size: clamp(0.5rem, 2.8vw, 0.62rem);
  }

  .bike-grid {
    gap: 14px;
  }

  .bike-card-body {
    padding: 18px;
  }

  .bike-card p:not(.bike-label) {
    font-size: 0.96rem;
  }

  .build-list div {
    grid-template-columns: 42px 1fr;
    min-height: 78px;
    padding: 14px;
  }

  .build-list span {
    font-size: 1.55rem;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
