/* Apsara Wholesale — landing page
   Palette and layout derived from the "Apsara Landing v2" design. */

:root {
  --bg:          #16120E;
  --bg-deep:     #0F0C09;
  --bg-panel:    #1A1510;
  --card:        #1F1913;

  --gold:        #D9A441;
  --gold-light:  #E8C878;
  --gold-dim:    #C9A24B;
  --gold-hover:  #F0D794;

  --cream:       #F0E4CC;
  --cream-strong:#F5E6C8;
  --muted:       rgba(240, 228, 204, 0.72);
  --muted-soft:  rgba(240, 228, 204, 0.60);

  --line:        rgba(217, 164, 65, 0.18);
  --line-2:      rgba(217, 164, 65, 0.25);
  --line-3:      rgba(217, 164, 65, 0.35);
  --line-4:      rgba(217, 164, 65, 0.50);

  --serif: 'Marcellus', 'Times New Roman', serif;
  --sans:  'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shell: 1120px;
  --pad-x: clamp(20px, 5vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.reels-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video { max-width: 100%; }
img { height: auto; border: 0; }

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold-hover); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--cream-strong); margin: 0; }

::selection { background: var(--gold-light); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--bg); }

/* ---------------------------------------------------------------- Top bar */

.topbar {
  background: var(--bg-deep);
  color: var(--gold-dim);
  font-size: clamp(11.5px, 2.6vw, 13px);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 3vw, 32px);
  padding: 8px var(--pad-x);
  flex-wrap: wrap;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.topbar__contact { display: inline-flex; gap: 8px; align-items: center; opacity: 0.85; }
.topbar a { color: inherit; }
.topbar a:hover { color: var(--gold-light); }

/* ---------------------------------------------------------------- Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad-x);
  background: rgba(22, 18, 14, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(217, 164, 65, 0.22);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: clamp(40px, 9vw, 56px); height: clamp(40px, 9vw, 56px); object-fit: contain; flex: none; }
.brand__name {
  font-family: var(--serif);
  font-size: clamp(17px, 4.2vw, 24px);
  color: var(--gold-light);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand--footer { margin-bottom: 18px; gap: 12px; }
.brand--footer img { width: 44px; height: 44px; }
.brand--footer .brand__name { font-size: 20px; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--cream); }
.site-nav a:hover { color: var(--gold-light); }

/* ---------------------------------------------------------------- Shared */

