:root {
  --neutral-800: #333333;
  --neutral-500: #ffffff;
  --neutral-200: #cccccc;
  --dove-grey: #6d6e71;
  --accent: #b82929;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Roboto", "Segoe UI", Tahoma, sans-serif;
  color: var(--neutral-800);
  background: radial-gradient(
    circle at 18% 8%,
    #f4f4f4 0%,
    #f1f1f1 42%,
    #ececec 100%
  );
}

.page {
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(1.4rem, 5vw, 5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: none;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(244, 244, 244, 0.24),
    rgba(244, 244, 244, 0.3)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 74rem);
  animation: lift-in 0.88s cubic-bezier(0.21, 1, 0.28, 1) both;
}

.hero-lockup {
  --hero-lockup-shift-y: 0px;
  --hero-lockup-fade: 1;
  width: max-content;
  max-width: 100%;
  transform: translate3d(0, var(--hero-lockup-shift-y), 0);
  opacity: var(--hero-lockup-fade);
  will-change: transform, opacity;
}

.hero-pill {
  --hero-pill-pad-y: clamp(0.45rem, 0.85vw, 0.62rem);
  --hero-pill-pad-x: clamp(0.8rem, 1.4vw, 1.08rem);
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 0.5rem;
  padding: var(--hero-pill-pad-y) var(--hero-pill-pad-x);
  font-size: clamp(0.62rem, 1vw, 1.35rem);
  line-height: 1;
  white-space: nowrap;
}

.hero-title {
  margin: 0;
  position: relative;
  width: max-content;
  max-width: 100%;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 10.4vw, 9.1rem);
  line-height: 0.86;
  letter-spacing: 0.006em;
  color: var(--neutral-800);
}

.hero-title-top {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: fit-content;
}

.hero-title-top .hero-pill {
  position: absolute;
  left: 100%;
  margin-left: clamp(0.6rem, 1.2vw, 1.1rem);
  bottom: calc(var(--hero-pill-pad-y) * -1);
  transform: translateY(var(--hero-pill-auto-offset, 0px));
}

.hero-title-word {
  display: block;
}

.hero-title-word-block {
  display: block;
}

.hero-subtitle {
  --hero-subtitle-left-offset: 10vw;
  --hero-subtitle-title-max: 9999px;
  margin: clamp(0.95rem, 2.2vw, 1.5rem) 0 0 var(--hero-subtitle-left-offset);
  width: min(
    50rem,
    calc(100% - var(--hero-subtitle-left-offset)),
    var(--hero-subtitle-title-max)
  );
  /* max-width: min(
    calc(100% - var(--hero-subtitle-left-offset)),
    var(--hero-subtitle-title-max)
  ); */
  color: #202020;
  text-transform: uppercase;
  font-size: clamp(0.78rem, 1.38vw, 2rem);
  line-height: 1.26;
  letter-spacing: 0.012em;
}

.hero-subtitle-blue {
  color: #1d335b;
  font-weight: 600;
  margin-left: 0.24ch;
}

.hero-subtitle-red {
  color: #b82929;
  font-weight: 600;
  margin-left: 0.24ch;
}

.hero-subtitle-teal {
  color: #0da197;
  font-weight: 600;
  margin-left: 0.24ch;
}

.scroll-ring {
  --scroll-ring-shift-x: 0px;
  --scroll-ring-fade: 1;
  position: absolute;
  right: clamp(1rem, 5vw, 4.8rem);
  top: 50%;
  width: clamp(7.2rem, 16vw, 14.2rem);
  aspect-ratio: 1;
  transform: translate(var(--scroll-ring-shift-x), -48%);
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--neutral-800);
  opacity: var(--scroll-ring-fade);
  will-change: transform, opacity;
}

.scroll-ring svg {
  width: 100%;
  height: 100%;
  animation: spin 13s linear infinite;
}

.scroll-ring text {
  font-size: clamp(0.53rem, 0.93vw, 0.87rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--neutral-800);
}

.scroll-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  animation: bob 1.2s ease-in-out infinite;
}

.scroll-ring span img {
  width: clamp(2.1rem, 4vw, 3rem);
  height: auto;
  display: block;
}

