:root {
  color-scheme: light;
  --ink: #10233f;
  --ink-soft: #40536b;
  --paper: #f4f7fa;
  --surface: #feffff;
  --surface-raised: #e8f0f7;
  --line: #c7d3df;
  --line-strong: #748aa1;
  --brand: #112f5b;
  --brand-hover: #082348;
  --brand-soft: #dce9f4;
  --accent: #e5b935;
  --accent-hover: #f5cc56;
  --on-brand: #f8fbff;
  --on-accent: #10233f;
  --hero: #0b2850;
  --hero-deep: #082348;
  --hero-muted: #d4e0ec;
  --hero-subtle: #afbed0;
  --hero-border: #7d9bba;
  --input: #fbfdff;
  --input-border: #546d87;
  --focus: #0b4e9b;
  --footer: #0a2344;
  --error: #9f2c27;
  --success: #176b4a;
  --shadow: 0 18px 50px rgba(16, 35, 63, 0.12);
  --shell: min(1420px, calc(100% - 48px));
  --radius: 3px;
  --display: "Aptos Display", "Helvetica Neue", Arial, sans-serif;
  --body: "Aptos", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.hero :focus-visible,
.proof__statement :focus-visible,
.final-cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--on-brand);
}

::selection {
  background: var(--brand);
  color: var(--on-brand);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 8vw, 126px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.utility-bar {
  min-height: 34px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.utility-bar__inner,
.utility-bar__actions {
  display: flex;
  align-items: center;
}

.utility-bar__inner {
  min-height: 34px;
  justify-content: space-between;
  gap: 24px;
}

.utility-bar p {
  margin: 0;
}

.utility-bar__actions {
  gap: 24px;
}

.utility-bar a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 180ms ease;
}

.utility-bar a:hover {
  text-decoration-color: currentColor;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 74px;
  gap: 42px;
}

.brand {
  width: 210px;
}

.brand img {
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 38px);
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
}

.primary-nav a,
.cart-link {
  position: relative;
  white-space: nowrap;
}

.primary-nav a::after,
.cart-link::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--brand);
  content: "";
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.cart-link:hover::after {
  transform: scaleX(1);
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 900;
}

.cart-link span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--mono);
  font-size: 11px;
}

.menu-button {
  display: none;
}

.category-nav {
  position: relative;
  z-index: 9;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.category-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: clamp(20px, 3.2vw, 52px);
  overflow: auto hidden;
  scrollbar-width: none;
  font-size: 12px;
  font-weight: 800;
}

.category-nav__inner::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  white-space: nowrap;
}

.category-nav a:last-child {
  color: var(--brand);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100dvh - 152px));
  overflow: hidden;
  background: var(--hero);
  color: var(--on-brand);
}

.hero__image,
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: 63% 52%;
  filter: saturate(0.78) contrast(1.03);
  transform: scale(1.015);
}

.hero__scrim {
  background:
    linear-gradient(90deg, rgba(8, 35, 72, 0.98) 0%, rgba(8, 35, 72, 0.91) 39%, rgba(8, 35, 72, 0.42) 67%, rgba(8, 35, 72, 0.08) 100%),
    linear-gradient(0deg, rgba(8, 35, 72, 0.7) 0%, transparent 44%);
}

.hero__inner {
  position: relative;
  display: flex;
  min-height: min(720px, calc(100dvh - 152px));
  align-items: center;
  padding-block: 56px 66px;
}

.hero__content {
  width: min(690px, 58vw);
}

.eyebrow {
  margin: 0 0 19px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.counter-help h2,
.measure-guide h2,
.resources h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(52px, 6.3vw, 92px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 570px;
  margin: 24px 0 28px;
  color: var(--hero-muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.4;
}

.part-search {
  max-width: 660px;
  padding: 16px;
  border: 1px solid var(--hero-border);
  border-radius: var(--radius);
  background: var(--hero-deep);
  box-shadow: 0 22px 52px rgba(4, 20, 43, 0.32);
}

.part-search__mode {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
}

.search-mode {
  padding: 4px 0 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--hero-subtle);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.search-mode.is-active {
  border-color: var(--accent);
  color: var(--on-brand);
}

.part-search label,
.part-search legend {
  display: block;
  margin-bottom: 7px;
  color: var(--on-brand);
  font-size: 12px;
  font-weight: 800;
}

.part-search fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.part-search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.part-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--input);
  color: var(--ink);
  outline: none;
}

