:root {
  color-scheme: light;
  --ink: #101923;
  --muted: #506074;
  --accent: #1558b4;
  --paper: #fff;
  --line: #dce3eb;
  --gutter: max(5vw, calc((100vw - 1320px) / 2));
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #397ee3; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 34px; }
.shell { margin-inline: var(--gutter); }
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  background: white;
  border-radius: 12px;
  padding: 12px 18px;
}
.skip-link:focus { transform: translateY(0); }

.header { background: #fff; }
.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 3vw, 48px);
}
.brand { display: inline-block; justify-self: start; }
.brand img { width: 200px; height: auto; }
.header nav { display: flex; gap: clamp(16px, 3vw, 45px); align-items: center; }
.header nav a { font-size: .94rem; font-weight: 600; text-decoration: none; }
.header nav a:hover, .footer a:hover { color: var(--accent); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: fit-content;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: .92rem;
  line-height: 1.25;
  font-weight: 650;
  transition: background .2s, color .2s;
}
.button:hover { background: var(--accent); }
.nav-contact { justify-self: end; }
.button-light { background: #fff; color: #101923; }
.button-light:hover { background: #cfe2ff; color: #101923; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #0b1018; color: white; }
.hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 70%;
  z-index: -1;
  background: url("assets/bearing-hero.webp") center 53% / cover no-repeat;
}
.hero-image::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, #0b1018 0%, rgb(11 16 24 / 88%) 10%, rgb(11 16 24 / 32%) 32%, transparent 57%),
              linear-gradient(0deg, rgb(11 16 24 / 25%), transparent 26%);
}
.hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(540px, 44vw, 720px);
  padding-block: 64px;
}
.hero-copy { width: min(640px, 63%); }
.eyebrow {
  color: var(--accent);
  font-size: .76rem;
  line-height: 1.4;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.hero .eyebrow, .contact .eyebrow { color: #a8caff; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(4.2rem, 7vw, 7.4rem);
  line-height: .94;
  letter-spacing: -.075em;
  font-weight: 700;
}
.hero-text { font-size: clamp(1.04rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 370px; color: #c7d3e3; margin-block: 25px 28px; }

.products { padding: 78px 0 66px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px 38px;
  margin-bottom: 29px;
}
h2 { font-size: clamp(2.45rem, 4.6vw, 4.85rem); letter-spacing: -.065em; line-height: .99; font-weight: 700; }
.section-head h2, .contact h2 { margin-top: 10px; }
.products-head > p { color: var(--muted); max-width: 300px; margin-bottom: 3px; font-size: 1rem; line-height: 1.55; }
.catalogue-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  border: 1px solid var(--line);
  background: white;
  color: #304154;
  border-radius: 100px;
  cursor: pointer;
  min-height: 39px;
  padding: 8px 16px;
  font-size: .88rem;
  font-weight: 600;
  transition: background .2s, border .2s, color .2s;
}
.filters button:hover { border-color: #91abc7; color: #101923; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.controls { display: flex; gap: 8px; }
.circle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 50%;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .2s, color .2s;
}
.circle:not(:disabled):hover { background: var(--ink); color: #fff; }
.circle:disabled { color: #6d7b8c; background: #f4f6f8; cursor: default; }
.controls span { width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.previous span { transform: translateX(2px) rotate(-135deg); }
.next span { transform: translateX(-2px) rotate(45deg); }

.product-track {
  --gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  padding-block: 5px 7px;
}
.product-track::-webkit-scrollbar { display: none; }
.product-track:focus-visible { outline-offset: -3px; }
.product-list {
  display: flex;
  gap: var(--gap);
  padding: 0 var(--gutter);
  list-style: none;
  margin: 0;
}
.product-list::after { content: ""; flex: 0 0 max(0px, calc(var(--gutter) - var(--gap))); }
.product-card {
  flex: 0 0 calc((100% - var(--gap) * 3) / 4);
  min-width: 0;
  scroll-snap-align: start;
}
.product-link {
  position: relative;
  isolation: isolate;
  height: 100%;
  min-height: 295px;
  display: flex;
  flex-direction: column;
  border-radius: 21px;
  overflow: hidden;
  background: #eef2f6;
  color: var(--ink);
  text-decoration: none;
}
.product-link img { width: 100%; height: auto; aspect-ratio: 468 / 416; object-fit: cover; transition: transform .32s ease; }
.product-link:hover img { transform: scale(1.045); }
.product-link:focus-visible { outline-offset: -4px; }
.card-caption { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 6px; flex: 1; padding: 16px 13px 20px 17px; background: #eef2f6; }
.card-caption h3 { font-weight: 700; font-size: clamp(1.13rem, 1.55vw, 1.58rem); line-height: 1.12; letter-spacing: -.04em; }
.card-caption p { margin-top: 6px; font-size: .86rem; color: var(--muted); line-height: 1.35; }
.card-open {
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  font-size: 1.27rem;
  background: #fff;
  color: #243448;
  transition: background .2s, color .2s;
}
.product-link:hover .card-open { background: var(--ink); color: white; }
.progress-area { margin-top: 19px; display: flex; align-items: center; gap: 18px; }
.progress { height: 4px; background: #e6ebf1; border-radius: 12px; flex: 1; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: #2c65a9; width: 25%; transform-origin: left; }
.imagery-note { margin-top: 13px; color: var(--muted); font-size: .83rem; }
.count { min-width: 7.4rem; text-align: right; color: var(--muted); font-size: .83rem; font-variant-numeric: tabular-nums; }

.services { padding-block: 66px 76px; border-top: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 23px;
  background: #f2f5f9;
}
.service-image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.service-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(22px, 3.2vw, 44px);
}
.service-copy h3 { font-size: clamp(1.65rem, 2.9vw, 2.8rem); letter-spacing: -.055em; line-height: 1.04; }
.service-copy > p { color: var(--muted); line-height: 1.55; margin-block: 12px 22px; max-width: 47ch; }
.service-feature { width: 100%; margin-top: auto; padding-top: 17px; border-top: 1px solid #cbd7e5; }
.service-value { color: var(--accent); font-size: clamp(2rem, 3.6vw, 3.5rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.05; }
.service-feature > p + p { color: var(--muted); line-height: 1.5; margin-top: 6px; max-width: 39ch; }
.service-button { margin-top: 20px; }

.suppliers { background: #f4f6f9; padding-block: 62px 69px; }
.supplier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.supplier-grid li {
  display: grid;
  grid-template-rows: 62px auto;
  justify-items: center;
  align-items: center;
  gap: 15px;
  padding: 22px 12px 19px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  border: 1px solid #e7ecf2;
}
.supplier-grid img { width: min(100%, 126px); height: 62px; object-fit: contain; }
.supplier-grid span { font-size: .87rem; line-height: 1.4; color: var(--muted); }

.contact { padding-block: 70px; }
.contact-panel {
  border-radius: 25px;
  background: radial-gradient(ellipse at 90% 15%, #243e64 0%, #14243a 45%, #0e1928 85%);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .49fr);
  align-items: end;
  gap: 34px 60px;
  padding: clamp(30px, 5vw, 75px);
}
.contact-copy > p:not(.eyebrow) { line-height: 1.6; color: #c7d3e3; max-width: 465px; margin-top: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 22px; margin-top: 23px; }
.phone { font-weight: 650; text-decoration: none; }
.phone:hover, .contact-location a:hover { color: #cfe2ff; }
.contact-location { border-left: 1px solid #6b7d94; padding: 5px 0 6px 26px; }
.contact-location h3 { font-size: 1rem; margin-bottom: 10px; }
.contact-location address { font-style: normal; line-height: 1.6; color: #c7d3e3; margin-bottom: 12px; }
.contact-location a { font-size: .9rem; text-underline-offset: .22em; }

.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 84px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; }
.footer .brand img { width: 150px; }
.footer p { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.product-dialog {
  width: min(780px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: white;
  box-shadow: 0 24px 94px #0005;
}
.product-dialog::backdrop { background: rgb(4 13 25 / 68%); }
.detail-layout { display: grid; grid-template-columns: 45% 1fr; }
.detail-visual { background: #e9eef4; display: grid; align-items: center; }
.detail-visual img { width: 100%; height: auto; }
.detail-copy { padding: 55px 30px 30px; }
.detail-copy h2 { margin-top: 8px; font-size: clamp(2rem, 4.7vw, 3.1rem); }
.detail-description, .detail-guide { color: var(--muted); margin-block: 15px; line-height: 1.5; }
.close-dialog { position: absolute; top: 12px; right: 12px; font-size: 1.5rem; line-height: 1; }

@media (max-width: 1050px) {
  .product-card { flex-basis: calc((100% - var(--gap) * 2) / 3); }
}
@media (max-width: 810px) {
  .header .brand img { width: 175px; }
  .hero-image { width: 85%; }
  .hero-image::after { background: linear-gradient(90deg, #0b1018, rgb(11 16 24 / 81%) 21%, rgb(11 16 24 / 25%) 63%, transparent); }
  .hero-inner { min-height: 500px; }
  .hero-copy { width: min(520px, 80%); }
  .section-head { align-items: start; flex-direction: column; gap: 13px; }
  .products-head > p { max-width: 490px; }
  .product-card { flex-basis: calc((100% - var(--gap)) / 2.3); }
}
@media (max-width: 640px) {
  .header-inner { min-height: 0; grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 9px; }
  .header .brand img { width: clamp(120px, 34vw, 156px); }
  .nav-contact { grid-column: 2; grid-row: 1; min-height: 38px; padding: 8px 13px; }
  .header nav { grid-area: 2 / 1 / 3 / -1; justify-content: center; gap: clamp(24px, 8vw, 40px); }
  .header nav a { padding: 11px 2px; font-size: .88rem; }
  .service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 570px) {
  .hero-inner { min-height: 0; align-items: start; padding-block: 39px 252px; }
  .hero-image { width: 100%; top: auto; bottom: 0; height: 320px; background-position: 54% 58%; }
  .hero-image::after { background: linear-gradient(180deg, #0b1018, rgb(11 16 24 / 40%) 22%, transparent 42%); }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(3.5rem, 11.5vw, 4.4rem); margin-top: 14px; }
  .hero-text { margin-block: 16px 19px; max-width: 320px; }
  .products, .services, .suppliers, .contact { padding-block: 46px; }
  .section-head { margin-bottom: 20px; }
  .catalogue-bar { flex-wrap: wrap; gap: 12px; margin-bottom: 9px; }
  .filters { gap: 6px; }
  .filters button { padding: 7px 12px; min-height: 36px; font-size: .83rem; }
  .controls { margin-left: auto; }
  .product-track { --gap: 11px; }
  .product-card { flex-basis: 81%; }
  .product-link { min-height: 0; }
  .card-caption h3 { font-size: 1.32rem; }
  .supplier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .supplier-grid li { padding: 14px 9px; gap: 9px; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-location { border-left: 0; border-top: 1px solid #6b7d94; padding: 21px 0 0; }
  .footer-inner { padding-block: 20px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-visual img { max-height: 200px; object-fit: contain; }
  .detail-copy { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
