:root {
  color-scheme: light;
  --ink: #10110f;
  --ink-soft: #3d4038;
  --paper: #f6f0df;
  --paper-2: #fffaf0;
  --line: rgba(16, 17, 15, 0.18);
  --lime: #c9ff2f;
  --ember: #ff593d;
  --sky: #62c7ff;
  --leaf: #6fbf73;
  --mud: #b9854d;
  --violet: #8268ff;
  --shadow: 0 24px 70px rgba(16, 17, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(16, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 17, 15, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(201, 255, 47, 0.28), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(255, 89, 61, 0.16), transparent 28rem),
    var(--paper);
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 2vw, 24px) clamp(16px, 3vw, 44px) 48px;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 48px));
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(14px, 3vw, 44px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 250, 240, 0.94) 0 52%, rgba(16, 17, 15, 0.94) 52% 100%),
    var(--paper-2);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -7% 7% auto;
  width: min(49vw, 620px);
  height: min(49vw, 620px);
  border: 2px solid rgba(201, 255, 47, 0.7);
  border-radius: 50%;
  transform: rotate(-13deg);
  z-index: -1;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 17, 15, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 17, 15, 0.11) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, black, transparent 64%);
  opacity: 0.34;
  pointer-events: none;
}

.hero__content {
  position: relative;
  padding: clamp(26px, 4vw, 56px);
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  background: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--ink);
  transform: rotate(45deg);
}

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

h1 {
  max-width: 660px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 5.65vw, 6.35rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.1;
}

.hero__lead {
  max-width: 600px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.12vw, 1.12rem);
  line-height: 1.68;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, 100%);
  border: 2px solid var(--ink);
  background: var(--paper-2);
}

.hero__metrics span {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 74px;
  padding: 11px 13px;
  border-right: 2px solid var(--ink);
  align-content: center;
  font-size: 0.82rem;
  line-height: 1.25;
}

.hero__metrics span:last-child {
  border-right: 0;
}

.hero__metrics strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.45vw, 2.35rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.hero__metrics span:last-child strong {
  font-size: clamp(1.35rem, 2.15vw, 2.05rem);
}

.hero__shoe {
  position: relative;
  min-height: 470px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 30px;
}

.hero__shoe img {
  display: block;
  width: min(88%, 580px);
  height: auto;
  transform: rotate(-12deg) translateX(-2%);
  filter: drop-shadow(0 34px 28px rgba(0, 0, 0, 0.34));
  animation: shoeFloat 5.4s ease-in-out infinite;
}

.hero__label {
  position: absolute;
  right: clamp(18px, 4vw, 58px);
  bottom: clamp(22px, 4vw, 72px);
  display: grid;
  gap: 5px;
  max-width: min(360px, calc(100% - 36px));
  padding: 14px 16px;
  border: 2px solid var(--lime);
  background: rgba(16, 17, 15, 0.88);
  color: var(--paper-2);
}

.hero__label span {
  font-weight: 900;
}

.hero__label small {
  color: rgba(255, 250, 240, 0.76);
}

.map-section,
.cards-section,
.deep-compare,
.source-panel {
  margin-top: clamp(28px, 5vw, 76px);
}

.card-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
}

