@font-face {
  font-family: "PP Neue Montreal";
  src: url("./assets/fonts/ppneue-book.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("./assets/fonts/ppneue-medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("./assets/fonts/ppneue-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f4f4f4;
  --text: #0b0b0c;
  --muted: rgba(0, 0, 0, 0.48);
  --line: rgba(0, 0, 0, 0.1);
  --blue: #2563eb;
  --dock: rgba(244, 244, 244, 0.86);
  --ease-fast: cubic-bezier(0.2, 0.9, 0.2, 1);
  --deck-duration: 880ms;
  --card-w: min(65vw, 960px);
  --card-radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PP Neue Montreal", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

button {
  font: inherit;
}

.top-fade {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 15vh;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(244, 244, 244, 0.96), rgba(244, 244, 244, 0));
}

.site-nav {
  position: fixed;
  top: 72px;
  left: 50%;
  z-index: 60;
  display: flex;
  gap: 1rem;
  transform: translateX(-50%);
}

.nav-link {
  position: relative;
  display: grid;
  height: 1.45rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
  transition: color 300ms var(--ease-fast);
}

.nav-link span {
  grid-area: 1 / 1;
  transition: transform 520ms var(--ease-fast), opacity 520ms var(--ease-fast);
}

.nav-link span:nth-child(2) {
  transform: translateY(100%);
  color: rgba(0, 0, 0, 0.78);
}

.nav-link:hover span:first-child {
  transform: translateY(-100%);
}

.nav-link:hover span:nth-child(2) {
  transform: translateY(0);
}

.home-shell {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform 575ms var(--ease-fast);
}

.card-stage {
  position: relative;
  width: var(--card-w);
  height: calc(var(--card-w) * 0.5);
  min-height: 15rem;
  isolation: isolate;
}

.deck-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18vh) scale(0.78);
  transform-origin: center center;
  transition: transform var(--deck-duration) var(--ease-fast), opacity var(--deck-duration) var(--ease-fast), border-radius 450ms var(--ease-fast);
  will-change: transform, opacity;
}

body.is-ready .deck-card {
  opacity: var(--card-opacity, 0);
  transform: var(--card-transform);
}

.deck-card.is-active {
  pointer-events: auto;
}

.deck-card:hover {
  border-radius: 16px;
}

.card-inner,
.case-link {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
}

.intro-inner {
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 5%, 3rem);
}

.mini-title {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 450ms var(--ease-fast), transform 450ms var(--ease-fast);
}

body.is-ready .mini-title,
body.is-ready .intro-meta {
  opacity: 1;
  transform: translateY(0);
}

.intro-copy {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 5vh 0;
  opacity: 0;
  transform: scale(0.9);
  transform-origin: center;
  transition: opacity 600ms var(--ease-fast) 160ms, transform 600ms var(--ease-fast) 160ms;
}

body.is-ready .intro-copy {
  opacity: 1;
  transform: scale(clamp(0.45, calc(100cqw / 580), 1));
}

.intro-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  gap: 0.5vw;
  white-space: nowrap;
}

.intro-line.second-line {
  margin-top: -0.5rem;
}

.intro-line h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.sticker-button {
  display: flex;
  width: 4.05rem;
  height: 4.05rem;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.sticker-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0);
  transition: transform 480ms var(--ease-fast);
}

body.is-ready .sticker-button img {
  transform: scale(1);
}

.sticker-button:hover img,
.sticker-button.is-popped img {
  transform: scale(1.12) rotate(-6deg);
}

.intro-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 450ms var(--ease-fast) 240ms, transform 450ms var(--ease-fast) 240ms;
}

.intro-meta span {
  width: 3rem;
  height: 1px;
  margin-bottom: 0.55rem;
  background: var(--line);
}

.intro-meta p {
  margin: 0;
}

.intro-meta a {
  transition: color 300ms var(--ease-fast);
}

.intro-meta a:hover {
  color: #000;
}

.case-link {
  overflow: hidden;
  align-items: stretch;
  background: #000;
}

.media-frame,
.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-frame video,
.cover-image {
  width: 100%;
  height: 100%;
  display: block;
}

.rd-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #fff;
}

.rd-frame video {
  width: min(34%, 18rem);
  height: auto;
  object-fit: contain;
  transform: translateY(-3.5rem);
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.08));
}

.axis-frame video,
.cover-image {
  object-fit: cover;
}

.case-gradient {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 60%;
  pointer-events: none;
}