.section { padding: clamp(56px, 9vw, 96px) var(--pad-x); }
.section--panel {
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--carousel { padding-left: 0; padding-right: 0; padding-block: clamp(52px, 8vw, 88px); }

.section__head { text-align: center; margin: 0 auto 24px; padding: 0 var(--pad-x); max-width: var(--shell); }
.section__head h2 { font-size: clamp(28px, 5.6vw, 40px); margin: 0; }

.eyebrow {
  color: var(--gold-dim);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 12px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-4);
  color: var(--gold-light);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: clamp(11px, 2.6vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 28px;
}

/* ---------------------------------------------------------------- Hero */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  padding: clamp(56px, 9vw, 96px) var(--pad-x) clamp(60px, 10vw, 104px);
  background:
    repeating-linear-gradient(45deg,  #0000 calc(-650% / 13) calc(50% / 13), #100f0f 0 calc(100% / 13), #0000 0 calc(150% / 13), #100f0f 0 calc(200% / 13), #0000 0 calc(250% / 13), #100f0f 0 calc(300% / 13)) 0 0,
    repeating-linear-gradient(45deg,  #0000 calc(-650% / 13) calc(50% / 13), #100f0f 0 calc(100% / 13), #0000 0 calc(150% / 13), #100f0f 0 calc(200% / 13), #0000 0 calc(250% / 13), #100f0f 0 calc(300% / 13)) 32px 32px,
    repeating-linear-gradient(-45deg, #0000 calc(-650% / 13) calc(50% / 13), #100f0f 0 calc(100% / 13), #0000 0 calc(150% / 13), #100f0f 0 calc(200% / 13), #0000 0 calc(250% / 13), #100f0f 0 calc(300% / 13)) 0 0,
    repeating-linear-gradient(-45deg, #0000 calc(-650% / 13) calc(50% / 13), #100f0f 0 calc(100% / 13), #0000 0 calc(150% / 13), #100f0f 0 calc(200% / 13), #0000 0 calc(250% / 13), #100f0f 0 calc(300% / 13)) 32px 32px
    #1e1e1e;
  background-size: 64px 64px;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 78% 30%, rgba(217, 164, 65, 0.18), transparent 55%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 7vw, 58px);
  line-height: 1.08;
  margin: 0 0 24px;
  color: var(--cream-strong);
  text-wrap: balance;
}

.hero__lede {
  font-size: clamp(15.5px, 2.4vw, 18px);
  line-height: 1.7;
  color: rgba(240, 228, 204, 0.75);
  margin: 0;
  max-width: 520px;
  text-wrap: pretty;
}

/* Portrait product poster: it carries its own background and border art, so it is
   framed as a card rather than floated like the previous cut-out PNG. Height is
   left to the intrinsic 720x1280 ratio so it can never be squashed. */
.hero__art { display: flex; justify-content: center; }
.hero__art img {
  width: min(340px, 62vw);
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* ---------------------------------------------------------------- Split sections */

.split {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split--media-first { grid-template-columns: 0.9fr 1.1fr; }

.split__media { display: block; }
.split__media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line-2);
}

.split__copy h2 {
  font-size: clamp(26px, 5vw, 38px);
  margin: 0 0 24px;
  line-height: 1.15;
  text-wrap: balance;
}
.split__copy p {
  font-size: clamp(15px, 2.2vw, 16px);
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.split__copy p:last-child { margin-bottom: 0; }

.pullquote {
  font-family: var(--serif) !important;
  font-size: clamp(19px, 3.4vw, 22px) !important;
  color: var(--gold-light) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.objectives {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.objectives li { display: flex; gap: 18px; align-items: flex-start; }
.objectives__num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.15);
  border: 1px solid rgba(217, 164, 65, 0.4);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 17px;
}
.objectives p { margin: 0 !important; font-size: 15.5px; line-height: 1.7; }
.objectives strong { color: var(--gold-light); }

/* ---------------------------------------------------------------- Coverflow carousel */

/* --cf-card is the card WIDTH (it also drives the 3D spacing and perspective);
   --cf-h derives the height from it at 3:4 portrait, which is close to the 9:16
   source clips, so `object-fit: cover` crops very little off the sides. */
.coverflow {
  width: 100%;
  --cf-card: clamp(200px, 28vw, 340px);
  --cf-h: calc(var(--cf-card) * 4 / 3);
}

.coverflow__shell { position: relative; }

.coverflow__frame {
  cursor: grab;
  overflow: hidden;
  padding: 40px 0;
  outline: none;
  perspective: calc(var(--cf-card) * 3);
  touch-action: pan-y;
}
.coverflow__frame:active { cursor: grabbing; }

.coverflow__track {
  position: relative;
  height: var(--cf-h);
  transform-style: preserve-3d;
  -webkit-user-select: none;
  user-select: none;
}

.coverflow__card {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--cf-card);
  height: var(--cf-h);
  overflow: hidden;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line-3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  will-change: transform;
  cursor: pointer;
}
.coverflow__card video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
  background: var(--card);
}

/* "watch this full screen" affordance */
.coverflow__play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 18, 14, 0.66);
  border: 1px solid rgba(217, 164, 65, 0.45);
  color: var(--gold-light);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: background-color 0.18s, color 0.18s;
}
.coverflow__card:hover .coverflow__play { background: rgba(217, 164, 65, 0.9); color: #16120E; }

.section__note {
  text-align: center;
  margin: 18px auto 0;
  padding: 0 var(--pad-x);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--muted-soft);
}

.coverflow__nav {
  position: absolute;
  top: 50%;
  z-index: 200;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(22, 18, 14, 0.7);
  border: 1px solid rgba(217, 164, 65, 0.4);
  color: var(--gold-light);
  padding: 10px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
}
.coverflow__nav:hover { background: rgba(22, 18, 14, 0.9); color: var(--gold-hover); }
.coverflow__nav--prev { left: 12px; }
.coverflow__nav--next { right: 12px; }

.coverflow__dots {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.coverflow__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0;
  background: var(--gold-light);
  opacity: 0.3;
  transition: opacity 0.2s;
}
.coverflow__dot[aria-current="true"] { opacity: 1; }

/* ---------------------------------------------------------------- CTA */

