@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;650;700;750;800&display=swap');

:root {
  color-scheme: light;
  --ink: #132641;
  --accent: #355dc5;
  --paper: #f0f4f8;
  --highlight: #adc4ff;
  --on-ink: #f4f7ff;
  --white: #fff;
  --copy: #354961;
  --line: #cbd6e5;
  --bright-line: #7183a5;
  --shell: 75rem;
  --gutter: clamp(1rem, 4.2vw, 4.25rem);
  background: var(--white);
  color: var(--ink);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
#main:focus { outline: none; }
[id] { scroll-margin-top: 1rem; }
[tabindex="-1"]:focus-visible:not(#main) { outline: 2px solid var(--accent); outline-offset: 5px; }

.shell {
  width: min(var(--shell), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  inset: .6rem auto auto .8rem;
  padding: .65rem .9rem;
  color: var(--on-ink);
  background: var(--ink);
  transform: translateY(-190%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 5.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem 1.75rem;
  padding-block: .65rem;
}
.brand, .header-inner nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}
.brand { gap: .65rem; font-weight: 750; font-size: .9375rem; }
.brand-mark {
  display: inline-block;
  flex: none;
  font-size: 1.48rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.14em;
  padding-inline-end: .14em;
}
.brand-mark b { color: var(--accent); font-weight: inherit; }
.header-inner nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(.7rem, 2.7vw, 2rem);
}
.header-inner nav a { font-size: .9375rem; font-weight: 650; }
.header-inner nav a:hover,
.header-inner nav a[aria-current],
.header-inner nav a.parent-link { color: var(--accent); text-decoration: underline; }
.header-inner nav a:last-child { color: var(--accent); }

h1, h2, h3 { text-wrap: balance; }
h1, .section > h2, .footer-contact h2 { letter-spacing: -.055em; }
h1 {
  font-size: clamp(2.625rem, 6vw, 5rem);
  font-weight: 800;
  line-height: .99;
}
.lede {
  margin-top: 1.15rem;
  max-width: 49ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}
.eyebrow {
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.action {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: .62rem 1rem;
  color: var(--on-ink);
  background: var(--ink);
  font-size: .9375rem;
  font-weight: 750;
  text-decoration: none;
  line-height: 1.35;
}
.action:hover { text-decoration: underline; }
.action--accent { background: var(--highlight); color: var(--ink); }
.action--accent:focus-visible { outline-color: var(--on-ink); }
.action--outline { background: transparent; border: 1px solid var(--highlight); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.55rem; }

.home-hero { background: var(--paper); }
.home-hero-inner {
  display: grid;
  grid-template-columns: 1.07fr 1fr;
  align-items: stretch;
}
.home-intro {
  position: relative;
  isolation: isolate;
  padding: clamp(2.75rem, 7.1vw, 6.3rem) clamp(1.4rem, 5.5vw, 5rem) clamp(2.75rem, 7.1vw, 6.3rem) 0;
  color: var(--on-ink);
  background: var(--ink);
}
.home-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 100% 0 min(-1 * var(--gutter), (var(--shell) - 100vw) / 2);
  background: var(--ink);
}
.home-intro h1 { max-width: 12.2ch; }
.home-intro .action { margin-top: 1.55rem; }
.service-list {
  padding-block: clamp(1.4rem, 3vw, 2.5rem);
  padding-inline-start: clamp(1.35rem, 4vw, 3.6rem);
  display: grid;
  align-content: center;
}
.service-list h2 { font-size: .88rem; padding-bottom: .5rem; color: var(--copy); }
.service-list article { padding: .88rem 0; border-bottom: 1px solid var(--line); }
.service-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.service-list h3 { font-size: clamp(1.1rem, 1.72vw, 1.37rem); letter-spacing: -.03em; line-height: 1.25; }
.service-list h3 a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--accent) 67%, transparent); }
.service-list h3 a:hover { color: var(--accent); text-decoration-color: currentColor; }
.service-list p { margin-top: .35rem; color: var(--copy); }