.part-search input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.part-search input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(11, 78, 155, 0.28);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--brand);
  color: var(--on-brand);
}

.button--primary:hover {
  background: var(--brand-hover);
}

.button--accent {
  background: var(--accent);
  color: var(--on-accent);
}

.button--accent:hover {
  background: var(--accent-hover);
}

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

.button--secondary:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.form-helper,
.part-search__status {
  margin: 8px 0 0;
  font-size: 12px;
}

.form-helper {
  color: var(--hero-subtle);
}

.part-search__status {
  min-height: 18px;
  color: var(--hero-muted);
  font-weight: 800;
}

.part-search__status.is-error {
  color: #ffd7d1;
}

.part-search__status.is-result {
  color: #c9e8d7;
}

.part-search__status.is-loading::after {
  display: inline-block;
  width: 74px;
  height: 8px;
  margin-left: 9px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #526f8f 0%, #aebfd1 50%, #526f8f 100%);
  background-size: 200% 100%;
  content: "";
  vertical-align: middle;
  animation: shimmer 1s ease infinite;
}

.part-search__dimensions[aria-hidden="true"],
.part-search__part[aria-hidden="true"] {
  display: none;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.dimension-grid label {
  min-width: 0;
  margin: 0;
}

.dimension-grid label span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: var(--hero-muted);
}

.dimension-grid input {
  min-height: 48px;
}

