/* JFD Overseas – LATAM presentation. The site's own look: near-black ground, gold accents, Poppins heads. */
:root {
  --ground: #0B0B0B;
  --panel: #131210;
  --gold-a: #B0842F;
  --gold-b: #D4B36A;
  --gold-l: #F1D889;
  --white: #FFFFFF;
  --text: #D9D4C7;
  --muted: #9A9384;
  --line: rgba(212, 179, 106, .18);
  --line-strong: rgba(212, 179, 106, .38);
  --head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --bar: 68px;
  --risk: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: 0; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text);
  background: var(--ground); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(176, 132, 47, .22), transparent 62%),
    radial-gradient(60% 50% at 0% 100%, rgba(176, 132, 47, .12), transparent 60%),
    var(--ground);
}
h1, h2, p, ul, table { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); }
.gl-ready #stage { opacity: 1; }
main { position: relative; z-index: 1; }
.is-grabbing, .is-grabbing * { cursor: grabbing !important; user-select: none; }

/* ── top bar ────────────────────────────────────────────────────────────── */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5; height: var(--bar);
  display: flex; align-items: center; gap: 18px; padding: 0 var(--pad);
  background: rgba(11, 11, 11, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; }
.logo img { width: 70px; height: 44px; }
.deck-name { font-family: var(--head); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lang-pick { display: flex; flex: none; margin-left: auto; border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden; }
.lang-pick a { display: grid; place-items: center; height: 32px; padding: 0 10px; font-family: var(--head); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-decoration: none; color: var(--text); transition: color .2s; }
.lang-pick a + a { border-left: 1px solid var(--line); }
.lang-pick a:hover { color: var(--gold-l); }
.lang-pick a[aria-current="page"] { color: var(--white); background: linear-gradient(90deg, var(--gold-a), var(--gold-b)); }
.counter { margin-left: 4px; font-family: var(--head); font-size: 14px; color: var(--muted); letter-spacing: .08em; }
.counter b { color: var(--gold-b); font-weight: 600; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 2px; background: none; color: var(--white); cursor: pointer; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--gold-b); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; border-radius: 2px; font-family: var(--head); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 15px; }
.btn-gold { color: var(--white); background: linear-gradient(90deg, var(--gold-a), var(--gold-b)); box-shadow: 0 10px 28px rgba(176, 132, 47, .28); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(176, 132, 47, .42); }
.btn-ghost { color: var(--white); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold-b); }

/* ── slide dots ─────────────────────────────────────────────────────────── */
.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 5; display: grid; gap: 12px; }
.dots a { position: relative; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background .3s, transform .3s, border-color .3s; }
.dots a.on { background: var(--gold-b); border-color: var(--gold-b); transform: scale(1.25); }
.dots a span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); padding: 5px 10px; white-space: nowrap; font-size: 12px; color: var(--white); background: rgba(19, 18, 16, .95); border: 1px solid var(--line); border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.dots a:hover span, .dots a:focus-visible span { opacity: 1; }

/* ── slides ─────────────────────────────────────────────────────────────── */
.slide { min-height: 100vh; min-height: 100svh; scroll-snap-align: start; display: flex; align-items: center; padding: calc(var(--bar) + 28px) 0 calc(var(--risk) + 28px); }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.flip .copy { order: 2; }
.slot { height: min(64vh, 620px); min-height: 320px; }
.copy > * + * { margin-top: 22px; }

h1, h2 { font-family: var(--head); font-weight: 700; color: var(--white); letter-spacing: -.02em; }
h1 { font-size: clamp(42px, 5.6vw, 82px); line-height: 1.04; }
h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.1; }
.gold { background: linear-gradient(90deg, var(--gold-a), var(--gold-l)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-b); }
.num { font-family: var(--head); font-size: 15px; font-weight: 600; letter-spacing: .2em; color: var(--gold-b); }
.num::after { content: ""; display: block; width: 46px; height: 2px; margin-top: 14px; background: linear-gradient(90deg, var(--gold-a), var(--gold-l)); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--white); max-width: 32em; }
.points li { position: relative; padding-left: 26px; max-width: 38em; }
.points li + li { margin-top: 14px; }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold-a), var(--gold-l)); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px !important; }
.hint { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.small { font-size: 13px; color: var(--muted); max-width: 38em; }
.text-link { display: inline-block; font-size: 15px; font-weight: 600; color: var(--gold-l); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; }
.text-link::after { content: " →"; }
.text-link:hover { border-color: var(--gold-b); }

.assets { width: 100%; max-width: 560px; border-collapse: collapse; background: rgba(19, 18, 16, .72); border: 1px solid var(--line); }
.assets th, .assets td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; }
.assets tr:last-child th, .assets tr:last-child td { border-bottom: 0; }
.assets th { font-weight: 500; color: var(--text); }
.assets td { font-family: var(--head); font-weight: 600; color: var(--white); text-align: right; white-space: nowrap; }
.assets .total th, .assets .total td { color: var(--gold-l); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 600px; }
.stats div { padding: 18px 18px 20px; background: var(--panel); }
.stats b { display: block; font-family: var(--head); font-size: clamp(30px, 3vw, 42px); font-weight: 700; line-height: 1.1; background: linear-gradient(90deg, var(--gold-b), var(--gold-l)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--text); }