.drag-zone {
  padding: 0;
  background: #000000;
  height: 100dvh;
  height: 100svh;
  min-height: 100vh;
}

.drag-stage {
  --split-top: 49.86%;
  --insure-focus: 0;
  --wellness-focus: 0;
  --active-focus: 0;
  --top-gray: 82%;
  --top-bright: 0.46;
  --top-sat: 0.62;
  --top-overlay: 0.9;
  --top-pos: 50%;
  --bottom-gray: 84%;
  --bottom-bright: 0.42;
  --bottom-sat: 0.58;
  --bottom-overlay: 0.9;
  --bottom-pos: 50%;
  --media-scale: 1;
  --insure-shift: 28px;
  --wellness-shift: 28px;
  --insure-header-top: 72px;
  --wellness-header-top: 72px;
  --insure-separator-opacity: 0;
  --wellness-separator-opacity: 0;
  --divider-opacity: 0.82;
  position: relative;
  width: 100vw;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  touch-action: auto;
  user-select: none;
  cursor: default;
  background: #1f2126;
}

.drag-stage:focus-visible {
  outline: 2px solid rgba(184, 41, 41, 0.84);
  outline-offset: 2px;
}

.segment {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  will-change: height, top;
}

.segment-link {
  position: absolute;
  inset: 0;
  z-index: 7;
}

.segment-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -2px;
}

.segment-top {
  top: 0;
  height: var(--split-top);
}

.segment-bottom {
  top: var(--split-top);
  height: calc(100% - var(--split-top));
}

.segment-media,
.segment-tint {
  position: absolute;
  inset: 0;
}

.segment-media {
  background-position: 50% 50%;
  background-size: cover;
  transform: translateZ(0) scale(var(--media-scale));
  will-change: transform, filter, background-position;
  backface-visibility: hidden;
  contain: paint;
}

.top-media {
  background-image: url("assets/insure_cover.png");
  background-position: 50% var(--top-pos);
  filter: grayscale(var(--top-gray)) brightness(var(--top-bright))
    saturate(var(--top-sat));
}

.bottom-media {
  background-image: url("assets/wellness_cover.png");
  background-size: cover;
  background-position: 50% var(--bottom-pos);
  filter: grayscale(var(--bottom-gray)) brightness(var(--bottom-bright))
    saturate(var(--bottom-sat));
}

.top-tint {
  background: linear-gradient(
    180deg,
    rgba(10, 16, 28, 0.54),
    rgba(9, 12, 16, 0.52)
  );
  opacity: var(--top-overlay);
}

.bottom-tint {
  background: linear-gradient(
    180deg,
    rgba(12, 12, 12, 0.56),
    rgba(12, 12, 12, 0.58)
  );
  opacity: var(--bottom-overlay);
}

.segment-divider {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--split-top);
  height: 1px;
  transform: translateY(-0.5px);
  background: rgba(255, 255, 255, var(--divider-opacity));
  z-index: 6;
}

.segment-idle-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.32));
}

.segment-idle-logo-top {
  opacity: calc(1 - var(--insure-focus));
  transform: translate(-50%, calc(-50% + (var(--insure-focus) * -10px)));
}

.segment-idle-logo-bottom {
  opacity: calc(1 - var(--wellness-focus));
  transform: translate(-50%, calc(-50% + (var(--wellness-focus) * 10px)));
}

.idle-brand {
  display: block;
  height: auto;
}

.idle-brand-insure {
  width: clamp(8.7rem, 14.4vw, 12.8rem);
}

.idle-brand-wellness {
  width: clamp(9.8rem, 16.5vw, 14.8rem);
}

.segment-content {
  position: absolute;
  left: clamp(1.5rem, 3.4vw, 3rem);
  right: clamp(1.5rem, 3.4vw, 3rem);
  top: 0;
  bottom: 0;
  color: #ffffff;
  z-index: 5;
}

.segment-content header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0;
}

.insure-content header {
  top: var(--insure-header-top);
}

.wellness-content header {
  top: var(--wellness-header-top);
}

.segment-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.3rem, 5.8vw, 2.85rem);
}

.brand {
  width: clamp(7rem, 10.5vw, 10rem);
  height: auto;
}

.brand-wide {
  width: clamp(8rem, 12vw, 11.8rem);
}

