/* ── FONTS: Bebas Neue · Libre Baskerville · Barlow ── */
:root {
  --amber:    #E8903A;
  --amber-lt: #F5B96A;
  --amber-dk: #A85F1A;
  --rust:     #C44B2B;
  --cream:    #F5EDD8;
  --cream-dim:#C9BFA8;
  --dark:     #0D0B09;
  --dark-2:   #130F0A;
  --dark-3:   #1C1610;
  --muted:    #7A6E60;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--amber);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, background .25s;
  mix-blend-mode: screen;
}
.cursor.big { width: 38px; height: 38px; background: rgba(232,144,58,.3); }

/* ── Touch devices: hide custom cursor, restore native pointer ── */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none; }
  a, button, .loc-card, .partner-image, .why-card, .hamburger,
  .btn-primary, .btn-ghost, .panel-close, .scroll-btn {
    cursor: pointer;
  }
  /* improve tap feedback on mobile */
  a, button { -webkit-tap-highlight-color: rgba(232,144,58,.25); }
}

/* ── GRAIN ── */
body::after {
  content:'';
  position: fixed; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.4;
}

/* ── HEADER ── */
header {
  position: fixed; top:0; width:100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px;
  z-index: 500;
  transition: background .4s, border-color .4s, padding .3s;
}
header.scrolled {
  padding: 12px 60px;
  background: rgba(13,11,9,.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,144,58,.15);
}

/* ── LOGO — header slot kept for spacing/accessibility; image lives in hero now ── */
.nav-logo {
  display: flex; align-items: center;
  min-width: 1px; /* keeps the flex gap so nav stays right-aligned */
}
.logo-img { display: none; }

nav { display: flex; gap: 36px; }
nav a {
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(245,237,216,.65);
  text-decoration: none;
  transition: color .3s;
  position: relative;
}
nav a::after {
  content:''; position:absolute; bottom:-3px; left:0;
  width:0; height:1px; background:var(--amber); transition:width .3s;
}
nav a:hover { color: var(--amber-lt); }
nav a:hover::after { width: 100%; }

.nav-cta { display: none; }

/* ── HERO ── */
.hero {
  min-height: 100vh;              /* fallback for older browsers */
  min-height: 100dvh;             /* accounts for mobile URL bar */
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 140px; /* header is empty now — much smaller clearance */
  padding-bottom: 80px;
}
.hero-bg {
  position: absolute; inset:0;
  background: url('images/hero.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset:0;
  background:
    linear-gradient(100deg, rgba(13,11,9,.74) 42%, rgba(13,11,9,.08) 100%),
    linear-gradient(to top, rgba(13,11,9,.65) 0%, transparent 55%);
}

.hero-content {
  position: relative; z-index:2;
  padding: 0 60px;
  max-width: 680px;
}

.hero-title {
  display: flex; flex-direction: column;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 7.5vw, 94px);
  line-height: 0.95;
  letter-spacing: 2px;
  color: var(--cream);
}
.tl {
  display: block;
  opacity: 0;
  animation: fadeUp .7s forwards;
}
.tl:nth-child(1) { animation-delay: .2s; }
.tl:nth-child(2) { animation-delay: .38s; }
.tl:nth-child(3) { animation-delay: .56s; }
.tl.accent { color: var(--amber); }

.hero-desc {
  font-size: 16px; font-weight: 300; line-height: 1.8;
  color: var(--cream-dim);
  margin-top: 28px; max-width: 460px;
  opacity:0; animation: fadeUp .7s .72s forwards;
}
.hero-actions {
  margin-top: 40px; display:flex; gap:16px; flex-wrap:wrap;
  opacity:0; animation: fadeUp .7s .9s forwards;
}

/* ── COIN ── */
.hero-coin-wrap {
  position: absolute;
  right: 7%; top: 58%; transform: translateY(-50%);
  z-index: 2;
}
.coin-glow {
  position: absolute; inset:-60px;
  background: radial-gradient(circle, rgba(232,144,58,.25) 0%, transparent 70%);
  animation: pulse 3.5s ease-in-out infinite;
}
.hero-coin {
  /* Responsive coin — scales smoothly from phone through desktop */
  width: clamp(220px, 34vw, 460px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 70px rgba(196,75,43,.45));
  animation: float 7s ease-in-out infinite, coinIn .9s .4s both;
}

