/* ============ BASE ============ */
:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --card: #101010;
  --card-2: #161616;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f2;
  --muted: #989894;
  --silver: #c9cdcb;
  --metal-text: linear-gradient(180deg, #ffffff 20%, #a3a8a6 100%);
  --radius: 22px;
  --font-head: "Inter Tight", sans-serif;
  --font-body: "Inter Tight", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  body a, body button, body summary { cursor: none; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 840px; }

/* ============ TYPO ============ */
.kicker {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  background: var(--metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); font-size: 17.5px; max-width: 540px; margin-bottom: 28px; }
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }
.footnote { font-size: 12.5px; color: rgba(255,255,255,0.35); margin-bottom: 26px; max-width: 460px; }

/* ============ GRAIN ============ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: grainShift 0.7s steps(2) infinite;
}
@keyframes grainShift {
  0% { background-position: 0 0; }
  50% { background-position: 120px -60px; }
  100% { background-position: -60px 120px; }
}

/* ============ PROGRESS BAR ============ */
.progressbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 250;
  background: linear-gradient(90deg, #ffffff, #8f9694);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ============ CURSOR ============ */
.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 300;
  transform: translate(-50%, -50%);
}
.cursor {
  width: 6px; height: 6px;
  background: #ffffff;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.preloader.is-done { transform: translateY(-100%); }
.preloader__inner { display: flex; gap: 6px; overflow: hidden; }
.preloader__letter {
  font-family: var(--font-head);
  font-size: clamp(26px, 7.5vw, 84px);
  font-weight: 700;
  background: var(--metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(120%);
  animation: letterUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.preloader__space { width: clamp(14px, 3vw, 30px); }
.preloader__letter:nth-child(2) { animation-delay: 0.08s; }
.preloader__letter:nth-child(3) { animation-delay: 0.16s; }
.preloader__letter:nth-child(5) { animation-delay: 0.24s; }
.preloader__letter:nth-child(6) { animation-delay: 0.32s; }
.preloader__letter:nth-child(7) { animation-delay: 0.4s; }
.preloader__letter:nth-child(8) { animation-delay: 0.48s; }
.preloader__letter:nth-child(9) { animation-delay: 0.56s; }
.preloader__letter:nth-child(10) { animation-delay: 0.64s; }
@keyframes letterUp { to { transform: translateY(0); } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn--sm { padding: 9px 20px; font-size: 14px; }
.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn--solid {
  background: linear-gradient(180deg, #ffffff, #cfd3d1);
  color: #0a0a0a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 30px rgba(0, 0, 0, 0.4);
}
.btn--solid:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 14px 44px rgba(255, 255, 255, 0.16); }
.btn--line {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}
.btn--line:hover { border-color: rgba(255, 255, 255, 0.9); }

/* ============ HEADER ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.header.is-scrolled {
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: 0 1px 0 var(--line);
}
.header { transition: background 0.35s ease, backdrop-filter 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.header.is-hidden { transform: translateY(-110%); }
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}
/* single-piece lockup: the gorilla "A" and the wordmark are one artwork */
.logo__full {
  display: block;
  height: 24px;
  width: auto;
}
/* logo left, nav right — with the header CTA gone, centring would read off-axis */
.nav { display: flex; gap: 30px; flex: 1; justify-content: flex-end; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: #ffffff;
  transition: width 0.3s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero__bg {
  position: absolute;
  inset: -6%;
  z-index: 0;
  will-change: transform;
}
.hero__bg img,
.hero__bg video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0.35) 50%, rgba(5,5,5,0.6) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.05) 40%, var(--bg) 96%);
}
/* width:100% — as a flex item the container would shrink to its text and get
   centred by margin:auto, drifting off the page's left grid line */
.hero__content { position: relative; z-index: 3; width: 100%; }
.hero__kicker {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
  opacity: 0;
  transition: opacity 0.8s ease 0.9s;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(38px, 6.6vw, 86px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.hero__title em { font-style: normal; }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; }
.hero__title .ltr {
  display: inline-block;
  white-space: pre;
  font-style: normal;
  transform: translateY(125%);
  background: var(--metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title em { font-style: normal; }
body.is-loaded .hero__title .ltr { animation: riseUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
body.is-loaded .hero__kicker { opacity: 1; }
body.is-loaded .hero__sub, body.is-loaded .hero__cta { opacity: 1; transform: translateY(0); }
@keyframes riseUp { to { transform: translateY(0); } }
.hero__content { will-change: transform, opacity; }

/* scroll hint */
.hero__hint {
  position: absolute;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__hint-line {
  position: relative;
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.hero__hint-dot {
  position: absolute;
  top: -8px;
  left: -1.5px;
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: #ffffff;
  animation: hintDrop 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes hintDrop {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(52px); opacity: 0; }
}
.hero__sub {
  margin-top: 28px;
  font-size: 18px;
  color: #b9b9b5;
  max-width: 580px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease 0.55s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease 0.7s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}
.hero__marquee {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 3;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  background: rgba(5, 5, 5, 0.35);
  backdrop-filter: blur(6px);
}
.hero__marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.hero__marquee-track span {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.4);
}
.hero__marquee-track i { font-style: normal; font-size: 8px; color: rgba(255, 255, 255, 0.2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ TICKLIST ============ */
.ticklist { list-style: none; margin-bottom: 18px; }
.ticklist li {
  position: relative;
  padding: 10px 0 10px 34px;
  color: var(--muted);
  font-size: 15.5px;
  border-bottom: 1px solid var(--line);
}
.ticklist li:last-child { border-bottom: none; }
.ticklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #d6dad8;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ CARDS + 3D ============ */
.cards { padding: 140px 0 120px; }
.cards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.cards__scene {
  perspective: 1100px;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}
.card-idle {
  width: min(440px, 90%);
  transform-style: preserve-3d;
  animation: cardIdle 10s ease-in-out infinite;
}
.cards__scene:hover .card-idle { animation-play-state: paused; }
@keyframes cardIdle {
  0%, 100% { transform: rotateY(-7deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(7deg) rotateX(-3deg) translateY(-16px); }
}
.card3d {
  width: 100%;
  aspect-ratio: 1357 / 849;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  will-change: transform;
}
.card3d__face {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    radial-gradient(130% 90% at 82% 8%, rgba(255, 255, 255, 0.06), transparent 58%),
    radial-gradient(90% 80% at 12% 88%, rgba(255, 255, 255, 0.05), transparent 52%),
    radial-gradient(60% 50% at 55% 45%, rgba(0, 0, 0, 0.55), transparent 70%),
    linear-gradient(135deg, #191919 0%, #0a0a0a 50%, #141414 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  padding: 26px 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card3d__face--img {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 0;
  overflow: hidden;
  border-radius: 3.4% / 5.4%;
}
.card3d__face--img::before { content: none; }
.card3d__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card3d__face::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.card3d__brandrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card3d__logo { width: 28px; height: 28px; color: #d6d6d4; }
.card3d__brandname {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #d6d6d4;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18), 0 -1px 1px rgba(0, 0, 0, 0.8);
}
.card3d__bignum {
  margin-top: auto;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(19px, 2.5vw, 29px);
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: #b3b3b1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 2px rgba(0, 0, 0, 0.85);
}
.card3d__meta {
  margin: 10px 0 2px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #a3a3a1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24), 0 2px 2px rgba(0, 0, 0, 0.85);
}
.card3d__visa {
  position: absolute;
  right: 26px;
  bottom: 18px;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: #c9c9c7;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 3px rgba(0, 0, 0, 0.85);
}
.card3d__glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22) 0%, transparent 42%);
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ============ PINNED SHOWCASE ============ */
.pin-wrap { height: 340vh; position: relative; background: var(--bg-2); border-block: 1px solid var(--line); }
.pin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.pin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  width: 100%;
}
.pin-steps { position: relative; min-height: 240px; }
.pin-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.pin-step.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pin-step h3 {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 18px;
  background: var(--metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pin-step p { color: var(--muted); font-size: 17px; max-width: 460px; }
.pin-progress {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 40px;
  border-radius: 2px;
  overflow: hidden;
}
.pin-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffffff, #9aa19e);
  border-radius: 2px;
}

/* phone */
.pin-phone { display: flex; justify-content: center; perspective: 1400px; }
.phone-stage {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* light source under the device */
.phone-glow {
  position: absolute;
  left: 50%;
  bottom: -12%;
  width: 150%;
  height: 62%;
  transform: translate(-50%, 0) translateZ(-120px);
  background: radial-gradient(52% 50% at 50% 50%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 42%, transparent 72%);
  filter: blur(26px);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
.phone {
  position: relative;
  /* iPhone 17: the screen drives the size, so the app canvas maps 1:1 to a
     402 × 874 pt design; the frame is just 6px of bezel around it */
  height: min(620px, 74vh);
  width: auto;
  /* device radius 62pt on a 414 × 886pt body */
  border-radius: 15% / 7%;
  /* brushed titanium frame */
  background:
    linear-gradient(105deg, #4a4a4d 0%, #1d1d1f 9%, #37373a 20%, #17171a 33%,
                    #2e2e31 50%, #141416 67%, #3c3c3f 80%, #1b1b1d 92%, #46464a 100%);
  padding: 6px;
  /* no cast shadow: on a near-black background it only banded under the device */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  /* no preserve-3d here: a 3D context on the frame stops the screen's
     rounded overflow:hidden from clipping the app inside it */
}
/* side buttons */
.phone__side {
  position: absolute;
  background: linear-gradient(180deg, #4b4b4e, #232326 40%, #3d3d40);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.phone__side--action   { left: -2px; top: 15.5%; width: 3px; height: 4.2%;  border-radius: 2px 0 0 2px; }
.phone__side--volup    { left: -2px; top: 23%;   width: 3px; height: 6.6%;  border-radius: 2px 0 0 2px; }
.phone__side--voldown  { left: -2px; top: 31.5%; width: 3px; height: 6.6%;  border-radius: 2px 0 0 2px; }
.phone__side--power    { right: -2px; top: 26%;  width: 3px; height: 9.4%;  border-radius: 0 2px 2px 0; }
/* Camera Control */
.phone__side--camera {
  right: -2px; top: 41%; width: 3px; height: 5%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #6a6a6e, #3a3a3d 45%, #55555a);
}
/* rotating metal rim light — separates the device from the background */
@property --rim {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.phone__rim {
  position: absolute;
  inset: -1.5px;
  border-radius: 15.1% / 7.05%;
  padding: 1.5px;
  background: conic-gradient(
    from var(--rim),
    rgba(255, 255, 255, 0.05) 0deg,
    rgba(255, 255, 255, 0.85) 42deg,
    rgba(255, 255, 255, 0.1) 96deg,
    rgba(255, 255, 255, 0.06) 180deg,
    rgba(255, 255, 255, 0.65) 232deg,
    rgba(255, 255, 255, 0.08) 290deg,
    rgba(255, 255, 255, 0.05) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rimSpin 7s linear infinite;
  pointer-events: none;
}
@keyframes rimSpin { to { --rim: 360deg; } }
.phone__screen {
  position: relative;
  background: #000000;
  /* screen radius 55pt on 402 × 874pt — concentric with the 62pt body */
  border-radius: 13.7% / 6.3%;
  height: 100%;
  aspect-ratio: 402 / 874;   /* exact iPhone 17 logical resolution */
  overflow: hidden;
  /* a mask clips reliably where rounded overflow can be defeated */
  -webkit-mask: radial-gradient(#000, #000);
  mask: radial-gradient(#000, #000);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  /* every screen is authored at 402pt wide and scaled as a whole */
  --s: calc(100% / 402);
}
/* Dynamic Island */
.phone__island {
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 31%;
  height: 4.4%;
  background: #000000;
  border-radius: 999px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8%;
}
.phone__cam {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #2b3a44 0%, #101820 55%, #05080a 100%);
  box-shadow: inset 0 0 1px rgba(120, 170, 200, 0.5);
}
/* status bar */
.statusbar {
  position: absolute;
  top: 2.4%;
  left: 0;
  right: 0;
  height: 3.6%;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #f2f4f3;
  z-index: 4;
  pointer-events: none;
}
.statusbar__time { letter-spacing: 0.01em; }
.statusbar__icons { display: inline-flex; align-items: center; gap: 5px; color: #f2f4f3; }
.statusbar__ico { height: 10px; width: auto; fill: currentColor; }
.statusbar__ico--bat { height: 11px; }
/* home indicator */
.phone__home {
  position: absolute;
  bottom: 1.4%;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  z-index: 4;
  pointer-events: none;
}
/* glass reflection that tracks the cursor */
/* Glass reflection. The layer itself never moves — only the light's position
   inside it does, so no rectangle edge can ever slide into view. */
@property --gx { syntax: "<percentage>"; initial-value: 50%; inherits: false; }
@property --gy { syntax: "<percentage>"; initial-value: 24%; inherits: false; }
.phone__gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    radial-gradient(56% 40% at var(--gx) var(--gy),
      rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045) 44%, transparent 72%),
    linear-gradient(122deg, transparent 36%, rgba(255, 255, 255, 0.045) 48%, transparent 62%);
  opacity: 0.55;
  /* the highlight trails the cursor slightly instead of snapping to it */
  transition: --gx 0.22s ease-out, --gy 0.22s ease-out, opacity 0.45s ease;
}
.pin-phone:hover .phone__gloss { opacity: 1; }
.screen {
  position: absolute;
  inset: 0;
  padding: 58px 22px 36px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.screen.is-active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
/* app screens bring their own chrome, so the generic padding must go */
.screen--app { padding: 0; display: block; }

/* cascading asset rows */
.screen .asset {
  opacity: 0;
  transform: translateY(14px);
}
.screen.is-active .asset {
  animation: assetIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.screen.is-active .asset:nth-of-type(1) { animation-delay: 0.16s; }
.screen.is-active .asset:nth-of-type(2) { animation-delay: 0.24s; }
.screen.is-active .asset:nth-of-type(3) { animation-delay: 0.32s; }
.screen.is-active .asset:nth-of-type(4) { animation-delay: 0.4s; }
@keyframes assetIn { to { opacity: 1; transform: translateY(0); } }

/* sparkline that draws itself */
.spark { width: 100%; height: 54px; margin: -6px 0 10px; display: block; }
.spark__line { stroke-dasharray: 300; stroke-dashoffset: 300; }
.spark__area { opacity: 0; }
.screen.is-active .spark__line { animation: sparkDraw 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards; }
.screen.is-active .spark__area { animation: sparkFill 0.6s ease 0.9s forwards; }
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }
@keyframes sparkFill { to { opacity: 1; } }
.screen__label { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.screen__balance { font-family: var(--font-head); font-size: 27px; font-weight: 600; margin-bottom: 20px; }
.asset {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.asset b { margin-left: auto; color: var(--text); font-weight: 600; }
.asset__ico {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #e2e5e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.swapbox {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 8px 0 14px;
}
.swapbox__row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); padding: 8px 0; }
.swapbox__row b { color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: 14px; }
.swapbox__arrow { text-align: center; color: var(--silver); }
.screen__note { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.screen__btn {
  margin-top: auto;
  background: linear-gradient(180deg, #ffffff, #cfd3d1);
  color: #0a0a0a;
  text-align: center;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px;
  border-radius: 999px;
}
/* ---- floating UI panels escaping the screen ---- */
.fly {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* inset highlight only — a cast shadow just smudged the dark background */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fly__txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.fly__txt b { font-size: 11.5px; font-weight: 600; color: #eceeed; }
.fly__txt i { font-style: normal; font-size: 10px; color: var(--muted); }
.fly__ico { width: 18px; height: 18px; color: var(--silver); flex: none; }
.fly__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
  flex: none;
  animation: flyPing 2.4s ease-in-out infinite;
}
@keyframes flyPing {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.03); }
}
.fly--tx   { top: 9%; left: -162px; transform: translate3d(34px, 12px, 30px); }
.fly--sec  { top: 56%; right: -138px; transform: translate3d(-34px, 12px, 52px); }
.fly--esim { bottom: 7%; left: -118px; transform: translate3d(30px, 14px, 42px); }
.fly.is-in { opacity: 1; }
.fly--tx.is-in   { transform: translate3d(0, 0, 30px); animation: flyFloat 7s ease-in-out 0.8s infinite; }
.fly--sec.is-in  { transform: translate3d(0, 0, 52px); animation: flyFloat 8.5s ease-in-out 1.4s infinite; }
.fly--esim.is-in { transform: translate3d(0, 0, 42px); animation: flyFloat 7.8s ease-in-out 0.4s infinite; }
@keyframes flyFloat {
  0%, 100% { transform: translate3d(0, 0, var(--z, 40px)); }
  50% { transform: translate3d(0, -10px, var(--z, 40px)); }
}
.fly--tx.is-in   { --z: 30px; }
.fly--sec.is-in  { --z: 52px; }
.fly--esim.is-in { --z: 42px; }

.esim-ring {
  width: 150px; height: 150px;
  border-radius: 50%;
  margin: 18px auto;
  background: conic-gradient(#ffffff 0deg, #b9bfbd 260deg, rgba(255,255,255,0.1) 260deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.esim-ring::before {
  content: "";
  position: absolute;
  width: 126px; height: 126px;
  border-radius: 50%;
  background: #0a0a0a;
}
.esim-ring__val {
  position: relative;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
}
.esim-ring__val small { font-size: 12px; color: var(--muted); margin-left: 3px; }

/* ============ MEGA MARQUEE ============ */
.mega {
  padding: 100px 0 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mega__row {
  overflow: hidden;
  white-space: nowrap;
}
.mega__track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.mega__row--rev .mega__track { animation-direction: reverse; animation-duration: 32s; }
.mega__track span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 1.1;
  text-transform: uppercase;
  /* solid fill — an outline would expose the font's overlapping inner contours */
  color: rgba(255, 255, 255, 0.14);
}
.mega__track--fill span { color: rgba(255, 255, 255, 0.06); }
.mega__track i {
  font-style: normal;
  font-size: clamp(14px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.25);
}

/* ============ PAY ZOOM ============ */
.pay { padding: 130px 0 0; text-align: center; }
.pay .kicker { text-align: center; }
.pay__zoom { height: 240vh; position: relative; margin-top: 30px; }
.pay__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pay__frame {
  position: relative;
  width: 100vw;
  height: 100vh;
  transform: scale(0.62);
  border-radius: 40px;
  overflow: hidden;
  will-change: transform, border-radius;
}
.pay__frame img,
.pay__frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  will-change: transform;
}
.pay__shine {
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.15) 50%, transparent 58%);
  transform: translateX(-130%);
  will-change: transform;
  pointer-events: none;
  mix-blend-mode: screen;
}
.pay__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(14px, 1.7vw, 21px);
  color: #f4f4f2;
  opacity: 0;
  transform: translateY(46px) scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.pay__badge i {
  font-style: normal;
  font-size: 0.85em;
  letter-spacing: -2px;
  color: rgba(255, 255, 255, 0.65);
  transform: rotate(90deg);
}
.pay__badge--apple { top: 16%; left: 11%; }
.pay__badge--google { bottom: 18%; right: 11%; transition-delay: 0.14s; }
.pay__badge.is-in { opacity: 1; transform: translateY(0) scale(1); }
.pay__badge.is-in { animation: badgeFloat 5s ease-in-out 0.8s infinite; }
.pay__badge--google.is-in { animation-delay: 1.6s; }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1); }
}

/* ============ SECURITY ============ */
.security { padding: 130px 0; }
.security__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.sec-tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.sec-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.sec-tile:hover::before { opacity: 1; }
.sec-tile:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.sec-tile__num {
  font-family: var(--font-head);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}
.sec-tile h4 { font-family: var(--font-head); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.sec-tile p { color: var(--muted); font-size: 14.5px; }

/* ============ NUMBERS ============ */
.numbers { padding: 40px 0 130px; }
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.num__value {
  font-family: var(--font-head);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  background: var(--metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.num__label { color: var(--muted); font-size: 15px; max-width: 240px; margin: 0 auto; }

/* ============ FAQ ============ */
.faq { padding: 0 0 120px; }
.faq .kicker, .faq .h2 { text-align: center; }
.faq .h2 { margin-bottom: 46px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__list { counter-reset: faq; }
.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 24px 4px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  transition: color 0.25s ease;
}
.faq__item summary::before {
  counter-increment: faq;
  content: "0" counter(faq);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.1em;
}
.faq__icon { margin-left: auto; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: #c4c9c7; }
.faq__icon {
  position: relative;
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  top: 50%; left: 50%;
}
.faq__icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 1.5px; height: 10px; transform: translate(-50%, -50%); transition: transform 0.3s ease; }
.faq__item[open] .faq__icon { border-color: rgba(255, 255, 255, 0.85); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__body {
  padding: 0 40px 26px 4px;
  color: var(--muted);
  font-size: 15.5px;
  animation: fadeDown 0.4s ease;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ DOWNLOAD + FOOTER ============ */
.download {
  padding: 150px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255, 255, 255, 0.07), transparent),
    var(--bg-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.download__mark {
  width: 74px;
  height: 74px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 30px;
  animation: markSpin 16s linear infinite;
}
@keyframes markSpin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
.h2--xl { font-size: clamp(34px, 5.2vw, 64px); }
.download__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.footer { padding: 50px 0 36px; border-top: 1px solid var(--line); }
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 34px;
}
.footer__nav { display: flex; gap: 26px; }
.footer__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease;
}
.footer__nav a:hover { color: #ffffff; }
.footer__legal { font-size: 12.5px; color: rgba(255, 255, 255, 0.32); max-width: 880px; margin-bottom: 22px; }
.footer__copy { font-size: 12.5px; color: rgba(255, 255, 255, 0.3); }
/* ---- coin sweeping across the wordmark, swapping APE <-> WALLET ---- */
.mega-swap {
  --swap-pad: 62px;
  position: relative;
  margin-top: 40px;
  /* room for the coin, which is taller than the wordmark */
  padding: var(--swap-pad) 0;
  overflow: hidden;
  user-select: none;
}
.mega-swap__word {
  font-family: var(--font-head);
  font-weight: 700;
  /* one size for both words so the swap never shifts the layout */
  font-size: clamp(52px, 12.5vw, 168px);
  line-height: 0.9;
  text-align: center;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.07);
  transition: color 0.6s ease;
}
.mega-swap:hover .mega-swap__word { color: rgba(255, 255, 255, 0.11); }
/* the word seen through the coin */
.mega-swap__word--alt {
  position: absolute;
  inset: 0;
  /* same padding as the container, so both words sit on the exact same line */
  padding: var(--swap-pad) 0;
  color: rgba(255, 255, 255, 0.42);
  /* wipe: only the part to the right of the coin is shown */
  clip-path: inset(0 0 0 100%);
  transition: none;
}
.mega-swap:hover .mega-swap__word--alt { color: rgba(255, 255, 255, 0.5); }

.emblem {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.emblem__svg {
  display: block;
  width: clamp(150px, 18vw, 236px);
  height: auto;
  overflow: visible;
}


/* ============ MISC POLISH ============ */
::selection { background: #ffffff; color: #000000; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 5px; border: 2px solid #0a0a0a; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .cards__grid, .pin-grid { grid-template-columns: 1fr; gap: 46px; }
  .pin-wrap { height: auto; }
  .pin-sticky { position: static; height: auto; padding: 90px 0; }
  .pin-steps { min-height: 0; }
  .pin-step { position: static; opacity: 1; transform: none; margin-bottom: 40px; pointer-events: auto; }
  .pin-progress { display: none; }
  .phone { height: min(600px, 78vh); }
  .fly { display: none; }
  .phone-glow { width: 120%; }
  .screen { position: static; display: none; }
  .screen.is-active { display: flex; }
  .security__grid { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: 1fr; gap: 46px; }
  .nav { display: none; }
  .pay__zoom { height: auto; margin-top: 50px; }
  .pay__sticky { position: static; height: auto; padding: 0 20px; }
  .pay__frame { width: 100%; height: 62vw; transform: none !important; border-radius: 20px !important; }
  .pay__frame img, .pay__frame video { transform: none !important; }
  .pay__badge { opacity: 1; transform: none; position: absolute; }
  .pay__badge--apple { top: 10%; left: 6%; }
  .pay__badge--google { bottom: 10%; right: 6%; }
}