.section { padding-block: clamp(2.5rem, 6.4vw, 5.25rem); }
.section > h2, .footer-contact h2 {
  font-size: clamp(1.9rem, 3.75vw, 3rem);
  font-weight: 750;
  line-height: 1.08;
}
.product-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); margin-top: 1.55rem; }
.product-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(6rem, .39fr) 1fr;
  border: 1px solid var(--line);
}
.product-visual { display: grid; place-items: center; min-height: 9.5rem; overflow: hidden; }
.product-card--rail .product-visual { background: var(--ink); }
.product-card--court .product-visual { background: #dce7ff; }
.product-copy { padding: clamp(1.05rem, 2.3vw, 1.65rem); }
.product-copy .eyebrow { color: var(--copy); }
.product-copy h3 { margin-top: .42rem; font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -.04em; line-height: 1.1; }
.product-copy h3 a { color: var(--ink); }
.product-copy h3 a:hover { color: var(--accent); }
.product-copy > p:last-child { margin-top: .6rem; color: var(--copy); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: .78rem 0;
  list-style: none;
  font-size: .875rem;
  color: var(--copy);
}
.breadcrumbs li + li::before { content: "/"; margin-inline: .12rem .47rem; }
.breadcrumbs [aria-current] { font-weight: 650; }
.detail-hero { color: var(--on-ink); background: var(--ink); }
.detail-hero-inner {
  display: grid;
  grid-template-columns: 1.37fr minmax(11rem, .63fr);
  align-items: center;
  gap: clamp(1.5rem, 7vw, 6.2rem);
  padding-block: clamp(2.5rem, 6.5vw, 5rem);
}
.detail-hero .eyebrow { margin-bottom: .9rem; color: var(--highlight); }
.detail-hero h1 { max-width: 16ch; }
.detail-hero .lede { max-width: 54ch; }
.hero-index {
  align-self: center;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--bright-line);
}
.hero-index li { border-bottom: 1px solid var(--bright-line); }
.hero-index a { display: block; padding: .9rem .25rem; color: var(--on-ink); font-weight: 650; }
.hero-index a:hover { color: var(--highlight); }
.detail-visual { display: grid; place-items: center; min-height: 12rem; }
.detail-visual--rail { border: 1px solid var(--bright-line); background: #172f51; }
.detail-visual--court { background: #dce7ff; }

.marketing-art {
  min-height: 12rem;
  display: grid;
  place-items: center;
  isolation: isolate;
  border: 1px solid var(--bright-line);
  background: radial-gradient(ellipse at center, #274777, #172f51 68%);
}
.marketing-art span {
  grid-area: 1 / 1;
  width: min(70%, 9rem);
  aspect-ratio: 1;
  border: 1px solid var(--highlight);
  border-radius: 50%;
  transform: rotate(-28deg) scaleX(.72);
}
.marketing-art span:nth-child(2) { transform: rotate(28deg) scaleX(.72); }
.marketing-art span:nth-child(3) { width: .65rem; background: var(--highlight); transform: none; }

.rail-art {
  width: min(84%, 12rem);
  aspect-ratio: 1.65;
  display: grid;
  align-content: center;
  gap: .45rem;
  transform: skewX(-16deg);
}
.rail-art span { display: block; height: clamp(.19rem, .75vw, .48rem); background: var(--highlight); width: 68%; }
.rail-art span:nth-child(2) { margin-left: 12%; width: 85%; }
.rail-art span:nth-child(3) { width: 70%; background: #7398f1; }
.rail-art span:nth-child(4) { margin-left: 18%; width: 61%; background: #7398f1; }
.court-art { width: min(82%, 12rem); aspect-ratio: 1.48; position: relative; display: grid; place-items: center; }
.court-lines {
  position: absolute;
  inset: 8% 2%;
  border: 1px solid var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: .23rem;
}
.court-lines span { position: absolute; }
.court-lines span:nth-child(1) { inset: 0 auto 0 50%; border-left: 1px solid var(--accent); }
.court-lines span:nth-child(2) { inset: 16% 21%; border: 1px solid var(--accent); }
.court-lines span:nth-child(3) { inset: 50% 21% auto; border-top: 1px solid var(--accent); }
.court-ball { position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); left: 67%; top: 31%; }

.editorial-rows { margin-top: 1.55rem; border-top: 1px solid var(--line); }
.editorial-rows section {
  display: grid;
  grid-template-columns: minmax(11rem, .44fr) minmax(0, 1fr);
  gap: .5rem 2rem;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.editorial-rows section:target { border-inline-start: .25rem solid var(--accent); padding-inline-start: .85rem; }
.editorial-rows h3 { font-size: clamp(1.15rem, 2.1vw, 1.45rem); letter-spacing: -.033em; line-height: 1.25; }
.editorial-rows p { grid-column: 2; color: var(--copy); max-width: 67ch; }
.next-step { border-top: 1px solid var(--line); }
.next-step p { margin-top: .75rem; color: var(--copy); max-width: 62ch; }
.next-step .action { margin-top: 1.15rem; }
.body-section + .products-section { border-top: 1px solid var(--line); }

.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-contact, .footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .7rem 1.8rem;
}
.footer-contact { padding-block: clamp(1.75rem, 4vw, 3rem); }
.footer-contact p { margin-top: .45rem; color: var(--copy); }
.footer-contact a { font-weight: 650; overflow-wrap: anywhere; }
.footer-legal { padding-block: .95rem 1.35rem; border-top: 1px solid var(--line); color: var(--copy); font-size: .875rem; }

@media (max-width: 58rem) {
  .product-card { grid-template-columns: 1fr; }
  .product-visual { min-height: 6.25rem; }
  .product-visual .rail-art, .product-visual .court-art { width: 4.75rem; }
}

@media (max-width: 45rem) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-intro { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .home-intro::before { display: none; }
  .service-list { padding: 1.25rem 0 1.55rem; }
  .detail-hero-inner { grid-template-columns: 1fr; }
  .detail-visual, .marketing-art { min-height: 8.75rem; max-width: 28rem; width: 100%; }
  .marketing-art span { width: 6.5rem; }
  .marketing-art span:nth-child(3) { width: .55rem; }
  .detail-visual .rail-art, .detail-visual .court-art { width: 7.25rem; }
  .editorial-rows section { grid-template-columns: 1fr; }
  .editorial-rows p { grid-column: 1; }
}

@media (max-width: 30rem) {
  .product-list { grid-template-columns: 1fr; }
}