.case-blur-stack {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.case-blur-stack span {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
}

.case-blur-stack span:nth-child(1) {
  height: 55%;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.case-blur-stack span:nth-child(2) {
  height: 40%;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.case-blur-stack span:nth-child(3) {
  height: 25%;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.case-blur-stack span:nth-child(4) {
  height: 12%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.light-gradient {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
}

.dark-gradient {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.case-copy {
  position: absolute;
  left: 5%;
  bottom: 10%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 24rem;
}

.case-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.case-title-row h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.1;
}

.case-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1.42;
}

.light-case .case-link {
  background: #fff;
}

.light-case .case-title-row h2 {
  color: #000;
}

.dark-case .case-title-row h2 {
  color: #fff;
}

.light-case .case-copy p {
  color: rgba(0, 0, 0, 0.7);
}

.case-logo {
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.framed-logo {
  border: 1px solid rgba(0, 0, 0, 0.22);
}

.shade {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background: #000;
  opacity: var(--shade-opacity, 0);
  pointer-events: none;
  transition: opacity var(--deck-duration) var(--ease-fast);
}

.sticker-sheet {
  background: var(--blue);
}

.sticker-inner {
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(2rem, 5%, 3rem);
  color: #fff;
}

.sticker-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.sticker-heading h1,
.sticker-heading h4,
.sticker-inner h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0;
}

.sticker-heading h1 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.sticker-heading h4,
.sticker-inner h3 {
  color: rgba(255, 255, 255, 0.58);
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(3, clamp(3.15rem, 5.4vw, 5.2rem));
  gap: clamp(1.25rem, 2vw, 2rem);
}

.sheet-slot {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.sheet-slot img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.12));
}

.locked-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.slot-tip,
.thumb-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.75rem);
  z-index: 20;
  width: max-content;
  max-width: 13rem;
  transform: translateX(-50%) translateY(4px);
  border-radius: 0.5rem;
  background: #fff;
  color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.sheet-slot:hover .slot-tip,
.thumb:hover .thumb-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.deck-dock {
  position: fixed;
  left: 50%;
  bottom: 1.28rem;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 13.8rem;
  min-height: 3.1rem;
  transform: translateX(-50%);
  padding: 0.58rem 0.8rem 0.58rem 1.55rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: var(--dock);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.counter {
  display: inline-flex;
  gap: 0.25rem;
  width: 3.5rem;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.95rem;
  white-space: nowrap;
}

.counter strong {
  font-weight: 400;
}

.thumbs {
  display: flex;
  align-items: center;
}

.thumb {
  position: relative;
  width: 2rem;
  height: 2rem;
  margin-left: -0.78rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: margin 450ms var(--ease-fast), transform 300ms var(--ease-fast);
}

.thumb:first-child {
  margin-left: 0;
}

.thumbs:hover .thumb {
  margin-left: 0.38rem;
}

.thumb:hover {
  transform: translateY(-1px);
}

.thumb-face {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: #fff;
  transition: border-radius 450ms var(--ease-fast), border-color 450ms var(--ease-fast);
}

.thumb:hover .thumb-face,
.thumb.is-active .thumb-face {
  border-radius: 0.5rem;
}

.thumb img,
.thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-thumb {
  background: #f0642d;
  color: #fff;
}

.intro-thumb svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.black-thumb {
  background: #000;
}

.black-thumb img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.blue-thumb {
  background: var(--blue);
  color: #fff;
}

.blue-thumb svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.thumb-tip {
  bottom: calc(100% + 0.6rem);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  box-shadow: none;
}

.social-rail {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-rail a {
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  color: #111;
  font-size: 0.72rem;
  line-height: 1;
  transition: background 450ms var(--ease-fast);
}

.social-rail a:hover {
  background: rgba(0, 0, 0, 0.08);
}

.secret-scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
  background: rgba(0, 0, 0, 0.08);
  transition: transform 500ms var(--ease-fast);
}

.secret-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  min-height: 10vh;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #252628;
  color: rgba(255, 255, 255, 0.7);
  transform: translateY(100%);
  transition: transform 500ms var(--ease-fast);
}

body.footer-open .secret-scrim {
  transform: scaleY(1);
}

body.footer-open .secret-footer {
  transform: translateY(0);
}

.secret-footer p {
  margin: 0.15rem 0;
  font-size: 0.75rem;
}

.footer-change {
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.08em;
}

.secret-footer button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 200ms ease;
}

.secret-footer button:hover {
  color: rgba(255, 255, 255, 0.82);
}

.footer-right {
  text-align: right;
}

.cursor-label {
  position: fixed;
  z-index: 1000;
  max-width: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #111;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: max-width 700ms var(--ease-fast), opacity 240ms ease;
}

@media (min-width: 1440px) {
  :root {
    --card-w: min(80vw, 1280px);
  }
}

@media (max-width: 760px) {
  :root {
    --card-w: 90vw;
    --card-radius: 16px;
  }

  .site-nav {
    top: 76px;
    gap: 1.05rem;
  }

  .nav-link {
    font-size: 0.92rem;
  }

  .home-shell {
    align-items: center;
  }

  .card-stage {
    height: min(calc(var(--card-w) * 1.5), 52svh);
    max-height: 52svh;
  }

  .intro-inner {
    padding: 1rem 1rem 1.25rem;
  }

  .mini-title,
  .intro-meta {
    font-size: 0.86rem;
  }

  .intro-copy {
    padding: 3vh 0;
  }

  .intro-line h1 {
    font-size: 2.35rem;
  }

  .sticker-button {
    width: 2.45rem;
    height: 2.45rem;
  }

  body.is-ready .intro-copy {
    transform: scale(clamp(0.58, calc(100cqw / 520), 0.78));
  }

  .intro-meta {
    gap: 0.35rem;
    text-align: center;
  }

  .rd-frame {
    padding: 1.3rem;
  }

  .rd-frame video {
    width: min(43%, 10rem);
    transform: translateY(-2.5rem);
  }

  .case-copy {
    left: 5%;
    right: 5%;
    bottom: 5%;
    gap: 0.75rem;
  }

  .case-title-row {
    gap: 0.85rem;
  }

  .case-title-row h2 {
    font-size: 1.33rem;
  }

  .case-copy p {
    max-width: 19rem;
    font-size: 1rem;
  }

  .sticker-inner {
    padding: 2rem 1.25rem;
  }

  .sticker-heading h1 {
    font-size: 1.55rem;
  }

  .sticker-grid {
    grid-template-columns: repeat(3, 3.15rem);
  }

  .deck-dock {
    bottom: 4rem;
  }

  .social-rail {
    display: none;
  }

  .secret-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 1.2rem;
  }

  .footer-right {
    text-align: left;
  }
}

@media (max-height: 680px) and (min-width: 761px) {
  .site-nav {
    top: 64px;
  }

  .deck-dock {
    bottom: 1rem;
  }
}

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