.hero {
  display: flex;
  flex-direction: column;
  min-height: max(680px, 100vh);
  min-height: max(680px, 100svh);
  overflow: hidden;
  position: relative;
}
.hero__background { inset: 0; position: absolute; z-index: 0 }
.hero__background img { height: 100%; object-fit: cover; object-position: 55% 58%; width: 100% }
/* Slides stack; only the first shows without motion. */
.hero__slide { inset: 0; opacity: 0; position: absolute }
.hero__slide:first-child { opacity: 1 }

@media (prefers-reduced-motion: no-preference) {
  /* Autoplaying crossfade, compositor-only (opacity), no JS. Four slides at 7s each.
     Base opacity is 0 and there is no fill mode, so a slide stays hidden until its
     delay elapses — otherwise all four would paint at once on load. */
  .hero__slide { animation: hero-slide 28s linear infinite }
  .hero__slide:nth-child(2) { animation-delay: 7s }
  .hero__slide:nth-child(3) { animation-delay: 14s }
  .hero__slide:nth-child(4) { animation-delay: 21s }
}
@keyframes hero-slide {
  0% { opacity: 0 }
  4% { opacity: 1 }
  25% { opacity: 1 }
  29% { opacity: 0 }
  100% { opacity: 0 }
}
.hero__overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .62), rgba(0, 0, 0, .38) 45%, rgba(0, 0, 0, .74));
  inset: 0;
  position: absolute;
  z-index: 1;
}
.hero__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding-bottom: clamp(28px, 4vh, 44px);
  padding-top: clamp(128px, 16vh, 172px);
  position: relative;
  z-index: 2;
}
.hero__title {
  font-size: clamp(76px, 11.5vw, 170px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .88;
  position: relative;
  z-index: 2;
}
.hero__title span { display: block; width: fit-content }
.hero__title[data-reveal] { transition-delay: .08s }
.hero-search {
  align-items: stretch;
  background: rgba(8, 8, 8, .96);
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-shrink: 0;
  /* viewport-fit=cover: keep the first field and the submit clear of the notch in landscape. */
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  position: relative;
  width: 100%;
  z-index: 4;
}
.hero-search__fields { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)) }
.hero-search__field {
  border-right: 1px solid rgba(255, 255, 255, .07);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  padding: 20px clamp(16px, 3vw, 36px);
}
.hero-search__label { color: rgba(255, 255, 255, .36); font-size: 10px; font-weight: 600; letter-spacing: .14em; pointer-events: none; text-transform: uppercase }
.hero-search__select-wrap { align-items: center; display: flex; position: relative }
.hero-search__field select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  outline: 0;
  padding-right: 22px;
  width: 100%;
}
.hero-search__field select option { background: var(--void); color: var(--cream) }
.hero-search__chevron { color: rgba(255, 255, 255, .35); flex-shrink: 0; pointer-events: none; position: absolute; right: 0 }
.hero-search__submit {
  align-items: center;
  background: var(--cream);
  color: var(--void);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  gap: 10px;
  justify-content: center;
  letter-spacing: .13em;
  min-width: 210px;
  padding: 0 clamp(20px, 3vw, 52px);
  text-transform: uppercase;
  white-space: nowrap;
}