/* Logo variant — sized smaller, well-balanced for all screens */
.hero-coin-wrap--logo { right: 6%; top: 54%; }
.hero-coin-wrap--logo .coin-glow {
  inset: -60px -30px;
  background: radial-gradient(ellipse at center, rgba(232,144,58,.26) 0%, transparent 65%);
}
.hero-coin--logo {
  width: clamp(220px, 24vw, 380px);
  filter: drop-shadow(0 16px 40px rgba(232,144,58,.5))
          drop-shadow(0 6px 18px rgba(0,0,0,.4));
}

@keyframes float {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-22px) rotate(1.5deg); }
}
@keyframes coinIn {
  from { opacity:0; transform: translateY(40px) scale(.92); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
@keyframes pulse {
  0%,100% { opacity:.6; transform:scale(1); }
  50%      { opacity:1;  transform:scale(1.1); }
}

/* ── SCROLL HINT (ticker only) ── */
.hero-scroll {
  position: absolute; bottom:34px; left:60px; right: 60px; z-index:2;
  display:flex; align-items:center;
  font-size:10px; letter-spacing:3px; text-transform:uppercase;
  color: var(--muted);
}

/* ticker strip — continuous horizontal marquee of location names */
.scroll-ticker {
  position: relative;
  width: 100%;             /* spans the hero-scroll container, all breakpoints */
  max-width: 720px;
  overflow: hidden;
  /* soft fade on both edges so names don't pop in/out hard */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  width: max-content;
  animation: tickerScroll 42s linear infinite;
}
.scroll-ticker:hover .ticker-track { animation-play-state: paused; }
.tick-item {
  color: var(--cream-dim);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.tick-sep {
  color: var(--amber);
  font-size: 6px;
  opacity: .9;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }  /* list duplicated — moves exactly one set */
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'Barlow', sans-serif;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 14px 30px; font-weight: 500;
  background: var(--amber); color: var(--dark);
  border: none; cursor: none;
  transition: background .3s, letter-spacing .3s;
  display: inline-block; text-decoration: none;
}
.btn-primary:hover { background: var(--amber-lt); letter-spacing: 3.5px; }

.btn-ghost {
  font-family: 'Barlow', sans-serif;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 14px 30px; font-weight: 400;
  background: transparent; color: var(--cream-dim);
  border: 1px solid rgba(245,237,216,.2);
  cursor: none;
  transition: border-color .3s, color .3s;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-lt); }



/* ── WHY A COIN ── */
.why-strip {
  padding: 110px 60px;
  background: var(--dark-2);
  border-bottom: 1px solid rgba(232,144,58,.1);
}
.why-heading {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; margin-bottom: 64px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.why-heading .body-copy { text-align: center; }

.why-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.why-card {
  background: var(--dark-3);
  padding: 44px 32px;
  display: flex; flex-direction: column; gap: 14px;
  border-bottom: 3px solid transparent;
  transition: border-color .3s, background .3s;
}
.why-card:hover {
  border-bottom-color: var(--amber);
  background: #221A12;
}
.why-icon {
  font-size: 32px; color: var(--amber);
  line-height: 1;
}
.why-card h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 18px; font-weight: 400;
  color: var(--cream);
}
.why-card p {
  font-size: 14px; font-weight: 300; line-height: 1.85;
  color: var(--cream-dim);
}

/* ── LOCATIONS ── */
.locations { padding: 110px 60px 0; scroll-margin-top: 90px; }
.locations-header {
  text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:14px;
  margin-bottom:56px;
}
.loc-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
/* ── Single-card variant (currently used by Where to Find Us) ── */
/* Source photo + clip are portrait (phone-shot ~2:3), so the card
   uses a matching portrait frame — kiosk machine stays fully in view. */
.loc-grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;                 /* keeps the portrait card hero-sized, centered */
  gap: 0;
}
.loc-grid--single .loc-card {
  aspect-ratio: 2 / 3;              /* matches source 1047×1503 ≈ 0.70 */
  max-height: 820px;
  width: 100%;
  margin: 0 auto;
  background: #0a0705;              /* seamless letterbox if content ever differs */
}
.loc-grid--single .loc-photo,
.loc-grid--single .loc-video {
  object-fit: cover;
  object-position: center center;   /* whole kiosk visible with minimal crop */
}
.loc-card { position:relative; overflow:hidden; cursor:none; background:#0a0705; }
.loc-grid:not(.loc-grid--single) .loc-card:nth-child(1) { aspect-ratio: 4 / 5;  max-height: 560px; margin-top: 0;    }
.loc-grid:not(.loc-grid--single) .loc-card:nth-child(2) { aspect-ratio: 5 / 4;  max-height: 440px; margin-top: 80px; }
.loc-card.large { grid-row: 1 / 3; }
.loc-card img,
.loc-card video {
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
  transition: transform .8s cubic-bezier(.4,0,.2,1), filter .5s, opacity .5s ease;
  filter: brightness(.65) saturate(.75);
}
.loc-card .loc-photo { z-index:1; opacity:1; }
.loc-card .loc-video { z-index:2; opacity:0; pointer-events:none; }
.loc-card:hover .loc-photo,
.loc-card.is-playing .loc-photo { opacity:0; }
.loc-card:hover .loc-video,
.loc-card.is-playing .loc-video { opacity:1; }
.loc-card:hover .loc-photo,
.loc-card:hover .loc-video,
.loc-card.is-playing .loc-photo,
.loc-card.is-playing .loc-video { transform:scale(1.04); filter:brightness(.55) saturate(.7); }
.loc-info {
  position:absolute; bottom:0; left:0; right:0;
  padding:28px 30px;
  background:linear-gradient(transparent, rgba(13,11,9,.9));
}
.loc-tag { font-size:10px; letter-spacing:3px; text-transform:uppercase; color:var(--amber); display:block; margin-bottom:6px; }
.loc-info h3 { font-family:'Libre Baskerville',serif; font-size:22px; font-weight:400; color:var(--cream); }
.loc-info { z-index:2; }
/* single-card variant — larger, cinematic info panel */
.loc-grid--single .loc-info { padding: 40px 48px; }
.loc-grid--single .loc-info h3 { font-size: 32px; }
.loc-grid--single .loc-tag { font-size: 11px; letter-spacing: 4px; margin-bottom: 10px; }
@media (max-width: 560px) {
  .loc-grid--single .loc-info { padding: 24px 24px; }
  .loc-grid--single .loc-info h3 { font-size: 22px; }
  .loc-grid--single .loc-tag { font-size: 10px; letter-spacing: 3px; margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .loc-card .loc-video { display:none; }
}

/* ── PARTNER ── */
.partner {
  display:grid; grid-template-columns:1fr 1fr;
  margin-top:3px; min-height:640px;
}
.partner-image { position:relative; overflow:hidden; }
.partner-image img { width:100%; height:100%; object-fit:cover; filter:brightness(.55) saturate(.6); transition:transform .8s; }
.partner-image:hover img { transform:scale(1.04); }
.partner-image::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,transparent 60%,var(--dark-2)); }
.partner-badge {
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%);
  text-align:center;
  font-family:'Bebas Neue',sans-serif;
  font-size:52px; line-height:1;
  color:var(--amber); border:2px solid var(--amber);
  padding:20px 36px; letter-spacing:4px;
  pointer-events:none; z-index:2;
}
.partner-text {
  background:var(--dark-2); padding:90px 80px;
  display:flex; flex-direction:column; justify-content:center; gap:20px;
}
.perks { list-style:none; display:flex; flex-direction:column; gap:0; }
.perks li {
  display:flex; align-items:center; gap:14px;
  padding:14px 0; border-bottom:1px solid rgba(232,144,58,.1);
  font-size:14px; color:var(--cream-dim);
}
.perks li:first-child { border-top:1px solid rgba(232,144,58,.1); }
.perk-icon { color:var(--amber); font-size:8px; flex-shrink:0; }

