@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans-Latin-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  font-family: 'Plus Jakarta Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink, #080808);
  background: var(--page-bg, #fff);
  font-synthesis: none;
  --card-height: min(50vh, 520px);
  --card-width: calc(var(--card-height) * .79);
  --deck-y: 61vh;
  --card-radius: clamp(17px, 2.2vh, 24px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { -webkit-font-smoothing: antialiased; background: var(--page-bg, #fff); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a, .deck { outline-offset: 7px; }
button:focus-visible, a:focus-visible, .deck:focus-visible { outline: 2px solid var(--focus, #151515); }
#experience-title[tabindex='-1']:focus { outline: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.experience-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background: var(--page-bg, #fff);
}

.hero-heading {
  position: absolute;
  z-index: 2;
  top: clamp(28px, 4.4vh, 48px);
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: clamp(26px, 2.95vh, 32px);
  margin: 0 auto;
  overflow: visible;
}

.wordmark {
  display: block;
  flex: none;
  width: 104px;
  height: 32px;
  overflow: visible;
  shape-rendering: geometricPrecision;
  color: var(--ink, #080808);
}

h1 {
  margin: clamp(26px, 3.1vh, 37px) 20px 0;
  font-family: 'Plus Jakarta Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(72px, 9.4vh, 108px);
  line-height: .96;
  font-weight: 750;
  letter-spacing: -.05em;
}

.carousel {
  position: absolute;
  z-index: 1;
  inset: 0;
  perspective: 1600px;
}

.deck {
  position: absolute;
  top: var(--deck-y);
  left: 50%;
  width: calc(var(--card-width) * 2.26);
  height: calc(var(--card-height) * 1.16);
  transform: translate(-50%, -50%);
  border-radius: 28px;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}

.deck.is-dragging { cursor: grabbing; }
.cards {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  perspective: 1600px;
}

.experience-card {
  position: absolute;
  top: calc(var(--card-height) * -.5);
  left: calc(var(--card-width) * -.5);
  display: block;
  width: var(--card-width);
  height: var(--card-height);
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--card-radius);
  background: transparent;
  color: var(--card-ink, white);
  text-decoration: none;
  box-shadow: 0 17px 29px -9px rgb(0 0 0 / .2), 0 3px 7px rgb(0 0 0 / .035);
  backface-visibility: hidden;
  transform-origin: center;
  visibility: hidden;
  -webkit-user-select: none;
  user-select: none;
  cursor: inherit;
}

.experience-card.is-visible { visibility: visible; }
.experience-card.is-moving { will-change: transform; }
.experience-card.is-moving .card-glow { will-change: transform, opacity; }
.experience-card[data-has-destination="true"].is-selected { cursor: pointer; }
.experience-card:focus-visible { outline-offset: 5px; }

.card-glow {
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: inherit;
  opacity: .08;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.card-glow-pulse {
  position: absolute;
  inset: -5px;
  border-radius: calc(var(--card-radius) + 5px);
  background: rgb(var(--glow-rgb, 77 164 255) / .9);
  filter: blur(26px);
  opacity: .6;
  pointer-events: none;
  /* Keep one continuous pulse phase while the parent emphasis transfers. */
  animation: card-glow-breathe 2.05s ease-in-out infinite;
  will-change: opacity;
}
@keyframes card-glow-breathe {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: var(--card-color);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .16);
  filter: blur(1.25px);
  pointer-events: none;
}
.experience-card.is-selected .card-face { filter: blur(0); }
.original-art { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.experience-card--layered { transform-style: preserve-3d; }
.experience-card--layered .card-face::after {
  content: '';
  position: absolute;
  top: 86%;
  left: 12%;
  width: 76%;
  height: 8%;
  background: radial-gradient(ellipse, rgb(58 36 17 / .22), rgb(58 36 17 / .065) 37%, transparent 70%);
  pointer-events: none;
}
.card-foreground {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  backface-visibility: hidden;
  transform: translateZ(18px);
  filter: blur(1.25px);
}
.experience-card.is-selected .card-foreground { filter: blur(0); }

.placeholder-art {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(145deg, rgb(255 255 255 / .075), transparent 60%, rgb(0 0 0 / .035));
  pointer-events: none;
}
.placeholder-number {
  font-size: calc(var(--card-width) * .43);
  font-weight: 650;
  line-height: .95;
  letter-spacing: -.055em;
}
.placeholder-label {
  font-size: calc(var(--card-width) * .105);
  font-weight: 450;
  letter-spacing: -.04em;
}

.carousel-control {
  position: absolute;
  top: calc(var(--deck-y) - var(--card-height) * .03);
  left: calc(50% + var(--card-width) * 1.12);
  display: grid;
  place-items: center;
  width: clamp(52px, 6.8vh, 68px);
  height: clamp(52px, 6.8vh, 68px);
  padding: 16px;
  border: 1px solid var(--line, rgb(0 0 0 / .025));
  border-radius: 50%;
  background: var(--surface, #fff);
  color: var(--ink, #151515);
  box-shadow: 0 4px 12px rgb(0 0 0 / .10);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity .24s ease, background .2s ease, color var(--theme-duration, .2s) ease, border-color var(--theme-duration, .2s) ease, box-shadow .2s ease;
}
.carousel-control--previous { left: calc(50% - var(--card-width) * 1.12); }
.carousel-control svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.carousel-control:hover { background: var(--surface-hover, #f8f8f8); box-shadow: 0 5px 15px rgb(0 0 0 / .14); }
.is-ready .carousel-control { opacity: 1; pointer-events: auto; }
.carousel-control:disabled { pointer-events: none; }

.position-counter {
  position: absolute;
  z-index: 1;
  top: calc(var(--deck-y) + var(--card-height) * .5 + 30px);
  left: 0;
  width: 100%;
  margin: 0;
  color: var(--ink, #111);
  text-align: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 550;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity .25s ease;
}
.counter-total { color: var(--ink-muted, #828282); font-weight: 400; }
.is-ready .position-counter { opacity: 1; }

.downward-chevron {
  position: absolute;
  z-index: 1;
  bottom: clamp(24px, 3.2vh, 38px);
  left: calc(50% - 14px);
  width: 28px;
  height: 28px;
  animation: chevron-bounce 2.7s cubic-bezier(.45, 0, .3, 1) infinite;
  display: block;
  color: inherit;
  cursor: pointer;
}
.downward-chevron svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes chevron-bounce { 0%, 55%, 100% { transform: translateY(0); } 70% { transform: translateY(7px); } 85% { transform: translateY(0); } }
.script-notice { position: fixed; bottom: 10px; width: 100%; text-align: center; font-size: 14px; }

@media (max-width: 380px) {
  .wordmark { width: 88px; height: 28px; }
}
@media (max-aspect-ratio: 6/5) {
  :root { --card-height: min(52vh, 56vw); }
  h1 { font-size: min(9.4vh, 11vw); }
}
@media (min-width: 901px) and (max-height: 760px) {
  .hero-heading { top: 24px; }
  .header-brand { height: 24px; }
  h1 { margin-top: 22px; font-size: clamp(58px, 9vh, 70px); }
}
@media (prefers-reduced-motion: reduce) {
  .downward-chevron { animation: none; }
  .carousel-control, .position-counter { transition: none; }
  .card-glow-pulse {
    animation: none;
    opacity: .8;
    will-change: auto;
  }
}