.card-filter-panel h3 {
  margin-bottom: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-tab {
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.filter-tab:hover {
  transform: translateY(-2px);
}

.filter-tab.is-active {
  background: var(--ink);
  color: var(--paper-2);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.2fr) minmax(0, 0.8fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.map-section .section-kicker,
.cards-section .section-kicker,
.deep-compare .section-kicker,
.source-panel .section-kicker {
  color: var(--ember);
}

.matrix {
  position: relative;
  min-height: 580px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.14)),
    linear-gradient(rgba(16, 17, 15, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 17, 15, 0.12) 1px, transparent 1px),
    var(--paper-2);
  background-size: auto, 52px 52px, 52px 52px, auto;
  overflow: hidden;
}

.matrix::before {
  content: "";
  position: absolute;
  inset: 12% 6% 12% 6%;
  border: 2px dashed rgba(16, 17, 15, 0.2);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.matrix__mobile-axis {
  display: none;
}

.axis {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  background: var(--lime);
  font-weight: 900;
  font-size: 0.85rem;
}

.axis--x {
  top: 18px;
  right: 18px;
}

.axis--y {
  left: 18px;
  bottom: 18px;
  transform-origin: left bottom;
  transform: rotate(-90deg) translateY(100%);
}

.matrix__grid {
  position: absolute;
  inset: 0;
}

.matrix-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  gap: 4px;
  width: clamp(128px, 14vw, 190px);
  min-height: 76px;
  padding: 13px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(var(--tilt, -2deg));
}

.matrix-card:nth-child(even) {
  --tilt: 2deg;
}

.matrix-card span {
  font-weight: 950;
}

.matrix-card small {
  color: var(--ink-soft);
}

.matrix-card.road {
  border-color: var(--ink);
}

.matrix-card.race {
  background: var(--ember);
  color: white;
}

.matrix-card.race small {
  color: rgba(255, 255, 255, 0.9);
}

.matrix-card.trail {
  background: #ecddc4;
}

.matrix-card.training {
  background: var(--sky);
}

.matrix-card.daily {
  background: #e5e0d0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.price-rail {
  display: grid;
  grid-template-columns: minmax(170px, 0.24fr) minmax(0, 0.76fr);
  gap: 12px;
  margin: 0 0 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  overflow: hidden;
}

.price-rail__intro {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 16px;
  border-right: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
}

.price-rail__intro span {
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.price-rail__intro strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  line-height: 0.95;
}

.price-rail__intro small {
  max-width: 260px;
  color: rgba(255, 250, 240, 0.68);
  line-height: 1.45;
}

.price-rail__track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
  padding: 12px;
}

.price-chip {
  min-height: 86px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(180deg, var(--accent) 0 42%, var(--paper-2) 42% 100%);
  color: var(--ink);
  text-decoration: none;
}

.price-chip span {
  width: fit-content;
  padding: 2px 7px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.price-chip b {
  font-size: 0.78rem;
  line-height: 1.2;
}

.product-card {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-rows: clamp(220px, 19vw, 280px) auto;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 0 0 0 rgba(16, 17, 15, 0);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    opacity 180ms ease;
}

.product-card.is-hidden {
  display: none;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 9px 9px 0 var(--ink);
}

.product-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  padding: 34px 24px 18px;
  background:
    radial-gradient(circle at 50% 66%, rgba(16, 17, 15, 0.16), transparent 37%),
    var(--accent);
}

.product-card__visual img {
  display: block;
  width: min(118%, 560px);
  height: auto;
  max-height: calc(100% - 42px);
  object-fit: contain;
  transform: rotate(-8deg);
  filter: drop-shadow(0 16px 14px rgba(16, 17, 15, 0.22));
}

.product-card__tag {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: 5px 8px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card__price {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  min-width: 72px;
  padding: 5px 9px 6px;
  border: 2px solid var(--ink);
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 4px 4px 0 rgba(16, 17, 15, 0.82);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.5vw, 1.55rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.product-card__body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 18px;
}

.product-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 2.1rem);
}

.product-card h3 span:last-child {
  color: rgba(16, 17, 15, 0.44);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  padding-top: 7px;
}

.product-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.spec-list {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 0;
  margin: 0;
  list-style: none;
}

.spec-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.spec-list b {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  text-decoration: none;
  font-weight: 900;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.product-card__link:hover {
  background: var(--lime);
  color: var(--ink);
}

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

.choice-lanes article {
  min-height: 250px;
  display: grid;
  align-content: space-between;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper-2);
}

.lane-number {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 900;
}

.choice-lanes p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.source-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.3fr) minmax(0, 0.7fr);
  gap: 20px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 22px;
  background: var(--ink);
  color: var(--paper-2);
}

.source-panel h2 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.source-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-panel a {
  color: var(--paper-2);
  text-underline-offset: 4px;
}

