/* BAY ICE — layout aligned to brand mockup */

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

:root {
  --black: #000000;
  --gray-900: #0a0a0a;
  --gray-800: #121212;
  --gray-700: #1a1a1a;
  --card: #141414;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --checkout-bg: #f2f2f2;
  --checkout-text: #111111;
  --checkout-muted: #4a4a4a;
  --accent: #3498db;
  --accent-hover: #5dade2;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --radius-card: 22px;
  --radius-img: 16px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--black);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Stacking sections: next panel scrolls up and covers the previous */
.stack-panel {
  position: relative;
}

#halo.stack-panel {
  z-index: 2;
}

#skylight-grid.stack-panel {
  z-index: 3;
}

.stack-panel--cover {
  position: sticky;
  top: 0;
  min-height: 100svh;
  min-height: 100dvh;
  z-index: 10;
  box-shadow: 0 -32px 64px rgba(0, 0, 0, 0.55);
}

#featured.stack-panel--cover {
  z-index: 12;
}

#checkout.stack-panel--cover {
  z-index: 14;
  box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.12);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

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

a:hover {
  opacity: 0.75;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* —— Nav —— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 56px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.nav.nav--scrolled {
  background: rgba(0, 0, 0, 0.94);
}

.nav__group {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.nav__group--right {
  justify-content: flex-end;
}

.nav__brand {
  font-family: var(--font-serif);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-align: center;
  color: var(--text);
  white-space: nowrap;
}

.nav__search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__search svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  grid-column: 3;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, opacity 0.2s;
}

.btn:hover {
  opacity: 1;
}

.btn--shop {
  background: #fff;
  color: var(--black);
  margin-top: 28px;
  width: fit-content;
  min-width: 148px;
  min-height: 48px;
  font-size: 12px;
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 5;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.btn--shop:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.15);
}

.btn--buy {
  background: var(--accent);
  color: #fff;
  margin-top: 20px;
  padding: 12px 28px;
}

.btn--buy:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(52, 152, 219, 0.35);
}

.btn--cart {
  flex: 1;
  min-height: 48px;
  background: #fff;
  color: var(--checkout-text);
  border: 1px solid var(--checkout-text);
  border-radius: var(--radius-pill);
}

.btn--cart:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--cart__icon {
  width: 18px;
  height: 18px;
}

.btn--shopify {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 12px;
  margin-top: 4px;
}

.btn--shopify:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 28px rgba(52, 152, 219, 0.35);
}

/* —— Hero (mockup §1: Redefining Time + hero main video bg) —— */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  background: var(--black);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 32%, rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.32) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 30%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(56px + clamp(32px, 6vw, 72px)) clamp(20px, 4vw, 48px) clamp(40px, 7vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-rows: 1fr auto;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  min-height: 100svh;
  min-height: 100dvh;
}

.hero__copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  max-width: 560px;
  position: relative;
  z-index: 4;
}

.hero__cta {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero__h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero__sub {
  margin-top: clamp(14px, 2.5vw, 22px);
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.hero__sub em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
}

.hero__badge {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 160px;
  text-align: right;
}

.hero__badge-thumb {
  width: clamp(72px, 12vw, 96px);
  height: clamp(72px, 12vw, 96px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  background: radial-gradient(ellipse 100% 100% at 50% 40%, rgba(52, 152, 219, 0.35) 0%, rgba(52, 152, 219, 0.1) 50%, transparent 100%);
}

.hero__badge-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  background: transparent;
}

.hero__badge p {
  font-size: clamp(8px, 1.2vw, 10px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.45;
}

/* —— Collection sections —— */
.col-section {
  background: linear-gradient(180deg, var(--black) 0%, var(--gray-900) 45%, #1a2228 100%);
  border-top: 1px solid var(--border);
}

.col-section--skylight-grid {
  background: linear-gradient(180deg, #1a2228 0%, var(--gray-800) 50%, #252d35 100%);
}

.col-section__body {
  padding: 0 clamp(16px, 3vw, 36px) clamp(32px, 5vw, 56px);
}

.col-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 36px) 0 18px;
}

.col-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.col-viewall {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 20px);
}

.watch-card {
  background: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}

.watch-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.watch-card--spotlight {
  border-color: rgba(52, 152, 219, 0.35);
  box-shadow: 0 0 0 1px rgba(52, 152, 219, 0.12);
}

.watch-card__img-box {
  position: relative;
  height: clamp(200px, 28vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 12px;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: transparent;
}

.watch-card__img-box img {
  position: relative;
  z-index: 1;
  max-height: 100%;
  width: auto;
  max-width: 92%;
  object-fit: contain;
  border-radius: var(--radius-img);
  background: transparent;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
  transition: transform 0.55s var(--ease), filter 0.4s;
}

.watch-card:hover .watch-card__img-box img {
  transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.55));
}

/* HALO card colored glows */
.watch-card[data-halo="green"] .watch-card__img-box {
  background: radial-gradient(ellipse 85% 75% at 50% 50%, rgba(46, 204, 113, 0.25) 0%, rgba(46, 204, 113, 0.08) 40%, transparent 100%);
}

.watch-card[data-halo="purple"] .watch-card__img-box {
  background: radial-gradient(ellipse 85% 75% at 50% 50%, rgba(155, 89, 182, 0.25) 0%, rgba(155, 89, 182, 0.08) 40%, transparent 100%);
}