/* ── COMMON TEXT ── */
.eyebrow { font-size:10px; letter-spacing:5px; text-transform:uppercase; color:var(--amber); }
.section-title {
  font-family:'Libre Baskerville',serif;
  font-size:clamp(32px,4vw,52px); font-weight:400; line-height:1.2; color:var(--cream);
}
.section-title em { font-style:italic; color:var(--amber-lt); }
.body-copy { font-size:15px; font-weight:300; line-height:1.9; color:var(--cream-dim); max-width:500px; }

/* ── PANEL ── */
.panel { position:fixed; inset:0; z-index:600; pointer-events:none; }
.panel.active { pointer-events:all; }
.panel-backdrop { position:absolute; inset:0; background:rgba(13,11,9,.7); opacity:0; transition:opacity .4s; -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.panel.active .panel-backdrop { opacity:1; }
.panel-drawer {
  position:absolute; bottom:0; left:0; right:0; height:80%;
  background:var(--dark-3); border-top:1px solid rgba(232,144,58,.2);
  transform:translateY(100%); transition:transform .5s cubic-bezier(.4,0,.2,1);
  padding:55px 70px; overflow-y:auto;
}
.panel.active .panel-drawer { transform:translateY(0); }
.panel-close { position:absolute; top:24px; right:50px; background:none; border:none; font-size:18px; color:var(--muted); cursor:none; transition:color .3s; z-index: 5; }
.panel-close:hover { color:var(--amber); }
#panel-content h2 { font-family:'Libre Baskerville',serif; font-size:36px; font-weight:400; color:var(--amber-lt); margin-bottom:14px; }
#panel-content p { font-size:15px; font-weight:300; line-height:1.9; color:var(--cream-dim); max-width:580px; }
/* About / machines panels still show landscape photos — scoped so catalog coins aren't affected */
#panel-content > img { width:200px; height:140px; object-fit:cover; margin:20px 12px 0 0; filter:brightness(.8); transition:filter .3s; }
#panel-content > img:hover { filter:brightness(1); }

/* ── OUR STORY / ABOUT panel ──
   Layout (desktop):
     - Text flows top-left
     - Machine card absolutely positioned top-right
     - Big buying-a-token photo absolutely positioned bottom-right,
       overlapping the lower-right of the text column (text stays in front
       with a soft shadow for readability). */
.about-layout {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 680px;
}

/* Faded kiosk watermark behind the text column */
.about-backdrop {
  position: absolute;
  top: -20px;
  left: -20px;
  height: calc(100% + 40px);
  width: auto;
  max-width: 520px;
  object-fit: contain;
  object-position: left top;
  opacity: 0.16;                 /* faded so text stays the hero */
  filter: saturate(.6) blur(.4px) drop-shadow(0 24px 40px rgba(0,0,0,.4));
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;        /* blends warm kiosk tones into the dark bg */
  mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,.95) 0%,
    rgba(0,0,0,.7) 55%,
    rgba(0,0,0,0) 90%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,.95) 0%,
    rgba(0,0,0,.7) 55%,
    rgba(0,0,0,0) 90%
  );
}