.credibility { background: #080e16; border-bottom: 1px solid var(--stone); border-top: 1px solid var(--stone); padding-block: clamp(28px, 4vw, 48px) }
.credibility__grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)) }
.credibility-card {
  background: #0e141d;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: clamp(22px, 2.5vw, 30px);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.credibility-card__icon,
.trust-bar__item svg {
  color: var(--scot-lift);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}
.credibility-card__icon { height: 34px; width: 34px }
.credibility-card h2 { font-size: clamp(24px, 2.2vw, 31px); font-weight: 400; letter-spacing: .06em; line-height: 1.02; margin-top: auto; text-transform: uppercase }
.credibility-card p { color: var(--ash); font-size: 14px; line-height: 1.35; margin-top: 14px }

.intro { padding-top: clamp(110px, 13vw, 160px) }
.intro__grid {
  align-items: start;
  display: grid;
  gap: 24px 80px;
  grid-template-columns: 1.4fr 1fr;
}
.intro__statement {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.intro__side { align-items: flex-start; color: var(--ash); display: flex; flex-direction: column; gap: 32px; padding-top: 5px }
.intro__side .pill { color: var(--cream) }

.trust-bar { padding-top: clamp(90px, 10vw, 130px) }
.trust-bar__inner {
  background: #0c121a;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
}
.trust-bar__item {
  align-items: flex-start;
  border-left: 1px solid var(--stone);
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  min-height: 126px;
  padding: 22px 18px;
  transition: background .25s var(--ease);
}
.trust-bar__item:first-child { border-left: 0 }
.trust-bar__item svg { height: 24px; width: 24px }
.trust-bar__item span { font-size: 13px; line-height: 1.25 }

.featured-inventory { padding-bottom: clamp(96px, 10vw, 150px); padding-top: clamp(130px, 14vw, 180px) }
.featured-inventory__head { align-items: flex-end; display: flex; gap: 32px; justify-content: space-between }
.featured-inventory__head h2 { font-size: clamp(52px, 7vw, 89px); font-weight: 400; letter-spacing: -.04em; line-height: .98 }
.featured-inventory__aside { align-items: flex-start; display: flex; flex-direction: column; gap: 20px; max-width: 36ch }
.featured-inventory__aside p { color: var(--ash); font-size: 15px; line-height: 1.5 }
.featured-inventory__grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 72px) }
.featured-inventory__aside[data-reveal] { transition-delay: .08s }
.featured-inventory__grid[data-reveal] { transition-delay: .12s }
.featured-card { background: #0e141d; border: 1px solid var(--stone); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: border-color .25s var(--ease), transform .25s var(--ease) }
.featured-card__media { aspect-ratio: 3 / 2; background: #232830; overflow: hidden; position: relative }
.featured-card__media img { height: 100%; object-fit: cover; transition: transform .45s var(--ease); width: 100% }
.featured-card__badge { background: var(--cream); border-radius: var(--pill); color: var(--void); font-size: 11px; left: 14px; padding: 6px 10px; position: absolute; top: 14px }
.featured-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px }
.featured-card__meta { color: var(--scot-lift); font-size: 12px; letter-spacing: .08em; text-transform: uppercase }
.featured-card h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 400; letter-spacing: -.035em; line-height: 1; margin-top: 10px }
.featured-card__trim { color: var(--ash); font-size: 14px; margin-top: 10px }
.featured-card__foot { align-items: center; border-top: 1px solid var(--stone); display: flex; justify-content: space-between; margin-top: auto; padding-top: 20px }
.featured-card__price { font-size: 22px }
.featured-card__view { color: var(--scot-lift); font-size: 13px }

.source-anything { padding-top: clamp(130px, 14vw, 180px) }
.source-anything__grid { align-items: center; display: grid; gap: clamp(48px, 7vw, 96px); grid-template-columns: .9fr 1.1fr }
.source-anything__copy { align-items: flex-start; display: flex; flex-direction: column }
.source-anything h2 {
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .98;
  margin-top: 18px;
}
.source-anything__lead { color: var(--ash); margin-top: 30px; max-width: 54ch }
.source-anything__steps { border-top: 1px solid var(--stone); margin: 40px 0; width: 100% }
.source-anything__steps li { align-items: baseline; border-bottom: 1px solid var(--stone); display: grid; gap: 16px; grid-template-columns: 30px 90px 1fr; padding: 14px 0 }
.source-anything__steps span { color: var(--scot-lift); font-size: 12px }
.source-anything__steps strong { font-size: 16px; font-weight: 500 }
.source-anything__steps small { color: var(--ash); font-size: 14px }
.source-anything__media { overflow: hidden; position: relative }
.source-anything__media img { aspect-ratio: 3 / 2; border-radius: var(--radius); height: auto; object-fit: cover; width: 100% }
.source-anything__media figcaption { background: var(--cream); border-radius: var(--pill); bottom: 20px; color: var(--void); font-size: 13px; left: 20px; padding: 7px 14px; position: absolute }

.home-close { border-top: 1px solid var(--stone); padding: clamp(110px, 14vw, 180px) 0 }
.home-close__grid { align-items: stretch; display: grid; gap: clamp(36px, 6vw, 84px); grid-template-columns: minmax(230px, .56fr) 1.44fr }
.home-close__mark {
  background: var(--scot);
  border-radius: var(--radius);
  min-height: 100%;
  overflow: hidden;
  position: relative;
}
.home-close__mark img { height: 100%; left: 0; object-fit: cover; object-position: center; position: absolute; top: 0; width: 100% }
.home-close__inner { align-items: flex-start; display: flex; flex-direction: column }
.home-close h2 {
  font-size: clamp(58px, 8vw, 108px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .94;
  margin-top: 24px;
}
.home-close__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px }
.home-close__copy { color: var(--ash); font-size: clamp(16px, 1.5vw, 20px); margin-top: 30px; max-width: 65ch }

