@font-face {
  font-family: 'ABC Oracle';
  src: url('../fonts/ABCOracleVariable.woff2') format('woff2'),
       url('../fonts/ABCOracleVariable.woff') format('woff');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'ABC Arizona Text';
  src: url('../fonts/ABCArizonaTextVariable.woff2') format('woff2'),
       url('../fonts/ABCArizonaTextVariable.woff') format('woff');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --dark-cream: #E9E0C9;
  --cream: #F6F2E7;
  --cacao: #362C19;
  --dark-star: #071A2E;
  --white: #FFFFFF;
  --edge: 32px;
  --cta-h: 50px;
  --bars-h: 50svh;
  --open-w: calc(var(--bars-h) * 9 / 16 + 432px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background: var(--dark-cream);
  color: var(--cacao);
  font-family: 'ABC Oracle', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

img, video {
  display: block;
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Logo ---------- */

.site-logo {
  position: fixed;
  top: 14px;
  left: 16px;
  width: calc(50vw - var(--edge));
  z-index: 10;
  color: var(--cacao);
  transition: color 0.9s ease;
  animation: fade-in 0.5s ease 0.3s both;
  pointer-events: none;
}

.site-logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.site-logo path {
  fill: currentColor;
}

.site-logo.over-blue {
  color: var(--white);
}

/* ---------- CTAs ---------- */

.cta-row {
  display: flex;
  gap: 2px;
  width: 100%;
}

.cta-row .cta {
  flex: 1 0 0;
  min-width: 0;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--cta-h);
  padding: 16px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: clip;
  transition: opacity 0.2s ease;
}

.cta:hover {
  opacity: 0.9;
}

.cta-light {
  background: var(--cream);
  color: var(--cacao);
}

.cta-dark {
  background: var(--cacao);
  color: var(--white);
}

.cta-arrow {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.target-mark {
  flex-shrink: 0;
}

/* ---------- Land module (copy + growing bars) ---------- */

.module-land {
  position: relative;
  z-index: 30;
  height: 200svh;
}

.land-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
}

.hero-copy {
  position: absolute;
  top: 126px;
  right: var(--edge);
  width: 460px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fade-in 0.5s ease 0.3s both;
}

.review {
  font-size: 12px;
  letter-spacing: -0.04em;
  line-height: 1;
}

h1 {
  font-family: 'ABC Arizona Text', Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

/* ---------- Flavor bars (desktop) ---------- */

.slices {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bars-h);
  display: flex;
}

.slices,
.slices * {
  cursor: none;
}

.slices .slice-cta,
.slices .slice-cta * {
  cursor: pointer;
}

.polygon {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
  z-index: 20;
  opacity: 0;
  transition: transform 0.08s linear, opacity 0.25s ease;
  pointer-events: none;
}

.polygon.visible {
  opacity: 1;
}

.slice {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  background: var(--slice-bg);
  overflow: clip;
  transition: flex-basis 0.3s cubic-bezier(0.4, 0, 0.2, 1), flex-grow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slice.open {
  flex: 0 0 var(--open-w);
}

.slice-inner {
  display: flex;
  align-items: stretch;
  height: 100%;
  width: var(--open-w);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.slice.open .slice-inner {
  opacity: 1;
  transition: opacity 0.25s ease 0.05s;
}

.slice-photo {
  height: 100%;
  aspect-ratio: 9 / 16;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.slice-details {
  width: 432px;
  flex-shrink: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  color: var(--slice-txt);
}

.slice-eyebrow {
  font-size: 12px;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.slice-name {
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.badges {
  display: flex;
  gap: 4px;
}

.badge {
  display: flex;
  align-items: center;
  height: 29px;
  padding: 0 10px;
  border: 1.5px solid var(--slice-txt);
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.slice-desc {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  max-width: 336px;
}

.slice-cta {
  width: 100%;
  background: var(--slice-txt);
  color: var(--slice-bg);
}

/* ---------- Mobile top bar + card carousel ---------- */

.mobile-topbar {
  display: none;
}

.module-carousel {
  display: none;
}

/* ---------- Video module ---------- */

.module-video {
  position: relative;
  height: 200svh;
  background: var(--dark-star);
}

.video-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 200svh;
}

.video-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-copy {
  position: sticky;
  top: 0;
  height: 100svh;
  width: 50%;
  display: flex;
  align-items: center;
}

.video-copy-inner {
  margin-left: var(--edge);
  width: 460px;
  max-width: calc(100% - 2 * var(--edge));
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--white);
}

.video-copy-inner h2 {
  font-family: 'ABC Arizona Text', Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.video-copy-inner p {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

/* ---------- Mobile ---------- */

@media (max-width: 960px) {
  :root {
    --edge: 16px;
  }

  .site-logo {
    position: absolute;
    top: 72px;
    left: 8px;
    width: calc(100vw - 16px);
  }

  .hide-mobile {
    display: none;
  }

  .mobile-topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 50;
    height: 48px;
    cursor: pointer;
  }

  .tslice {
    flex: 1 1 0;
    min-width: 0;
    background: var(--slice-bg);
    transition: flex-grow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-topbar.engaged .tslice.active {
    flex-grow: 4.8;
  }

  .module-land {
    height: auto;
  }

  .land-sticky {
    position: static;
    height: auto;
    overflow: visible;
  }

  .slices,
  .polygon {
    display: none;
  }

  .hero-copy {
    position: static;
    width: auto;
    margin: 0;
    padding: calc((100vw - 16px) * 0.4288 + 48px) var(--edge) 0;
  }

  .module-carousel {
    display: block;
    padding: 24px 0 60px;
  }

  .polygon-mobile {
    position: relative;
    z-index: 60;
    width: 96px;
    height: 96px;
    left: 0;
    margin: 0 0 -4px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3.5s ease-in-out infinite;
  }

  .cards {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 47px calc((100vw - 313px) / 2) 0;
    scrollbar-width: none;
  }

  .cards::-webkit-scrollbar {
    display: none;
  }

  .bar-card {
    flex: 0 0 313px;
    scroll-snap-align: center;
    background: var(--slice-bg);
    color: var(--slice-txt);
    border-radius: 4px;
    overflow: clip;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .bar-card.active {
    transform: translateY(-47px);
  }

  .card-img {
    height: 255px;
    background-size: cover;
    background-position: center;
  }

  .card-details {
    padding: 18px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    color: var(--slice-txt);
  }

  .card-details .slice-desc {
    max-width: none;
  }

  .card-details .slice-cta {
    margin-top: 2px;
  }

  .module-video {
    height: auto;
  }

  .video-media {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100svh;
  }

  .video-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    min-height: 100svh;
    background: var(--dark-star);
  }

  .video-copy-inner {
    margin: 0 var(--edge);
    width: auto;
    max-width: none;
  }
}

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

  .site-logo,
  .cta-dock,
  .hero-copy {
    animation-duration: 0.01s;
    animation-delay: 0s;
  }

  .polygon-mobile {
    animation: none;
  }

  .slice,
  .tslice,
  .bar-card,
  .polygon {
    transition-duration: 0.01s;
  }
}