.about-text {
  position: relative;
  z-index: 3;
  max-width: 640px;
}
.about-layout .about-text p {
  max-width: 620px;
  margin-top: 14px;
  text-shadow: 0 1px 6px rgba(13,11,9,.95), 0 0 14px rgba(13,11,9,.6);
}
.about-layout .about-text h2 + p { margin-top: 18px; }

.about-shot { margin: 0; display: flex; flex-direction: column; }

/* Buying-a-token hero — absolutely positioned bottom-right.
   Sits behind the text where they overlap. A soft left-edge gradient
   fades the photo into the panel background so text stays legible. */
.about-shot--primary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60%;
  max-width: 780px;
  z-index: 1;
}
.about-shot--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    var(--dark, #0D0B09) 0%,
    rgba(13,11,9,.72) 18%,
    rgba(13,11,9,.18) 38%,
    rgba(13,11,9,0) 55%
  );
  pointer-events: none;
  z-index: 2;
}
.about-shot--primary img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center center;
  border-radius: 16px;
  filter: drop-shadow(0 26px 56px rgba(0,0,0,.65));
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.about-shot--primary:hover img { transform: translateY(-4px); }

/* Laptop — tighten */
@media (max-width: 1200px) {
  .about-layout { min-height: 640px; }
  .about-shot--primary { width: 62%; max-width: 700px; }
  .about-text { max-width: 580px; }
}

/* Tablet — drop absolute positioning, stack naturally:
   text → big photo (no overlap, max readability) */
