:root {
  --ink: #0a0c0d;
  --ink-soft: #15191a;
  --paper: #ffffff;
  --paper-bright: #fafaf8;
  --white: #ffffff;
  --aqua: #45b9ad;
  --button-navy: #0f284d;
  --button-paper: #f7f6f3;
  --font-body: "Manrope", sans-serif;
  --font-button: "IBM Plex Sans", sans-serif;
  --line-light: rgba(255, 255, 255, 0.24);
  --line-dark: rgba(10, 12, 13, 0.15);
  --shell: min(100% - 240px, 1440px);
  --header-height: 96px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--white);
  background: var(--aqua);
}

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

button,
input,
select,
textarea {
  font-family: inherit;
}

button,
[type="button"],
[type="submit"],
[type="reset"] {
  font-family: var(--font-button);
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(48px, calc((100vw - 1440px) / 2));
  color: var(--white);
  border-bottom: 1px solid var(--line-light);
  transition:
    min-height 350ms var(--ease-out),
    background-color 350ms ease,
    backdrop-filter 350ms ease;
}

.site-header.is-scrolled {
  min-height: 72px;
  background: rgba(10, 12, 13, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  padding: 10px 0;
}

.brand img {
  width: clamp(132px, 12vw, 180px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--ink);
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__media {
  background: url("assets/models/45sc.jpg") center 45% / cover no-repeat;
  transform: scale(1.035);
  animation: hero-arrive 1.8s var(--ease-out) both;
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(3, 8, 11, 0.7) 0%, rgba(3, 8, 11, 0.2) 50%, rgba(3, 8, 11, 0.16) 100%),
    linear-gradient(0deg, rgba(4, 7, 8, 0.8) 0%, transparent 48%, rgba(0, 0, 0, 0.22) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 200px;
  padding-bottom: 100px;
}

.hero h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(60px, 6.25vw, 90px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: none;
}

.hero__subtitle {
  margin: 24px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.collection {
  padding-block: 100px 120px;
  background: var(--paper);
}

.model-series + .model-series {
  margin-top: 110px;
}

.series-heading {
  margin: 0 0 70px;
  font-size: 45px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 64px 28px;
}

.model-card {
  min-width: 0;
  text-align: center;
}

.model-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-bright);
}

.model-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.model-card:hover .model-card__image img,
.model-card:focus-within .model-card__image img {
  transform: scale(1.035);
}

.model-card__image--render {
  background: var(--white);
}

.model-card__image--render img {
  object-fit: contain;
  translate: 0 var(--model-image-offset-y, 0%);
}

/* Align the bows within the shared frame; percentages follow the image size. */
.model-card[aria-labelledby="model-venom-33t"] {
  --model-image-offset-y: -4%;
}

.model-card[aria-labelledby="model-venom-34"] {
  --model-image-offset-y: -3.5%;
}

.model-card h3 {
  margin: 22px 0 20px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.model-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.configure-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 50px;
  padding: 15px 50px;
  border: 1px solid var(--button-outline, var(--button-navy));
  border-radius: 0;
  background: transparent;
  color: var(--button-outline, var(--button-navy));
  font-family: var(--font-button);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}

.model-card__actions--variants .configure-button {
  width: min(100%, 300px);
  padding-inline: 16px;
}

.configure-button:hover,
.configure-button:focus-visible {
  border-color: var(--button-navy);
  background: var(--button-navy);
  color: var(--button-paper);
}

.configure-button:focus-visible {
  outline: 2px solid var(--button-outline, var(--button-navy));
  outline-offset: 4px;
}

.main-nav a:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 4px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.68);
  background: var(--ink);
}

.site-footer__inner {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-footer__top,
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-footer__top {
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__bottom {
  padding-top: 30px;
}

.site-footer__top > img {
  width: 146px;
  height: auto;
}

.footer-contact,
.social-links {
  display: flex;
  align-items: center;
}

.footer-contact {
  gap: clamp(24px, 4vw, 64px);
}

.social-links {
  gap: 10px;
}

.site-footer a {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition:
    color 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease;
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links a:first-child svg path {
  fill: currentColor;
  stroke: none;
}

.social-links__dot {
  fill: currentColor;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--aqua);
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--ink);
  border-color: var(--aqua);
  background: var(--aqua);
}

.site-footer a span {
  display: inline-block;
  margin-left: 8px;
  color: var(--aqua);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out);
}

.reveal--delay-1 {
  transition-delay: 100ms;
}

.reveal--delay-2 {
  transition-delay: 180ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-arrive {
  from {
    opacity: 0;
    transform: scale(1.11);
  }
  to {
    opacity: 1;
    transform: scale(1.035);
  }
}

@media (max-width: 1200px) {
  .configure-button {
    padding-inline: 24px;
    font-size: 16px;
  }
}

@media (max-width: 960px) {
  :root {
    --shell: min(100% - 48px, 1440px);
  }

  .site-header {
    padding-inline: 24px;
  }

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

  .hero__content {
    padding-top: 170px;
    padding-bottom: 90px;
  }

  .hero {
    min-height: 420px;
  }

}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 32px);
    --header-height: 76px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .main-nav {
    gap: 0;
  }

  .main-nav a {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .hero {
    min-height: 340px;
  }

  .hero__media {
    background-position: 61% center;
  }

  .hero__content {
    padding-top: 140px;
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 60px);
    line-height: 1;
  }

  .collection {
    padding-block: 64px 80px;
  }

  .model-series + .model-series {
    margin-top: 72px;
  }

  .series-heading {
    margin-bottom: 36px;
    font-size: 34px;
  }

  .model-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .site-footer__inner {
    min-height: 0;
    padding-block: 46px 42px;
  }

  .site-footer__top,
  .site-footer__bottom {
    align-items: flex-start;
  }

  .site-footer__top {
    padding-bottom: 30px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 30px;
    padding-top: 28px;
  }

  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .social-links {
    gap: 7px;
  }

  .social-links a {
    width: 36px;
    height: 36px;
  }
}

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

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

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