/* ground | shaking — responsive two-concept homepage slider */
:root {
  color-scheme: dark;
  --gs-red: #C00000;
  --gs-white: #FFFFFF;
  --page-x: clamp(24px, 5.65vw, 92px);
  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: "Montserrat", "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--gs-red);
  color: var(--gs-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.landing {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: var(--gs-red);
}

.slides { position: relative; min-height: 100svh; }

.slide {
  position: absolute;
  inset: 0;
  min-height: 100svh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(1.25rem);
  transition: opacity 850ms ease, transform 850ms ease, visibility 850ms;
}

.slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.slide-inner {
  width: min(100%, 1600px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(34px, 5.15vh, 68px) var(--page-x) clamp(118px, 14vh, 172px);
  display: flex;
  flex-direction: column;
}

.brand {
  width: fit-content;
  display: inline-block;
  color: var(--gs-white);
  font-size: clamp(15px, 1.55vw, 22px);
  font-weight: 400;
  letter-spacing: .075em;
  text-decoration: none;
  transition: opacity .2s ease;
}
.brand span { font-weight: 500; }
.brand:hover { opacity: .78; }

.audience { margin-top: clamp(54px, 6.5vh, 88px); }
.audience h1 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(22px, 2.35vw, 34px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.025em;
}

.advantage { margin-top: clamp(54px, 6.1vh, 78px); }
.advantage h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.05vw, 30px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.advantage p {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(15px, 1.6vw, 21px);
  line-height: 1.48;
  letter-spacing: .035em;
}

.primary-action {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.3vw, 34px);
  margin-top: clamp(56px, 7.1vh, 92px);
}
.pill-button {
  min-height: 64px;
  min-width: min(420px, 42vw);
  padding: 18px 34px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--gs-white);
  border-radius: 999px;
  background: var(--gs-white);
  color: var(--gs-red);
  font-family: var(--font-display);
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pill-button:hover {
  background: transparent;
  color: var(--gs-white);
  transform: translateY(-2px);
  box-shadow: 0 9px 28px rgb(0 0 0 / 12%);
}
.pill-button:focus-visible, .brand:focus-visible, .closing-line:focus-visible,
.microcopy {
  margin: 0;
  font-size: clamp(14px, 1.45vw, 20px);
  line-height: 1.45;
}

.secondary-action {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.1vw, 30px);
  margin-top: clamp(66px, 10vh, 128px);
}
.secondary-action p {
  margin: 0;
  font-size: clamp(17px, 1.9vw, 25px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.secondary-action .pill-button { min-width: min(370px, 38vw); }

.positioning {
  max-width: 820px;
  margin: clamp(60px, 8.4vh, 108px) 0 0;
  font-size: clamp(15px, 1.55vw, 21px);
  line-height: 1.5;
  letter-spacing: .018em;
}

.closing-line {
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  padding-top: clamp(48px, 8vh, 100px);
  align-self: stretch;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.75vw, 25px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .035em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .2s ease;
}
.closing-line:hover { opacity: .78; }

.copyright {
  position: absolute;
  z-index: 5;
  right: 20px;
  bottom: clamp(22px, 4.8vh, 54px);
  left: 20px;
  margin: 0;
  color: var(--gs-white);
  font-size: clamp(12px, 1.25vw, 16px);
  line-height: 1.4;
  text-align: center;
  letter-spacing: .01em;
}

.progress-track {
  position: absolute;
  z-index: 12;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgb(255 255 255 / 20%);
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gs-white);
  transform-origin: left center;
}

@media (min-width: 1500px) {
  .slide-inner { padding-left: max(var(--page-x), calc((100vw - 1420px) / 2)); padding-right: max(var(--page-x), calc((100vw - 1420px) / 2)); }
}

@media (max-width: 760px) {
  .landing, .slides, .slide, .slide-inner { min-height: 100svh; }
  .slide { overflow-y: auto; }
  .slide-inner {
    min-height: 100svh;
    padding: 28px 24px 142px;
  }
  .brand { font-size: 16px; }
  .audience { margin-top: 54px; }
  .audience h1 { font-size: clamp(23px, 6.1vw, 31px); line-height: 1.25; }
  .desktop-break { display: none; }
  .advantage { margin-top: 48px; }
  .advantage h2 { max-width: 560px; font-size: clamp(19px, 5vw, 25px); line-height: 1.2; }
  .advantage p { font-size: 16px; line-height: 1.55; }
  .primary-action { align-items: flex-start; flex-direction: column; gap: 13px; margin-top: 42px; }
  .pill-button, .secondary-action .pill-button { width: 100%; min-width: 0; min-height: 58px; padding: 16px 20px; font-size: 13px; }
  .microcopy { font-size: 14px; }
  .secondary-action { align-items: stretch; flex-direction: column; gap: 17px; margin-top: 52px; }
  .secondary-action p { font-size: 19px; }
  .positioning { margin-top: 48px; font-size: 16px; line-height: 1.55; }
  .closing-line { margin-top: 54px; padding-top: 0; padding-bottom: 24px; font-size: 16px; text-align: left; }
  .copyright { bottom: 18px; left: 22px; right: 22px; max-width: 70%; font-size: 11px; text-align: left; }
}

@media (max-width: 380px) {
  .slide-inner { padding-right: 19px; padding-left: 19px; }
  .audience h1 { font-size: 22px; }
  .advantage h2 { font-size: 18px; }
  .copyright { max-width: 66%; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