@media (max-width: 860px) {
  .about-layout {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .about-text { max-width: 100%; }
  .about-layout .about-text p { text-shadow: none; }

  /* Tiny phones/tablets — kiosk backdrop becomes visual noise, fade it further */
  .about-backdrop {
    opacity: 0.08;
    max-width: 260px;
    top: -10px;
    left: -20px;
    height: auto;
  }

  .about-shot--primary {
    position: static;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
  .about-shot--primary::before { display: none; }
  .about-shot--primary img { aspect-ratio: 3 / 2; }
}

/* Phone — tighter proportions */
@media (max-width: 560px) {
  .about-shot--primary img { aspect-ratio: 4 / 3; border-radius: 12px; }
}

/* ── CONTACT panel ── */
.contact-layout {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}
.contact-intro h2 { margin-bottom: 18px; }
.contact-intro p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px auto 24px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 24px;
  background: linear-gradient(160deg, rgba(232,144,58,.06), rgba(13,11,9,.55));
  border: 1px solid rgba(232,144,58,.18);
  border-radius: 16px;
  color: var(--cream);
  text-decoration: none;
  transition: transform .4s cubic-bezier(.4,0,.2,1), border-color .3s, background .3s;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,144,58,.5);
  background: linear-gradient(160deg, rgba(232,144,58,.14), rgba(13,11,9,.65));
}
.contact-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(232,144,58,.1);
  border: 1px solid rgba(232,144,58,.3);
  color: var(--amber);
  margin-bottom: 4px;
}
.contact-icon svg { width: 22px; height: 22px; display: block; }
.contact-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}
.contact-value {
  font-family: 'Libre Baskerville', serif;
  font-size: 17px;
  color: var(--cream);
  word-break: break-all;
}
.contact-footnote {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Tablet — two columns, WhatsApp wraps to its own row centered */
@media (max-width: 820px) {
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .contact-card:nth-child(3) { grid-column: 1 / -1; max-width: 380px; justify-self: center; }
}

/* Phone — stack all three cards vertically */
@media (max-width: 560px) {
  .contact-cards { grid-template-columns: 1fr; gap: 16px; margin: 36px auto 20px; }
  .contact-card { padding: 26px 20px; }
  .contact-card:nth-child(3) { grid-column: auto; max-width: none; }
  .contact-value { font-size: 15px; }
}

/* ── COIN CATALOG (Collection panel) ── */
.coin-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.catalog-coin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px 22px;
  background: var(--dark-2);
  border: 1px solid rgba(232,144,58,.1);
  cursor: none; /* custom cursor handles hover; touch devices get pointer via media query */
  transition: border-color .35s, transform .35s cubic-bezier(.4,0,.2,1), background .35s;
  position: relative;
}
.catalog-coin--soon { cursor: default; }
.catalog-coin:hover {
  border-color: rgba(232,144,58,.45);
  background: #1a130b;
  transform: translateY(-4px);
}
.catalog-coin img {
  width: 100%;
  max-width: 170px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(196,75,43,.45));
  transition: transform .5s cubic-bezier(.4,0,.2,1), filter .35s;
}
.catalog-coin:hover img {
  transform: rotate(6deg) scale(1.06);
  filter: drop-shadow(0 14px 32px rgba(232,144,58,.65));
}
.catalog-coin figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.catalog-loc {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
}
.catalog-coin figcaption strong {
  font-family: 'Libre Baskerville', serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--cream);
}

/* coming-soon card */
.catalog-placeholder {
  width: 100%;
  max-width: 170px;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  color: rgba(232,144,58,.35);
  border: 1px dashed rgba(232,144,58,.28);
  border-radius: 50%;
}
.catalog-coin--soon .catalog-loc { color: var(--cream-dim); }

.catalog-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(10,7,4,.62);
  border: 1px solid rgba(232,144,58,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
  pointer-events: none;
}

/* card with a location background photo (behind the coin) */
.catalog-coin--bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.catalog-coin--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  opacity: .32;
  filter: saturate(.85) contrast(1.05);
  z-index: 0;
  transition: opacity .45s, transform .6s cubic-bezier(.4,0,.2,1);
}
.catalog-coin--bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,7,4,.45) 0%, rgba(10,7,4,.78) 100%);
  z-index: 0;
  pointer-events: none;
}
.catalog-coin--bg:hover::before {
  opacity: .48;
  transform: scale(1.04);
}
.catalog-coin--bg > * { position: relative; z-index: 1; }

