:root {
  --adrin-v2-carbon: #151515;
  --adrin-v2-bone: #f2efe9;
  --adrin-v2-paper: #faf8f4;
  --adrin-v2-concrete: #9b9995;
  --adrin-v2-teal: #397a7d;
  --adrin-v2-line: rgba(21, 21, 21, 0.14);
  --adrin-v2-container: 1440px;
}

body {
  background: var(--adrin-v2-bone);
  color: var(--adrin-v2-carbon);
}

[ui-layout="navbar"] {
  background: rgba(242, 239, 233, 0.96);
  border-color: var(--adrin-v2-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[ui-layout="navbar"] .name,
[ui-layout="footer"] .name {
  font-weight: 800;
  letter-spacing: 0.16em;
}

.adrin-v2-shell {
  width: min(100%, var(--adrin-v2-container));
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 4rem);
}

.adrin-v2-kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.adrin-v2-heading {
  margin: 0;
  font-family: var(--font-heading-family);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.adrin-v2-button {
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: #fff;
  background: var(--adrin-v2-teal);
  border: 1px solid var(--adrin-v2-teal);
  border-radius: 6px;
  font-family: var(--font-button-family);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.adrin-v2-button:hover {
  background: #2d6669;
  transform: translateY(-1px);
}

.adrin-v2-media {
  position: relative;
  overflow: hidden;
  background: #e5e1db;
}

.adrin-v2-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: var(--media-fit, cover);
  object-position: var(--media-x, 50%) var(--media-y, 50%);
}

.adrin-v2-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.adrin-v2-media[data-ratio="square"] { aspect-ratio: 1 / 1; }
.adrin-v2-media[data-ratio="portrait"] { aspect-ratio: 4 / 5; }
.adrin-v2-media[data-ratio="landscape"] { aspect-ratio: 4 / 3; }
.adrin-v2-media[data-ratio="wide"] { aspect-ratio: 16 / 9; }

/* Hero: image and content never overlap, so either can be replaced safely. */
.adrin-v2-hero {
  background: var(--adrin-v2-carbon);
  color: #fff;
}

.adrin-v2-hero__media {
  min-height: 0;
}

.adrin-v2-hero__content {
  padding: 2rem 1.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}

.adrin-v2-hero__title {
  max-width: 11ch;
}

.adrin-v2-hero__description {
  max-width: 34rem;
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.6;
}

.adrin-v2-hero__button {
  width: 100%;
}

/* Marquee */
.adrin-v2-marquee {
  overflow: hidden;
  color: #fff;
  background: var(--adrin-v2-carbon);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.adrin-v2-marquee__track {
  width: max-content;
  min-width: 100%;
  padding-block: 0.8rem;
  display: flex;
  gap: 2rem;
  animation: adrin-marquee var(--marquee-duration, 28s) linear infinite;
}

.adrin-v2-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.adrin-v2-marquee__item::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--adrin-v2-teal);
}

@keyframes adrin-marquee {
  to { transform: translateX(-50%); }
}

/* Product focus */
.adrin-v2-product {
  padding-block: clamp(3rem, 8vw, 7rem);
  background: var(--adrin-v2-bone);
}

.adrin-v2-product__grid {
  display: grid;
  gap: 1.5rem;
}

.adrin-v2-product__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.adrin-v2-product__title {
  font-size: clamp(2.25rem, 6vw, 5.25rem);
}

.adrin-v2-product__price {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
}

.adrin-v2-product__description {
  max-width: 34rem;
  margin: 0;
  color: #514d49;
  line-height: 1.65;
}

.adrin-v2-product__swatches {
  display: flex;
  gap: 0.65rem;
}

.adrin-v2-product__swatch {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid var(--adrin-v2-bone);
  border-radius: 50%;
  outline: 1px solid rgba(21,21,21,0.22);
  background: var(--swatch-color);
}

.adrin-v2-product__media {
  border-radius: 8px;
}

.adrin-v2-product__button {
  width: 100%;
}

/* Engineering */
.adrin-v2-engineering {
  padding-block: clamp(3rem, 8vw, 6rem);
  color: #fff;
  background: var(--adrin-v2-carbon);
}

.adrin-v2-engineering__grid {
  display: grid;
  gap: 1.75rem;
}

.adrin-v2-engineering__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.adrin-v2-engineering__title {
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.adrin-v2-engineering__features {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
}

.adrin-v2-engineering__feature {
  padding-block: 1rem;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.adrin-v2-engineering__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--adrin-v2-teal);
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 50%;
}

.adrin-v2-engineering__feature strong {
  display: block;
  font-size: 1rem;
}

.adrin-v2-engineering__feature span {
  color: rgba(255,255,255,0.64);
  font-size: 0.86rem;
}

.adrin-v2-engineering__media {
  border-radius: 8px;
  background: #242424;
}

/* Reusable media cards */
.adrin-v2-cards {
  padding-block: clamp(2.75rem, 7vw, 5.5rem);
  background: var(--section-bg, var(--adrin-v2-bone));
  color: var(--section-fg, var(--adrin-v2-carbon));
}

.adrin-v2-cards__head {
  margin-bottom: 1.35rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.adrin-v2-cards__title {
  font-size: clamp(1.8rem, 5vw, 3.7rem);
}

.adrin-v2-cards__link {
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.adrin-v2-cards__track {
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(76%, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  list-style: none;
}

.adrin-v2-cards__track::-webkit-scrollbar { display: none; }

.adrin-v2-card {
  min-width: 0;
  scroll-snap-align: start;
}

.adrin-v2-card__link {
  color: inherit;
  text-decoration: none;
}

.adrin-v2-card__media {
  border-radius: 8px 8px 0 0;
}

.adrin-v2-card__copy {
  min-height: 54px;
  padding: 0.85rem 0.9rem;
  background: var(--card-bg, rgba(255,255,255,0.5));
  border: 1px solid var(--adrin-v2-line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.adrin-v2-card__copy strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.adrin-v2-card__copy span {
  display: block;
  margin-top: 0.2rem;
  color: #6a6560;
  font-size: 0.84rem;
}

.adrin-v2-card--review {
  min-height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card-bg, #fff);
  border: 1px solid var(--adrin-v2-line);
  border-radius: 8px;
}

.adrin-v2-card--review .stars {
  letter-spacing: 0.15em;
}

.adrin-v2-card--review blockquote {
  margin: 1rem 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.adrin-v2-card--review cite {
  color: #6a6560;
  font-size: 0.82rem;
  font-style: normal;
}

/* Trust */
.adrin-v2-trust {
  padding-block: 1.25rem;
  background: var(--adrin-v2-paper);
  border-top: 1px solid var(--adrin-v2-line);
  border-bottom: 1px solid var(--adrin-v2-line);
}

.adrin-v2-trust__items {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
}

.adrin-v2-trust__item {
  padding: 0.8rem 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--adrin-v2-line);
}

.adrin-v2-trust__item:last-child { border-bottom: 0; }

.adrin-v2-trust__item strong {
  display: block;
  font-size: 0.92rem;
}

.adrin-v2-trust__item span {
  display: block;
  color: #716c67;
  font-size: 0.8rem;
}

/* Fixed mobile conversion bar */
.adrin-v2-sticky {
  position: fixed;
  z-index: 30;
  inset-inline: 0;
  bottom: 0;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr minmax(150px, 44%);
  align-items: center;
  gap: 0.75rem;
  background: rgba(21,21,21,0.97);
  box-shadow: 0 -10px 28px rgba(0,0,0,0.16);
}

.adrin-v2-sticky__product {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
}

.adrin-v2-sticky__thumb {
  width: 48px;
  height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #eeeae4;
  border-radius: 5px;
}

.adrin-v2-sticky__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.adrin-v2-sticky__meta {
  min-width: 0;
}

.adrin-v2-sticky__meta strong,
.adrin-v2-sticky__meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adrin-v2-sticky__meta span {
  color: rgba(255,255,255,0.68);
  font-size: 0.82rem;
}

.adrin-v2-sticky__button {
  min-height: 48px;
}

body:has(.adrin-v2-sticky) [ui-layout="footer"] {
  padding-bottom: 84px;
}

@media (min-width: 769px) {
  .adrin-v2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.75fr);
    min-height: 700px;
  }

  .adrin-v2-hero__media {
    min-height: 700px;
  }

  .adrin-v2-hero__content {
    padding: clamp(3rem, 6vw, 6rem);
  }

  .adrin-v2-hero__button { width: auto; }

  .adrin-v2-product__grid {
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.6fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 7rem);
  }

  .adrin-v2-product__media { order: 2; }
  .adrin-v2-product__copy { order: 1; }
  .adrin-v2-product__button { width: auto; }

  .adrin-v2-engineering__grid {
    grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1.35fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
  }

  .adrin-v2-engineering__media { order: 2; }
  .adrin-v2-engineering__content { order: 1; }

  .adrin-v2-cards__track {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(var(--columns-desktop, 3), minmax(0, 1fr));
    overflow: visible;
  }

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

  .adrin-v2-trust__item {
    padding: 0.5rem 1.5rem;
    border-bottom: 0;
    border-inline-end: 1px solid var(--adrin-v2-line);
  }

  .adrin-v2-trust__item:last-child { border-inline-end: 0; }

  .adrin-v2-sticky { display: none; }
  body:has(.adrin-v2-sticky) [ui-layout="footer"] { padding-bottom: 0; }
}

@media (max-width: 768px) {
  .adrin-v2-hero__media[data-ratio-mobile="portrait"] { aspect-ratio: 4 / 5; }
  .adrin-v2-hero__media[data-ratio-mobile="square"] { aspect-ratio: 1 / 1; }
  .adrin-v2-hero__media[data-ratio-mobile="landscape"] { aspect-ratio: 4 / 3; }

  .adrin-v2-cards__head {
    align-items: center;
  }

  .adrin-v2-cards__link {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .adrin-v2-marquee__track { animation: none; }
}