/* Hover only where a hover exists — on touch every :hover sticks after a tap and a lifted
   card or tinted cell stays that way. :focus-visible (swiss.css) stays unconditional. */
@media (hover: hover) and (pointer: fine) {
  .hero-search__submit:hover { opacity: .8 }
  .credibility-card:hover { border-color: var(--scot); box-shadow: 0 18px 46px rgba(0, 0, 0, .18) }
  .trust-bar__item:hover { background: rgba(59, 90, 122, .1) }
  .featured-card:hover { border-color: var(--scot-lift); transform: translateY(-4px) }
  .featured-card:hover img { transform: scale(1.035) }
}

/* iOS zooms the whole page when a focused field computes under 16px. Class-level so it
   outranks the bare element net in swiss.css. */
@media (pointer: coarse) {
  .hero-search__field select { font-size: 16px }
}

@media (max-width: 1000px) {
  .credibility__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .intro__grid { gap: 32px; grid-template-columns: 1fr }
  .trust-bar__inner { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .trust-bar__item { border-top: 1px solid var(--stone) }
  .trust-bar__item:nth-child(-n+3) { border-top: 0 }
  .trust-bar__item:nth-child(3n+1) { border-left: 0 }
  .featured-inventory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .featured-card:last-child:nth-child(odd) { grid-column: 1 / -1 }
  .source-anything__grid { grid-template-columns: 1fr }
  .home-close__grid { grid-template-columns: 1fr }
  .home-close__mark { min-height: 220px }
}

@media (max-width: 720px) {
  .hero { min-height: max(620px, 100vh); min-height: max(620px, 100svh) }
  .hero__inner { justify-content: flex-start; padding-bottom: 20px; padding-top: calc(var(--nav-h) + 24px) }
  .hero__title { font-size: clamp(52px, 16vw, 78px); line-height: .92; margin-top: 52px }
  .hero__background img { object-position: 57% center }
  .hero-search { flex-direction: column }
  .hero-search__fields { grid-template-columns: 1fr }
  .hero-search__field { border-bottom: 1px solid rgba(255, 255, 255, .06); border-right: 0; padding: 14px 24px }
  .hero-search__submit { justify-content: space-between; min-height: 58px; padding: 20px 24px; width: 100% }
  .credibility { padding-block: 20px }
  .credibility__grid { gap: 10px }
  .credibility-card { min-height: 220px; padding: 20px 18px }
  /* Sized to the half-width card: TOGETHER / INTEGRITY cannot wrap and overflow it at 6vw. */
  .credibility-card h2 { font-size: clamp(16px, 5vw, 28px) }
  .intro { padding-top: 96px }
  .intro__statement { font-size: 34px }
  .intro__side { gap: 24px }
  .trust-bar { padding-top: 86px }
  .trust-bar__inner { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .trust-bar__item { min-height: 116px; padding: 18px 16px }
  .trust-bar__item:nth-child(-n+3) { border-top: 1px solid var(--stone) }
  .trust-bar__item:nth-child(-n+2) { border-top: 0 }
  .trust-bar__item:nth-child(3n+1) { border-left: 1px solid var(--stone) }
  .trust-bar__item:nth-child(odd) { border-left: 0 }
  .featured-inventory { padding-top: 110px }
  .featured-inventory__head { align-items: flex-start; flex-direction: column }
  .featured-inventory__head h2 { font-size: 48px }
  .featured-inventory__grid { grid-template-columns: 1fr; margin-top: 42px }
  .featured-card:last-child:nth-child(odd) { grid-column: auto }
  .source-anything { padding-top: 120px }
  .source-anything h2 { font-size: clamp(44px, 13vw, 64px) }
  .source-anything__steps li { gap: 10px; grid-template-columns: 24px 72px 1fr }
  .source-anything__media { order: -1 }
  .source-anything__media figcaption { bottom: 14px; left: 14px }
  .home-close { padding-block: 120px }
  .home-close__mark { display: none }
  .home-close h2 { font-size: clamp(50px, 14vw, 72px) }
  .home-close__actions { align-items: stretch; flex-direction: column; width: 100% }
  .home-close__actions .pill { width: 100% }
}

@media (min-width: 721px) {
  .hero__title span { white-space: nowrap }
}

@media (max-width: 380px) {
  .hero__title { font-size: 56px }
}

/* Landscape phones: the px floor would centre the title past the fold, and vw type is
   sized off the long edge. Let the hero grow to its content instead. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100vh; min-height: 100svh }
  .hero__title { font-size: clamp(52px, 20vh, 96px) }
}