/* tablet & mobile sizing */
@media (max-width: 960px) {
  .coin-catalog {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }
  .catalog-coin { padding: 22px 14px 18px; }
  .catalog-coin img, .catalog-placeholder { max-width: 140px; }
  .catalog-coin figcaption strong { font-size: 14px; }
}
@media (max-width: 480px) {
  .coin-catalog {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .catalog-coin { padding: 18px 10px 14px; }
  .catalog-coin img, .catalog-placeholder { max-width: 120px; }
  .catalog-loc { font-size: 9px; letter-spacing: 2px; }
  .catalog-coin figcaption strong { font-size: 13px; }
}

/* ── FOOTER ── */
footer { background:#070604; border-top:1px solid rgba(232,144,58,.1); }
.footer-top {
  display:flex; justify-content:space-between; align-items:center;
  padding:40px 60px; border-bottom:1px solid rgba(255,255,255,.04);
}
.footer-logo { height: 72px; width:auto; opacity:.9; }
.footer-nav { display:flex; gap:36px; }
.footer-nav a { font-size:11px; letter-spacing:2.5px; text-transform:uppercase; color:var(--muted); text-decoration:none; transition:color .3s; }
.footer-nav a:hover { color:var(--amber); }
.footer-bottom { padding:20px 60px; text-align:center; }
.footer-bottom p { font-size:11px; color:rgba(255,255,255,.18); letter-spacing:1px; margin:0; }

/* Social icons (center of footer-top) */
.footer-social {
  display:flex; justify-content:center; align-items:center;
  gap:16px;
}
.footer-social a {
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:50%;
  color:rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.12);
  transition:color .3s, border-color .3s, background .3s, transform .3s;
}
.footer-social a:hover {
  color:var(--amber);
  border-color:rgba(232,144,58,.5);
  background:rgba(232,144,58,.08);
  transform:translateY(-2px);
}
.footer-social a:focus-visible {
  outline:2px solid var(--amber); outline-offset:3px;
}
.footer-social svg { width:22px; height:22px; display:block; }

/* ── REVEAL ── */
.reveal { opacity:0; transform:translateY(36px); transition:opacity .9s, transform .9s; }
.reveal.visible { opacity:1; transform:none; }

/* ── KEYFRAMES ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: none; border: none;
  cursor: none;
  padding: 4px;
  z-index: 600;
  position: relative;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--cream);
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .3s, width .3s;
  transform-origin: center;
}
.hamburger span:nth-child(1) { width: 26px; }
.hamburger span:nth-child(2) { width: 20px; }
.hamburger span:nth-child(3) { width: 14px; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 26px; background: var(--amber); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 26px; background: var(--amber); }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;        /* fallback */
  height: 100dvh;       /* dynamic viewport — fits around mobile browser UI */
  background: var(--dark-3);
  border-left: 1px solid rgba(232,144,58,.15);
  z-index: 550;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  transform: translateX(110%);
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(13,11,9,.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 540;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.mobile-nav-backdrop.open { opacity: 1; pointer-events: all; }

.mobile-nav a {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 3px;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(232,144,58,.08);
  transition: color .3s, letter-spacing .3s;
}
.mobile-nav a:first-child { border-top: 1px solid rgba(232,144,58,.08); }
.mobile-nav a:hover { color: var(--amber); letter-spacing: 5px; }

.mobile-nav .mobile-cta { display: none; }

/* ── RESPONSIVE ── */

/* Tablet — logo scales down, stays in hero */
@media (max-width:1024px) {
  .hero-coin-wrap--logo { right: 3%; top: 56%; }
  .hero-coin--logo { width: clamp(200px, 28vw, 300px); }
}

@media (max-width:960px) {
  header { padding: 14px 22px; }
  header.scrolled { padding: 10px 22px; }
  .nav-cta { display:none; }
  nav { display: none; } /* hide desktop text nav, hamburger takes over */
  .hamburger { display: flex; }

  /* Hero stacks text on top, logo below — column layout fixes the overflow */
  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 110px 0 80px;
    min-height: auto;
  }
  .hero-content { padding: 0 24px; position: relative; z-index: 3; max-width: 100%; }

  /* Logo sits BELOW the text, centered, constrained to viewport */
  .hero-coin-wrap,
  .hero-coin-wrap--machine,
  .hero-coin-wrap--logo {
    display: block;
    position: relative;
    right: auto; top: auto; left: auto;
    transform: none;
    margin: 36px auto 8px;
    width: auto;                 /* no longer max-content — prevents overflow */
    max-width: calc(100% - 48px);
    text-align: center;
  }
  .hero-coin-wrap img,
  .hero-coin-wrap--logo img {
    display: block;
    margin: 0 auto;
    max-width: 100%;            /* hard cap so image can never exceed viewport */
  }
  .hero-coin--logo { width: clamp(180px, 42vw, 260px); }
  .coin-glow { inset: -30px; }

  .hero-scroll { left: 24px; right: 24px; bottom: 28px; }
  .scroll-ticker { max-width: 100%; }
  .why-strip { padding:80px 24px; }
  .why-cards { grid-template-columns:1fr 1fr; }
  .locations { padding:80px 24px 0; }
  .loc-grid { grid-template-columns:1fr; grid-template-rows:auto; gap:18px; }
  .loc-grid:not(.loc-grid--single) .loc-card:nth-child(1),
  .loc-grid:not(.loc-grid--single) .loc-card:nth-child(2) { aspect-ratio:auto; max-height:none; margin-top:0; height:320px; }
  /* Single-card variant — portrait, bigger, cinematic on tablet/phone */
  .loc-grid--single { max-width: 560px; }
  .loc-grid--single .loc-card { aspect-ratio: 2 / 3; max-height: 720px; margin-top: 0; height: auto; }
  .partner { grid-template-columns:1fr; }
  .partner-image { height:320px; }
  .partner-text { padding:60px 24px; }
  .panel-drawer { padding:40px 24px; height:85%; }
  .footer-top { flex-direction:column; gap:28px; padding:36px 24px; }
  .footer-logo { height:56px; }
  .footer-bottom { padding:16px 24px; }
}

/* Phone — smaller logo, slightly tighter spacing */
@media (max-width:560px) {
  .why-cards { grid-template-columns:1fr; }
  .hero-title { font-size: clamp(44px, 12vw, 64px); }
  .hero-coin--logo { width: clamp(160px, 52vw, 220px); }
  .hero-coin-wrap,
  .hero-coin-wrap--logo { margin: 28px auto 18px; }
  .hero-scroll { bottom: 20px; }
  .scroll-ticker { max-width: 100%; }
  /* tighter ticker text on small phones */
  .tick-item { font-size: 9px; letter-spacing: 2px; }
  .ticker-track { gap: 18px; }
  /* single-card Locations on phones: portrait kiosk frame, full kiosk visible */
  .loc-grid--single { max-width: 100%; }
  .loc-grid--single .loc-card { aspect-ratio: 3 / 4; max-height: 560px; }
}

/* ── FEATURED COLLECTION ── */
.featured {
  padding: 100px 0 100px;
  background: var(--dark);
  border-top: 1px solid rgba(232,144,58,.1);
  overflow: hidden; /* contain bleed-padding inside scroll track */
}
.featured-header {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; margin-bottom: 64px;
  padding: 0 60px;
}
.featured-header .body-copy { text-align: center; }

/* scroll container + arrow buttons */
.featured-scroll-wrap {
  position: relative;
}

.featured-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-left: 60px;
  padding: 12px 60px 40px;       /* breathing room for hover lift + side padding */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* legacy Edge */
}
.featured-grid::-webkit-scrollbar { display: none; }