.watch-card[data-halo="blue"] .watch-card__img-box {
  background: radial-gradient(ellipse 85% 75% at 50% 50%, rgba(52, 152, 219, 0.25) 0%, rgba(52, 152, 219, 0.08) 40%, transparent 100%);
}

/* SKYLIGHT card colored glows */
.watch-card__img-box--sky:nth-child(1) {
  background: radial-gradient(ellipse 85% 75% at 50% 50%, rgba(241, 196, 15, 0.2) 0%, rgba(241, 196, 15, 0.05) 40%, transparent 100%);
}

.watch-card:nth-child(2) .watch-card__img-box--sky {
  background: radial-gradient(ellipse 85% 75% at 50% 50%, rgba(52, 152, 219, 0.25) 0%, rgba(52, 152, 219, 0.08) 40%, transparent 100%);
}

.watch-card:nth-child(3) .watch-card__img-box--sky {
  background: radial-gradient(ellipse 85% 75% at 50% 50%, rgba(189, 195, 199, 0.2) 0%, rgba(189, 195, 199, 0.05) 40%, transparent 100%);
}

.watch-card__name {
  padding: 14px 16px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--text);
  border-top: 1px solid var(--border);
}

/* —— Featured (simplified — gateway to modal) —— */
.featured {
  background: radial-gradient(ellipse 100% 60% at 50% 50%, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0.05) 35%, transparent 100%);
  border-top: 1px solid var(--border);
  overflow: hidden;
  transition: background 0.8s ease;
}

.featured__cover {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured__shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px) clamp(40px, 7vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.featured__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured__watch {
  width: 100%;
  max-width: min(100%, 380px);
  margin: 0 auto;
  cursor: pointer;
  border-radius: 24px;
  overflow: visible;
  background: transparent;
  perspective: 1200px;
  transition: transform 0.3s var(--ease);
}

.featured__watch:hover {
  transform: scale(1.03);
}

.featured__watch:focus {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.featured__watch img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(260px, 42vw, 400px);
  object-fit: contain;
  margin: 0 auto;
  border-radius: 20px;
  background: transparent;
  filter: drop-shadow(0 28px 56px rgba(52, 152, 219, 0.28))
    drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
  transition: transform 0.45s var(--ease), filter 0.4s;
  transform-style: preserve-3d;
  transform-origin: center center;
}

.featured__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.featured__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.featured__cta .btn--buy {
  margin-top: 4px;
  padding: 14px 32px;
}

/* —— Checkout (simplified — gateway to modal) —— */
.checkout {
  background: var(--checkout-bg);
  color: var(--checkout-text);
  padding: clamp(40px, 8vw, 80px) clamp(20px, 4vw, 48px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.checkout__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.checkout__title {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.checkout__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--checkout-muted);
  max-width: 440px;
}

.checkout .btn--shopify {
  width: auto;
  padding: 14px 36px;
  margin-top: 4px;
}

/* —— Footer —— */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 48px 24px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--text);
}

.footer__tagline {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
  margin-top: 4px;
}

.footer__links a {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
}

/* —— Reveal —— */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
}

.stack-panel--cover.js-reveal {
  opacity: 1;
  transform: none;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0, 0, 0.2, 1), transform 0.85s cubic-bezier(0, 0, 0.2, 1);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero__bg {
    object-position: 70% 42%;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0.65) 100%);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: end;
    padding-bottom: clamp(32px, 8vw, 56px);
  }

  .hero__copy {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    padding-bottom: 8vh;
  }

  .hero__badge {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    justify-self: start;
    max-width: none;
    text-align: left;
    gap: 14px;
  }

  .hero__badge p {
    text-align: left;
    max-width: 140px;
  }

  .watch-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured__shell {
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .featured__watch {
    max-width: 100%;
  }

  .featured__watch img {
    max-height: min(52vh, 360px);
  }
}

@media (max-width: 640px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .nav__group--left,
  .nav__group--right {
    display: none;
  }

  .nav__burger {
    display: flex;
    order: 2;
  }

  .nav__brand {
    order: 1;
  }

  .nav.nav--open .nav__group--left,
  .nav.nav--open .nav__group--right {
    display: flex;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 0 0;
    margin-top: 14px;
    border-top: 1px solid var(--border);
  }

  .nav.nav--open .nav__group--right {
    border-top: none;
    padding-top: 6px;
    margin-top: 0;
  }

  .hero__bg {
    object-position: 75% 38%;
  }

  .hero__inner {
    padding-top: calc(56px + 20px);
    padding-bottom: 28px;
    min-height: 100svh;
  }

  .hero__copy {
    padding-bottom: 0;
    align-self: start;
  }

  .hero__h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .hero__cta,
  .btn--shop {
    margin-top: 22px;
    padding: 14px 32px;
    min-width: 160px;
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .watch-grid {
    grid-template-columns: 1fr;
  }

  .checkout .btn--shopify {
    width: 100%;
    max-width: 320px;
  }

  .stack-panel--cover {
    min-height: 100svh;
  }

  .featured__shell {
    padding: 20px 16px 28px;
    gap: 16px;
  }

  .featured__watch img {
    max-height: min(48vh, 300px);
  }
}