.service-rail {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.service-rail__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-rail p {
  display: grid;
  min-height: 102px;
  align-content: center;
  margin: 0;
  padding: 18px 26px;
  border-left: 1px solid var(--line);
}

.service-rail p:last-child {
  border-right: 1px solid var(--line);
}

.service-rail strong,
.service-rail span {
  display: block;
}

.service-rail strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.service-rail span {
  color: var(--ink-soft);
  font-size: 12px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-heading--compact {
  max-width: 720px;
}

.section-heading h2,
.counter-help h2,
.measure-guide h2,
.resources h2,
.final-cta h2 {
  font-size: clamp(40px, 5vw, 72px);
}

.section-heading p,
.counter-help__content > p,
.measure-guide__copy > p,
.resources__intro > p {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.pathways {
  position: relative;
}

.pathway-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  border-top: 1px solid var(--line-strong);
}

.pathway {
  position: relative;
  display: grid;
  grid-template-columns: minmax(124px, 0.45fr) minmax(0, 1fr) auto;
  min-height: 166px;
  align-items: center;
  gap: 30px;
  padding: 28px 32px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 220ms ease, color 220ms ease;
}

.pathway:nth-child(even) {
  border-right: 0;
}

.pathway:hover {
  background: var(--brand);
  color: var(--on-brand);
}

.pathway__signal {
  color: var(--brand);
  font-family: var(--mono);
  font-size: clamp(18px, 2vw, 29px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.pathway:hover .pathway__signal {
  color: var(--accent);
}

.pathway__body {
  display: grid;
  gap: 7px;
}

.pathway__body strong {
  font-family: var(--display);
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.05;
}

.pathway__body small {
  color: var(--ink-soft);
  font-size: 13px;
}

.pathway:hover .pathway__body small {
  color: var(--hero-muted);
}

.pathway__arrow {
  font-size: 26px;
  transition: transform 180ms ease;
}

.pathway:hover .pathway__arrow {
  transform: translateX(5px);
}

.categories {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 0 48%, color-mix(in srgb, var(--line) 25%, transparent) 48% 48.2%, transparent 48.2%),
    var(--surface-raised);
  background-size: 60px 60px, auto;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-template-rows: minmax(330px, auto) minmax(290px, auto);
  grid-template-areas:
    "hero mounted roller"
    "hero linear seal";
  gap: 14px;
}

.category-tile {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(16, 35, 63, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.category-tile:hover {
  z-index: 2;
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.category-tile--hero {
  grid-area: hero;
}

.category-tile--blue {
  grid-area: mounted;
  background: var(--brand-soft);
}

.category-tile--dark {
  grid-area: roller;
  background: var(--brand);
  color: var(--on-brand);
}

.category-tile--linear {
  grid-area: linear;
}

.category-tile--seal {
  grid-area: seal;
}

.category-tile__copy {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  padding: 28px;
}

.category-tile h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.category-tile p {
  margin: 12px 0 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

.category-tile--dark p {
  color: var(--hero-muted);
}

.category-tile__copy > span {
  font-size: 13px;
  font-weight: 900;
}

.category-tile img {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 62%;
  height: 58%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.category-tile:hover img {
  transform: scale(1.045) rotate(-2deg);
}

.category-tile--hero img {
  right: -13%;
  bottom: -7%;
  width: 100%;
  height: 66%;
}

.category-tile--dark img {
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.38));
  mix-blend-mode: normal;
}

.category-tile--linear img {
  right: -5%;
  bottom: 0;
  width: 64%;
  height: 48%;
}

.all-categories {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  margin-top: 26px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-strong);
}

.all-categories p {
  max-width: 770px;
  margin: 0;
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-underline-offset: 4px;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link:hover {
  color: var(--brand-hover);
  text-decoration-color: currentColor;
}

.counter-help {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  align-items: center;
  gap: clamp(50px, 8vw, 118px);
}

.counter-help__photo {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--hero);
  box-shadow: var(--shadow);
}

.counter-help__photo::after {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(248, 251, 255, 0.46);
  content: "";
  pointer-events: none;
}

.counter-help__photo img {
  width: 100%;
  height: 100%;
  min-height: 630px;
  object-fit: cover;
  object-position: 58% center;
}

.counter-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.counter-help__details {
  display: grid;
  gap: 28px;
  margin: 42px 0 0;
}

.counter-help__details div {
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.counter-help__details dt {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
}

.counter-help__details dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.measure-guide {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.measure-guide__inner {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: clamp(50px, 10vw, 150px);
}

.text-link--button {
  margin-top: 27px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.measurement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 38px;
}

.measurement__part {
  position: relative;
  aspect-ratio: 1;
  width: min(500px, 100%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 37% 30%, rgba(255, 255, 255, 0.92) 0 2%, transparent 2.4%),
    conic-gradient(from 12deg, #979da5, #f4f5f6, #6f757d, #d8dce0, #838991, #f4f5f6, #979da5);
  box-shadow:
    0 34px 46px rgba(19, 24, 31, 0.2),
    inset 0 0 0 3px #747b84,
    inset 0 0 0 15px #d8dce0;
}

.measurement__ring {
  position: absolute;
  border-radius: 50%;
}

.measurement__ring--outer {
  inset: 13%;
  background:
    radial-gradient(circle, transparent 0 46%, #22262b 47% 49%, transparent 50%),
    repeating-conic-gradient(from 0deg, #818891 0 8deg, #e0e3e6 8deg 16deg);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.45);
}

.measurement__ring--middle {
  inset: 30%;
  border: 9px solid #dce0e4;
  background: #6f757d;
  box-shadow: 0 0 0 4px #42474e, inset 0 0 12px rgba(0, 0, 0, 0.4);
}

.measurement__ring--inner {
  inset: 39%;
  background: var(--surface);
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

.measurement__line {
  position: absolute;
  z-index: 4;
  right: 10%;
  left: 10%;
  top: 50%;
  height: 2px;
  background: var(--brand);
}

.measurement__line::before,
.measurement__line::after {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 12px;
  background: var(--brand);
  content: "";
}

.measurement__line::before {
  left: 0;
}

.measurement__line::after {
  right: 0;
}

.measurement__line--id {
  right: 39%;
  left: 39%;
  top: 56%;
}

.measurement__legend {
  display: grid;
  gap: 22px;
  margin: 0;
}

.measurement__legend div {
  padding-left: 18px;
  border-left: 3px solid var(--brand);
}

.measurement__legend dt {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 900;
}

.measurement__legend dd {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.resources {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(56px, 10vw, 150px);
}

.resources__intro {
  align-self: start;
}

.resources__intro .text-link {
  margin-top: 26px;
}

.resource-list {
  border-top: 1px solid var(--line-strong);
}

.resource-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px auto;
  min-height: 116px;
  align-items: center;
  gap: 26px;
  padding: 18px 10px;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, background 180ms ease;
}

.resource-link:hover {
  padding-inline: 20px;
  background: var(--surface);
}

.resource-link > span:first-child {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.resource-link small {
  color: var(--ink-soft);
}

.resource-link > span:last-child {
  font-size: 24px;
}

.proof {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(50px, 9vw, 130px);
  padding-top: 0;
}

.proof__statement {
  display: grid;
  min-height: 470px;
  align-content: space-between;
  padding: clamp(34px, 5vw, 72px);
  border-radius: var(--radius);
  background: var(--hero);
  color: var(--on-brand);
}

.proof blockquote {
  max-width: 700px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 59px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.proof__statement p {
  margin: 32px 0 0;
  color: var(--hero-muted);
  font-family: var(--mono);
  font-size: 12px;
}

.proof__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: stretch;
  gap: 34px 28px;
}

.proof__grid article {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.proof__grid h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 27px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.proof__grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.final-cta {
  background: var(--brand);
  color: var(--on-brand);
}

.final-cta__inner {
  display: flex;
  min-height: 330px;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-block: 60px;
}

.final-cta p {
  margin: 18px 0 0;
  color: var(--hero-muted);
  font-size: 18px;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.button--light {
  background: var(--accent);
  color: var(--on-accent);
}

.button--light:hover {
  background: var(--accent-hover);
}

.button--outline-light {
  border-color: var(--hero-border);
  color: var(--on-brand);
}

.button--outline-light:hover {
  border-color: var(--on-brand);
  background: rgba(248, 251, 255, 0.12);
}

.site-footer {
  padding-top: 72px;
  background: var(--footer);
  color: var(--on-brand);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 90px;
  padding-bottom: 70px;
}

.site-footer__brand img {
  width: 210px;
  height: auto;
  opacity: 0.96;
}

.site-footer__brand p {
  max-width: 390px;
  margin: 24px 0 18px;
  color: var(--hero-muted);
}

.site-footer__brand > a {
  font-size: 18px;
  font-weight: 900;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.site-footer__links div {
  display: grid;
  align-content: start;
  gap: 12px;
}

.site-footer__links h2 {
  margin: 0 0 8px;
  color: var(--hero-muted);
  font-size: 12px;
}

.site-footer__links a {
  font-size: 14px;
}

.site-footer__links a:hover,
.site-footer__brand a:hover {
  color: var(--accent);
}

.site-footer__legal {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid #527492;
  color: var(--hero-subtle);
  font-size: 12px;
}

.mobile-search-cta {
  display: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero .reveal {
    animation: hero-in 720ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 36px, 1040px);
  }

  .site-header__inner {
    grid-template-columns: 210px minmax(0, 1fr) auto;
    gap: 22px;
  }

  .brand {
    width: 190px;
  }

  .primary-nav {
    gap: 18px;
    font-size: 13px;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 380px repeat(2, 290px);
    grid-template-areas:
      "hero hero"
      "mounted roller"
      "linear seal";
  }

  .category-tile--hero img {
    right: -2%;
    width: 58%;
    height: 90%;
  }

  .counter-help {
    gap: 48px;
  }

  .counter-help__photo,
  .counter-help__photo img {
    min-height: 560px;
  }

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

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

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 32px, 820px);
  }

  .utility-bar__actions a:last-child {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: minmax(170px, 1fr) auto auto;
  }

  .menu-button {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
  }

  .menu-button__lines,
  .menu-button__lines::before,
  .menu-button__lines::after {
    display: block;
    width: 19px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-button__lines {
    position: relative;
  }

  .menu-button__lines::before,
  .menu-button__lines::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .menu-button__lines::before {
    top: -6px;
  }

  .menu-button__lines::after {
    top: 6px;
  }

  .menu-button[aria-expanded="true"] .menu-button__lines {
    background: transparent;
  }

  .menu-button[aria-expanded="true"] .menu-button__lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-button__lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .category-nav__inner {
    justify-content: flex-start;
  }

  .hero,
  .hero__inner {
    min-height: 720px;
  }

  .hero__image {
    object-position: 61% center;
  }

  .hero__scrim {
    background:
      linear-gradient(90deg, rgba(8, 35, 72, 0.97) 0%, rgba(8, 35, 72, 0.88) 55%, rgba(8, 35, 72, 0.34) 100%),
      linear-gradient(0deg, rgba(8, 35, 72, 0.78) 0%, transparent 55%);
  }

  .hero__content {
    width: min(720px, 84vw);
  }

  .service-rail__inner {
    grid-template-columns: 1fr 1fr;
  }

  .service-rail p:nth-child(2) {
    border-right: 1px solid var(--line);
  }

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

  .pathway {
    border-right: 0;
  }

  .counter-help,
  .measure-guide__inner,
  .resources,
  .proof {
    grid-template-columns: 1fr;
  }

  .counter-help__photo {
    min-height: 520px;
  }

  .counter-help__photo img {
    min-height: 520px;
  }

  .counter-help__content {
    max-width: 720px;
  }

  .measurement__part {
    margin-inline: auto;
  }

  .resources__intro {
    max-width: 650px;
  }

  .proof__statement {
    min-height: 390px;
  }

  .proof__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: min(100% - 28px, 620px);
  }

  body {
    padding-bottom: 62px;
  }

  .section {
    padding-block: 70px;
  }

  .utility-bar__inner {
    justify-content: center;
  }

  .utility-bar__actions {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: minmax(150px, 1fr) auto;
    min-height: 68px;
  }

  .brand {
    width: 170px;
  }

  .cart-link {
    display: none;
  }

  .menu-button__label {
    display: none;
  }

  .category-nav__inner {
    width: 100%;
    padding-inline: 14px;
  }

  .hero,
  .hero__inner {
    min-height: min(790px, calc(100dvh - 146px));
  }

  .hero__inner {
    align-items: flex-end;
    padding-block: 58px 30px;
  }

  .hero__image {
    object-position: 64% center;
  }

  .hero__scrim {
    background:
      linear-gradient(0deg, rgba(8, 35, 72, 0.99) 0%, rgba(8, 35, 72, 0.88) 62%, rgba(8, 35, 72, 0.3) 100%),
      linear-gradient(90deg, rgba(8, 35, 72, 0.48), transparent);
  }

  .hero__content {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 13px;
  }

  .hero h1 {
    font-size: clamp(45px, 14vw, 64px);
  }

  .hero__lead {
    margin-block: 17px 20px;
    font-size: 16px;
  }

  .part-search {
    padding: 13px;
  }

  .part-search__row,
  .dimension-grid {
    grid-template-columns: 1fr;
  }

  .part-search__row .button,
  .dimension-grid .button {
    width: 100%;
  }

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

  .dimension-grid .button {
    grid-column: 1 / -1;
  }

  .service-rail__inner {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .service-rail p {
    min-height: 116px;
    padding: 16px 14px;
  }

  .service-rail p:nth-child(odd) {
    border-left: 0;
  }

  .service-rail p:last-child {
    border-right: 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .counter-help h2,
  .measure-guide h2,
  .resources h2,
  .final-cta h2 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .section-heading p,
  .counter-help__content > p,
  .measure-guide__copy > p,
  .resources__intro > p {
    font-size: 16px;
  }

  .pathway {
    grid-template-columns: 1fr auto;
    min-height: 142px;
    gap: 16px;
    padding: 22px 4px;
  }

  .pathway__signal {
    grid-column: 1 / -1;
  }

  .category-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 360px);
    grid-template-areas:
      "hero"
      "mounted"
      "roller"
      "linear"
      "seal";
  }

  .category-tile--hero img,
  .category-tile img {
    right: -10%;
    bottom: -8%;
    width: 73%;
    height: 60%;
  }

  .all-categories {
    display: grid;
    gap: 18px;
  }

  .counter-help {
    gap: 36px;
  }

  .counter-help__photo,
  .counter-help__photo img {
    min-height: 420px;
  }

  .counter-help__actions {
    display: grid;
  }

  .counter-help__actions .button {
    width: 100%;
  }

  .measurement {
    gap: 28px;
  }

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

  .resource-link {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 104px;
    gap: 14px;
  }

  .resource-link small {
    display: none;
  }

  .proof__statement {
    min-height: 360px;
    padding: 30px;
  }

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

  .final-cta__inner {
    display: grid;
    min-height: 390px;
    gap: 32px;
  }

  .final-cta__actions {
    display: grid;
    justify-content: stretch;
  }

  .site-footer {
    padding-top: 58px;
  }

  .site-footer__links {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__legal {
    display: grid;
    justify-content: start;
    gap: 4px;
    padding-block: 18px;
  }

  .site-footer__legal p {
    margin: 0;
  }

  .mobile-search-cta {
    position: fixed;
    z-index: 12;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: 62px;
    place-items: center;
    border-top: 1px solid rgba(248, 251, 255, 0.42);
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 -12px 30px rgba(8, 35, 72, 0.24);
    font-weight: 900;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .part-search {
    backdrop-filter: none;
  }

  .site-header {
    background: var(--surface);
  }

  .part-search {
    background: var(--hero-deep);
  }
}