.feat-card {
  flex: 0 0 calc((100% - 120px - 24px * 3) / 4); /* 4 cards fit on desktop */
  min-width: 260px;
  max-width: 360px;
  scroll-snap-align: start;
  background: var(--dark-3);
  border: 1px solid rgba(232,144,58,.08);
  overflow: visible;
  transition: border-color .3s, transform .4s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.feat-card:hover {
  border-color: rgba(232,144,58,.35);
  transform: translateY(-6px);
}
.feat-img-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; position: relative; }
.feat-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(10,7,4,.62);
  border: 1px solid rgba(232,144,58,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
  pointer-events: none;
}
.feat-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.65) saturate(.75);
  transition: transform .7s cubic-bezier(.4,0,.2,1), filter .5s;
}
.feat-card:hover .feat-img-wrap img {
  transform: scale(1.06);
  filter: brightness(.5) saturate(.6);
}
.feat-body {
  background: var(--dark-2);
  padding: 22px 22px 24px 22px;
  display: flex; justify-content: space-between; align-items: flex-end;
  position: relative;
  min-height: 104px;
}
.feat-text { display: flex; flex-direction: column; gap: 6px; max-width: 60%; }
.feat-text h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px; font-weight: 400; color: var(--cream); line-height: 1.3;
}
.feat-coin {
  width: 96px; height: 96px; object-fit: contain;
  position: absolute; right: 18px; bottom: 22px;
  filter: drop-shadow(0 6px 18px rgba(196,75,43,.45));
  transition: transform .4s cubic-bezier(.4,0,.2,1), filter .3s;
}
.feat-card:hover .feat-coin {
  transform: rotate(8deg) scale(1.12);
  filter: drop-shadow(0 12px 30px rgba(232,144,58,.6));
}