.cta {
  background: linear-gradient(160deg, #241B10, #1A1208);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  color: var(--cream-strong);
  padding: clamp(52px, 8vw, 72px) var(--pad-x);
  text-align: center;
}
.cta h2 { font-size: clamp(26px, 5vw, 36px); margin: 0 0 16px; color: var(--gold-light); }
.cta > p { margin: 0 0 32px; font-size: clamp(15px, 2.2vw, 16px); color: rgba(240, 228, 204, 0.7); }
.cta__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.2;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.btn--primary { background: var(--gold); color: var(--bg); font-weight: 700; border: 1px solid var(--gold); }
.btn--primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--bg); }
.btn--ghost { border: 1px solid var(--line-4); color: var(--gold-light); font-weight: 600; }
.btn--ghost:hover { border-color: var(--gold-light); color: var(--gold-hover); }

/* ---------------------------------------------------------------- Footer */

.site-footer {
  background: var(--bg-deep);
  color: var(--muted-soft);
  padding: clamp(44px, 7vw, 64px) var(--pad-x) 32px;
}
.site-footer__grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
}
.site-footer h3 {
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 600;
}
.site-footer p { font-size: 14px; line-height: 1.7; margin: 0; }
.site-footer__blurb { margin: 0 0 18px !important; max-width: 300px; }
.site-footer__social { color: var(--gold); font-size: 14px; font-weight: 600; }
.site-footer__social:hover { color: var(--gold-light); }

.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.site-footer__contact a { color: var(--gold); }
.site-footer__contact a:hover { color: var(--gold-light); }

.site-footer__bar {
  max-width: var(--shell);
  margin: 48px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.site-footer__bar strong { color: var(--gold-light); }

.paychips { display: flex; gap: 10px; flex-wrap: wrap; }
.paychips span {
  border: 1px solid rgba(217, 164, 65, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
}

/* ---------------------------------------------------------------- Reels viewer */

.reels {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 6, 4, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  overscroll-behavior: contain;
  touch-action: none;
  animation: reels-in 0.22s ease-out;
}
.reels[hidden] { display: none; }

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

.reels__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(0px, 2vh, 24px);
}

.reels__video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}

.reels__spinner {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(217, 164, 65, 0.25);
  border-top-color: var(--gold-light);
  animation: reels-spin 0.8s linear infinite;
  pointer-events: none;
}

@keyframes reels-spin { to { transform: rotate(360deg); } }

.reels__close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 18, 14, 0.7);
  border: 1px solid rgba(217, 164, 65, 0.4);
  color: var(--gold-light);
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.reels__close:hover { background: rgba(217, 164, 65, 0.9); color: #16120E; }

.reels__hint {
  position: absolute;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(22, 18, 14, 0.66);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

@media (max-width: 640px) {
  .reels__stage { padding: 0; }
  .reels__video { border-radius: 0; }
  .reels__hint { font-size: 12px; padding: 7px 14px; }
}

/* ---------------------------------------------------------------- Breakpoints */

@media (max-width: 900px) {
  .hero__inner,
  .split,
  .split--media-first { grid-template-columns: 1fr; }

  .hero__inner { text-align: left; }
  /* The poster is tall; leading with it would push the headline off the first
     screen, so on narrow viewports the copy comes first. */
  .hero__art { margin-top: 8px; }

  /* Keep the authored reading order: copy first, image after. */
  .split--media-first .split__media { order: 2; }
  .split--media-first .split__copy { order: 1; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .topbar { gap: 4px; flex-direction: column; }

  /* The nav holds a single "Home" link that duplicates the logo's own href, so on
     phones it is dropped and the brand takes the middle of the bar. */
  .site-header { padding-block: 12px; justify-content: center; }
  .site-nav { display: none; }

  .coverflow { --cf-card: clamp(190px, 62vw, 300px); }
  .coverflow__frame { padding: 28px 0; }
  .coverflow__nav { padding: 8px; }
  .coverflow__nav--prev { left: 6px; }
  .coverflow__nav--next { right: 6px; }

  /* Single-column footer: every column, and the brand block itself, centres. */
  .site-footer__grid { grid-template-columns: 1fr; text-align: center; }
  .brand--footer { justify-content: center; }
  .site-footer__blurb { margin-inline: auto !important; }
  .site-footer__contact { align-items: center; }
  .site-footer__bar { justify-content: center; text-align: center; }
  .paychips { justify-content: center; }

  .btn { width: 100%; max-width: 360px; }
}

@media (max-width: 380px) {
  .brand__name { font-size: 16px; }
  .brand img { width: 36px; height: 36px; }
}

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