.countries { display: flex; flex-wrap: wrap; gap: 8px; }
.countries button { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 10px; font-family: var(--head); font-size: 14px; font-weight: 500; color: var(--text); background: rgba(19, 18, 16, .7); border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; transition: all .2s; }
.countries button img { width: 24px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.countries button:hover { border-color: var(--gold-b); color: var(--white); }
.countries button[aria-selected="true"] { color: var(--white); background: linear-gradient(90deg, var(--gold-a), var(--gold-b)); border-color: transparent; }

/* the logo wall: glass tiles standing in 3D; the whole wall leans toward the pointer */
.paywall { perspective: 1100px; min-height: 154px; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease); }
.tiles[hidden] { display: none; }
.tile { transform-style: preserve-3d; animation: tileIn .7s var(--ease) backwards; animation-delay: calc(var(--i) * 55ms); }
.face {   /* a gold-engraved name plate */
  position: relative; display: grid; place-items: center; height: 46px; padding: 0 18px 0 32px; overflow: hidden; white-space: nowrap;
  font-family: var(--head); font-size: 14.5px; font-weight: 600; letter-spacing: .03em;
  border: 1px solid rgba(212, 179, 106, .42); border-radius: 6px;
  background: linear-gradient(160deg, #1b1710 0%, #0b0a08 55%, #15120c 100%);
  box-shadow: 0 14px 26px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 236, 180, .16), inset 0 -1px 0 rgba(0, 0, 0, .6);
  animation: tileFloat 5.500s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.700s);
  transition: border-color .25s, box-shadow .25s;
}
.face::before {   /* the gold stud at the head of each plate */
  content: ""; position: absolute; left: 15px; top: 50%; width: 8px; height: 8px; margin-top: -4px; transform: rotate(45deg);
  background: linear-gradient(135deg, #fbe9b0, #a97a2b); box-shadow: 0 0 8px rgba(241, 216, 137, .45);
}
/* the gold lettering is its own element: clipping one layer of a two-layer background to the text is not reliable across browsers */
.face b { font-weight: 600; color: #e6bd62; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .face b { background: linear-gradient(180deg, #fdf0c4 0%, #e6bd62 48%, #a8792a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.face::after {   /* a slow sheen crossing the plate */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 240, 200, .16) 50%, transparent 62%);
  transform: translateX(-120%); animation: sheen 6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.350s + 1s);
}
.tile:hover .face { border-color: var(--gold-l); box-shadow: 0 22px 38px rgba(0, 0, 0, .65), 0 0 0 1px rgba(241, 216, 137, .4), inset 0 1px 0 rgba(255, 236, 180, .22); animation-play-state: paused; }
@keyframes tileIn { from { opacity: 0; transform: translateY(26px) translateZ(-90px) rotateX(-70deg); } }
@keyframes tileFloat { from { transform: translateZ(4px) translateY(1px); } to { transform: translateZ(26px) translateY(-3px); } }
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

.crypto { display: flex; flex-wrap: wrap; gap: 8px; }
.crypto li { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 5px; font-family: var(--head); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: var(--white); background: rgba(19, 18, 16, .8); border: 1px solid var(--line); border-radius: 999px; }
.crypto img { width: 26px; height: 26px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.copy .reveal:nth-child(2) { transition-delay: .07s; } .copy .reveal:nth-child(3) { transition-delay: .14s; }
.copy .reveal:nth-child(4) { transition-delay: .21s; } .copy .reveal:nth-child(5) { transition-delay: .28s; } .copy .reveal:nth-child(n+6) { transition-delay: .34s; }

/* ── risk warning and legal ─────────────────────────────────────────────── */
.risk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; min-height: var(--risk); padding: 11px var(--pad) 9px; font-size: 12px; line-height: 1.35; text-align: center; color: #BDB6A6; background: rgba(8, 8, 8, .9); border-top: 1px solid var(--line); }
.risk strong { color: var(--white); font-weight: 600; }
.legal { position: relative; padding: 48px 0 calc(var(--risk) + 48px); background: #080808; border-top: 1px solid var(--line); scroll-snap-align: end; }
.wrap-plain { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.legal p { font-size: 12.5px; line-height: 1.65; color: var(--muted); max-width: 100ch; }
.legal p + p { margin-top: 12px; }
.legal strong { color: var(--text); }

:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 3px; }

/* ── narrow: object above, words below ──────────────────────────────────── */
@media (max-width: 900px) {
  html { scroll-snap-type: none; }
  body { font-size: 16px; }
  :root { --bar: 60px; --risk: 52px; }
  .deck-name, .dots, .bar .btn-gold { display: none; }
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .flip .copy { order: 0; }
  .slot { order: -1; height: 42svh; min-height: 260px; }
  .slide { align-items: flex-start; padding-top: calc(var(--bar) + 10px); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .risk { font-size: 11px; }
  .hint { display: none; }
}

/* a phone on its side: wide but short, so keep the object beside the words instead of stacking them */
@media (max-width: 900px) and (min-width: 560px) and (orientation: landscape) {
  .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: center; }
  .slot { order: 0; height: 66svh; min-height: 200px; }
  .flip .copy { order: 2; }
  .slide { align-items: center; padding-top: calc(var(--bar) + 14px); }
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
  .lede { font-size: 16px; }
  .copy > * + * { margin-top: 14px; }
  .actions { margin-top: 18px !important; }
  .btn-lg { height: 44px; padding: 0 20px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root { --risk: 36px; }
}

@media (max-width: 380px) {
  h1 { font-size: 36px; }
  h2 { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile, .face, .face::after { animation: none; }
}