.jump-arrow {
  width: clamp(2.4rem, 4.8vw, 4.8rem);
  height: auto;
}

.segment-content h2 {
  margin: 0;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1;
  font-size: clamp(2.2rem, 5.7vw, 4rem);
  letter-spacing: 0.01em;
}

.segment-content hr {
  margin: clamp(0.52rem, 1.8vw, 0.9rem) 0 clamp(0.62rem, 2vw, 1.05rem);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.insure-content hr {
  border-top-color: rgba(255, 255, 255, var(--insure-separator-opacity));
}

.wellness-content hr {
  border-top-color: rgba(255, 255, 255, var(--wellness-separator-opacity));
}

.segment-content p {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(0.66rem, 1.44vw, 1.21rem);
  letter-spacing: 0.02em;
}

.insure-content {
  opacity: var(--insure-focus);
  transform: translateY(var(--insure-shift));
}

.wellness-content {
  opacity: var(--wellness-focus);
  transform: translateY(var(--wellness-shift));
}

.floating-pill {
  position: absolute;
  left: 50%;
  top: var(--split-top);
  transform: translate(-50%, -50%);
  width: min(25rem, calc(100% - 2rem));
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(0.66rem, 1.26vw, 1.2rem);
  color: #ffffff;
  background: rgba(184, 41, 41, 0.98);
  border-radius: 0.5rem;
  padding: 0.68rem 0.95rem;
  z-index: 8;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1440px) {
  .hero-title {
    font-size: clamp(2.8rem, 8.9vw, 7.9rem);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 80vh;
    min-height: 80svh;
    height: 80vh;
    height: 80svh;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(0.9rem, 3.8vw, 1.3rem) clamp(0.95rem, 3.8vw, 1.3rem)
      clamp(0.8rem, 3.4vw, 1.1rem);
  }

  .hero-bg,
  .hero-wash {
    display: none;
  }

  .scroll-ring {
    display: none;
  }

  .hero-content {
    min-height: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: none;
  }

  .hero-lockup {
    width: 100%;
  }

  .hero-title {
    font-size: clamp(1.95rem, min(13.4vw, 8.9svh), 3.85rem);
    line-height: 0.86;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title-top {
    display: contents;
  }

  .hero-title-top > .hero-title-word {
    order: 1;
  }

  .hero-title-word-block {
    order: 2;
  }

  .hero-title-top .hero-pill {
    order: 3;
    position: static;
    bottom: auto;
    margin-left: 0;
    margin-top: clamp(0.46rem, 1.9vw, 0.72rem);
    transform: none;
  }

  .hero-pill {
    --hero-pill-pad-y: clamp(0.42rem, 1.8vw, 0.56rem);
    --hero-pill-pad-x: clamp(0.76rem, 3.2vw, 1.02rem);
    font-size: clamp(0.6rem, 2.45vw, 0.8rem);
    line-height: 1.06;
    letter-spacing: 0.022em;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(184, 41, 41, 0.28);
    max-width: 92%;
    white-space: normal;
    text-wrap: balance;
  }

  .hero-subtitle {
    margin: clamp(0.7rem, 2.2vw, 1rem) 0 0;
    width: auto;
    max-width: 100%;
    font-size: clamp(0.68rem, 2.55vw, 0.94rem);
    line-height: 1.3;
    letter-spacing: 0.01em;
  }

  .drag-zone {
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .drag-stage {
    height: clamp(34rem, 116vw, 47rem);
    min-height: clamp(34rem, 116vw, 47rem);
    max-height: none;
  }

  .jump-arrow {
    display: none;
  }

  .insure-content,
  .wellness-content {
    opacity: 1 !important;
    transform: none !important;
  }

  .segment-content h2 {
    font-size: clamp(1.8rem, 8.4vw, 2.95rem);
  }

  .segment-content p {
    font-size: clamp(0.66rem, 2.6vw, 0.94rem);
  }

  .segment-copy {
    bottom: clamp(1rem, 4.2vw, 1.65rem);
  }

  .floating-pill {
    display: none;
  }
}

@media (max-width: 640px) {
  .segment-content {
    left: 1rem;
    right: 1rem;
  }

  .segment-copy {
    bottom: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