/* coming-soon placeholder cards */
.feat-card--soon .feat-img-wrap img { filter: brightness(.45) saturate(.55); }
.feat-card--soon .feat-text .loc-tag { color: var(--cream-dim); }
.feat-coin--placeholder {
  position: absolute; right: 18px; bottom: 22px;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(232,144,58,.4);
  border: 1px dashed rgba(232,144,58,.25);
  border-radius: 50%;
}
.feat-coin-placeholder {
  position: absolute; right: 18px; bottom: 22px;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1.15;
  font-family: 'Barlow', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(232,144,58,.85);
  border: 1px dashed rgba(232,144,58,.4);
  border-radius: 50%;
  background: rgba(13,11,9,.4);
  transition: transform .4s cubic-bezier(.4,0,.2,1), border-color .3s, color .3s;
}
.feat-card:hover .feat-coin-placeholder {
  transform: scale(1.08);
  border-color: var(--amber, #d4af37);
  color: var(--amber, #d4af37);
}

/* prev / next arrow buttons */
.scroll-btn {
  position: absolute;
  top: 38%;                       /* roughly centered on the image, not the whole card */
  transform: translateY(-50%);
  width: 54px; height: 54px;
  background: rgba(13,11,9,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232,144,58,.3);
  color: var(--amber);
  font-size: 28px; line-height: 1;
  cursor: none;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s, color .3s, opacity .4s, transform .3s;
  font-family: 'Barlow', sans-serif;
}
.scroll-btn:hover {
  background: var(--amber);
  color: var(--dark);
  border-color: var(--amber);
}
.scroll-btn.prev { left: 14px; }
.scroll-btn.next { right: 14px; }
.scroll-btn.disabled {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(.85);
}

@media (max-width:960px) {
  .featured { padding: 80px 0; }
  .featured-header { padding: 0 24px; }
  .featured-grid {
    padding: 12px 24px 32px;
    scroll-padding-left: 24px;
    gap: 16px;
  }
  .feat-card { flex: 0 0 70%; min-width: 240px; max-width: 400px; }
  .scroll-btn { display: none; } /* rely on swipe on mobile */
}
@media (max-width:560px) {
  .feat-card { flex: 0 0 84%; }
}

/* ── COIN ZOOM / LIGHTBOX ── */
.coin-zoom {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(7,6,4,.88);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.coin-zoom.active {
  opacity: 1;
  pointer-events: all;
}
.coin-zoom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform: scale(.82);
  transition: transform .45s cubic-bezier(.2,1.2,.3,1);
  max-width: 90vw;
}
.coin-zoom.active .coin-zoom-inner { transform: scale(1); }
.coin-zoom-inner img {
  width: min(78vmin, 620px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 28px 70px rgba(232,144,58,.55))
          drop-shadow(0 12px 28px rgba(0,0,0,.6));
  animation: coinZoomFloat 6s ease-in-out infinite;
}
@keyframes coinZoomFloat {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-10px) rotate(1deg); }
}
.coin-zoom-inner figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.coin-zoom-inner .catalog-loc { font-size: 11px; letter-spacing: 4px; }
.coin-zoom-inner strong {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 400;
  color: var(--cream);
}

.coin-zoom-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 46px; height: 46px;
  background: rgba(13,11,9,.6);
  border: 1px solid rgba(232,144,58,.3);
  color: var(--amber);
  font-size: 20px;
  cursor: none;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s, transform .3s;
  border-radius: 50%;
}
.coin-zoom-close:hover {
  background: var(--amber);
  color: var(--dark);
  transform: scale(1.08);
}

/* Tablet + mobile: smaller coin, closer padding */
@media (max-width: 960px) {
  .coin-zoom { padding: 24px 18px; }
  .coin-zoom-inner { gap: 16px; }
  .coin-zoom-inner img { width: min(80vmin, 460px); }
  .coin-zoom-close { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 18px; }
}
@media (max-width: 480px) {
  .coin-zoom-inner img { width: min(84vmin, 340px); }
  .coin-zoom-inner .catalog-loc { font-size: 10px; letter-spacing: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .coin-zoom-inner img { animation: none; }
  .coin-zoom-inner { transition: none; transform: scale(1); }
}

/* Touch devices get proper pointer on catalog + zoom elements */
@media (hover: none), (pointer: coarse) {
  .catalog-coin,
  .coin-zoom-close { cursor: pointer; }
}