@keyframes shoeFloat {
  0%,
  100% {
    transform: rotate(-12deg) translateX(-2%) translateY(0);
  }
  50% {
    transform: rotate(-12deg) translateX(-2%) translateY(-14px);
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    background:
      linear-gradient(168deg, rgba(255, 250, 240, 0.94) 0 56%, rgba(16, 17, 15, 0.94) 56% 100%),
      var(--paper-2);
  }

  .hero__shoe {
    min-height: 420px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 10px 10px 42px;
  }

  .hero {
    min-height: calc(100svh - 20px);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    background:
      linear-gradient(168deg, rgba(255, 250, 240, 0.94) 0 58%, rgba(16, 17, 15, 0.94) 58% 100%),
      var(--paper-2);
  }

  .hero::after {
    inset: auto -34% 3% auto;
    width: min(108vw, 480px);
    height: min(108vw, 480px);
  }

  .hero__content {
    z-index: 2;
    padding: clamp(18px, 5.4vw, 24px);
  }

  .hero .eyebrow {
    margin-bottom: 14px;
    gap: 8px;
    padding: 6px 8px;
    font-size: clamp(0.62rem, 2.4vw, 0.72rem);
    white-space: nowrap;
  }

  .hero .eyebrow::before {
    width: 10px;
    height: 10px;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 12px;
    font-size: clamp(3rem, 13.5vw, 3.75rem);
    line-height: 0.9;
  }

  .hero__lead {
    margin-bottom: 16px;
    font-size: clamp(0.86rem, 3.6vw, 0.96rem);
    line-height: 1.55;
  }

  .hero__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__metrics span {
    min-height: 64px;
    padding: 8px 9px;
    border-right: 2px solid var(--ink);
    border-bottom: 0;
    font-size: clamp(0.66rem, 2.65vw, 0.76rem);
  }

  .hero__metrics span:last-child {
    border-right: 0;
  }

  .hero__metrics strong {
    font-size: clamp(1.35rem, 6vw, 1.78rem);
  }

  .hero__metrics span:last-child strong {
    font-size: clamp(0.8rem, 3.7vw, 1.1rem);
    white-space: nowrap;
  }

  .hero__shoe {
    min-height: 0;
    align-content: end;
    padding: 0 18px 18px;
    overflow: hidden;
  }

  .hero__shoe img {
    width: min(100%, 440px);
    transform: rotate(-10deg) translateX(2%);
  }

  .hero__label {
    right: 18px;
    bottom: 18px;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  @keyframes shoeFloat {
    0%,
    100% {
      transform: rotate(-10deg) translateX(2%) translateY(0);
    }
    50% {
      transform: rotate(-10deg) translateX(2%) translateY(-10px);
    }
  }

  .card-filter-panel,
  .section-heading,
  .price-rail,
  .source-panel,
  .choice-lanes {
    grid-template-columns: 1fr;
  }

  .price-rail__intro {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .price-rail__track {
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  }

  .filter-tabs {
    justify-content: flex-start;
  }

  .matrix {
    min-height: 0;
    padding: 74px 14px 58px;
    overflow: visible;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
      linear-gradient(rgba(16, 17, 15, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(16, 17, 15, 0.1) 1px, transparent 1px),
      var(--paper-2);
    background-size: auto, 38px 38px, 38px 38px, auto;
  }

  .matrix::before {
    inset: 86px 18px 80px;
    border-radius: 999px;
    transform: rotate(-4deg);
  }

  .axis {
    display: none;
  }

  .matrix__mobile-axis {
    position: absolute;
    z-index: 3;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 10px;
    border: 2px solid var(--ink);
    background: var(--lime);
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.2;
    text-align: center;
  }

  .matrix__mobile-axis--top {
    top: 16px;
  }

  .matrix__mobile-axis--bottom {
    bottom: 14px;
  }

  .matrix__grid {
    position: relative;
    inset: auto;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "runner surfer"
      "monster flow"
      "boom boom"
      "tilt train"
      "vista ultra"
      "horizon horizon";
    gap: 14px 8px;
  }

  .matrix-card {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-height: 70px;
    padding: 11px 12px;
    box-shadow: 5px 5px 0 var(--ink);
    transform: rotate(var(--mobile-tilt, -1.5deg));
  }

  .matrix-card span {
    font-size: clamp(0.98rem, 5vw, 1.34rem);
    line-height: 1.05;
  }

  .matrix-card small {
    font-size: 0.84rem;
  }

  .matrix-card:nth-child(even) {
    --mobile-tilt: 1.5deg;
  }

  .matrix-card:nth-child(1) {
    grid-area: runner;
  }

  .matrix-card:nth-child(2) {
    grid-area: surfer;
  }

  .matrix-card:nth-child(3) {
    grid-area: monster;
  }

  .matrix-card:nth-child(4) {
    grid-area: flow;
  }

  .matrix-card:nth-child(5) {
    grid-area: boom;
  }

  .matrix-card:nth-child(6) {
    grid-area: train;
  }

  .matrix-card:nth-child(7) {
    grid-area: tilt;
  }

  .matrix-card:nth-child(8) {
    grid-area: vista;
  }

  .matrix-card:nth-child(9) {
    grid-area: ultra;
  }

  .matrix-card:nth-child(10) {
    grid-area: horizon;
  }

  .product-grid,
  .source-panel ul {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
