/*
 * Shared styles for every page.
 *
 * Values are measured from the Framer site this replaces (phoenixgoldnetwork.org,
 * Sep 2026) with a headless browser — computed font sizes, weights, spacing,
 * colours and radii at Framer's three breakpoints:
 *   desktop  >= 1200px   (measured at 1440)
 *   tablet   810-1199px  (measured at 810)
 *   phone    < 810px     (measured at 390)
 * When something looks "off by a pixel", re-measure rather than eyeball — see
 * README → "Matching the Framer design".
 *
 * The brand is dark-only; `color-scheme: dark` keeps native controls consistent.
 */

/* ------------------------------------------------------------------ fonts */
/* One font for the whole site, self-hosted (Framer mixed in Figtree, Rubik,
   Jost, Inter and Uncut Sans; deliberately collapsed to Plus Jakarta Sans to
   keep page weight down). Root-absolute URL because 404.html renders at
   whatever path was typed. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/assets/plus-jakarta-sans.woff2) format('woff2');
}

/* ----------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;
  /* Framer palette */
  --bg: #151414; /* page + nav */
  --bg-deep: #151414;
  --surface: #1c1c1c; /* dropdown panel, hero disc */
  --surface-2: #1e1e1e; /* FAQ icon circles */
  --line: rgba(255, 255, 255, 0.08); /* article cards */
  --line-card: rgba(248, 249, 250, 0.2); /* feature / pillar cards */
  --line-strong: rgba(255, 255, 255, 0.16); /* round icon links */
  --text: #ffffff;
  --text-2: #f0f0f0;
  --muted: rgba(255, 255, 255, 0.6);
  --gold: #f29900;
  --gold-2: #ff9b29;
  --gold-line: #ffbf6b;
  --gold-soft: rgba(242, 153, 0, 0.14);
  --danger: #ff5c5c;
  --ok: #3ecf8e;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1224px;
  --gutter: 20px;
  --nav-h: 85px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Framer's appear animations are springs; this curve tracks their measured
     opacity (≈0.55 at 25% of the duration, ≈0.9 at 50%). */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 810px) {
  :root {
    --gutter: 30px;
  }
}

/* ------------------------------------------------------------------ reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
  font-weight: inherit;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Any component that sets `display` would otherwise override the hidden
   attribute — the mine page's migration notice showed for every visitor. */
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.gold {
  color: var(--gold);
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}

/* Thin border drawn as an overlay, the way Framer does it — so it never
   changes the box size and can be animated on hover. */
.bordered {
  position: relative;
}
.bordered::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--bd, var(--line-card));
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.2s;
}

/* -------------------------------------------------------------------- nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-in {
  height: 100%;
  max-width: 1130px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
}
.nav-logo {
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}
.nav-logo img {
  width: 43px;
  height: 43px;
  border-radius: 8px;
}
.nav-links {
  display: none;
  align-items: center;
  margin-left: 10px;
}
.nav-links > a,
.nav-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 45px;
  padding: 0 20px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
}
.nav-links > a:hover,
.nav-dd-btn:hover,
.nav-links > a[aria-current='page'] {
  color: var(--text-2);
}
.nav-links > a[aria-current='page'] {
  color: var(--gold);
}
.nav-dd {
  position: relative;
}
.nav-dd-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}
.nav-dd.open .nav-dd-btn svg {
  transform: rotate(180deg);
}
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 20px);
  left: -350px;
  width: 605px;
  padding: 30px 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 8px 40px 3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    visibility 0s 0.25s;
}
.nav-dd.open .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}
/* the little notch pointing at "Community" */
.nav-dd-panel::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 419px;
  width: 37px;
  height: 37px;
  border-radius: 5px;
  background: var(--surface);
  transform: scale(0.71) rotate(45deg);
}
.nav-dd-item {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 8px 10px;
  padding: 15px;
  border-radius: 12px;
  transition: background 0.2s;
}
.nav-dd-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.nav-dd-item img,
.nav-dd-item svg {
  width: 17px;
  height: 17px;
}
.nav-dd-item b {
  font-size: 17px;
  line-height: 17px;
  font-weight: 700;
}
.nav-dd-item span {
  grid-column: 2;
  font-size: 11px;
  line-height: 16.5px;
  font-weight: 500;
}
.nav-dd-panel .btn-cta {
  grid-column: 1 / -1;
  width: 100%;
}
.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* "Start Mining" — Framer's primary nav button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 41px;
  padding: 0 20px;
  border-radius: 11px;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  white-space: nowrap;
  --bd: #333333;
}
.btn-cta:hover {
  --bd: #4d4d4d;
}
/* Phone-only social shortcuts next to the menu button, as on Framer. */
.nav-socials {
  display: none;
  align-items: center;
  gap: 18px;
  margin-right: 10px;
}
.nav-socials img {
  width: 22px;
  height: 22px;
}
@media (max-width: 809px) {
  .nav-socials {
    display: flex;
  }
}
.nav-burger {
  display: grid;
  gap: 6px;
  width: 44px;
  height: 44px;
  place-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.2s;
}
.nav.menu-open .nav-burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav.menu-open .nav-burger span:nth-child(2) {
  opacity: 0;
}
.nav.menu-open .nav-burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  padding: 8px var(--gutter) 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav.menu-open .nav-mobile {
  display: grid;
}
.nav-mobile a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
}
.nav-mobile .btn-cta {
  margin-top: 18px;
  height: 48px;
  border-bottom: 0;
}
.nav-mobile .socials {
  margin-top: 18px;
}
.nav-mobile h4 {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (min-width: 1200px) {
  .nav-in {
    padding: 0;
  }
  .nav-links {
    display: flex;
  }
  .nav-burger,
  .nav-mobile,
  .nav.menu-open .nav-mobile {
    display: none;
  }
}
@media (max-width: 1199px) {
  :root {
    --nav-h: 83px;
  }
  .nav-in {
    max-width: none;
    padding: 0 51px;
  }
  .nav-end .btn-cta {
    display: none;
  }
}
@media (max-width: 809px) {
  :root {
    --nav-h: 55px;
  }
  .nav-in {
    padding: 0 30px;
  }
  .nav-logo img {
    width: 30px;
    height: 30px;
  }
}

/* Every page's content starts 80px down — the nav overlaps it by 5px on
   desktop, exactly as on Framer. */
main {
  padding-top: 80px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s var(--ease-out),
    opacity 0.2s;
}
.btn-gold {
  background: var(--gold);
  color: #1a1100;
}
.btn-gold:hover {
  background: var(--gold-2);
}
.btn-light {
  background: #fff;
  color: var(--bg);
}
.btn-light:hover {
  transform: scale(1.02);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
}
.btn-danger {
  background: transparent;
  border-color: rgba(255, 92, 92, 0.5);
  color: var(--danger);
}
.btn-danger:hover {
  background: rgba(255, 92, 92, 0.1);
}
.btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Framer's white pill with a sliding arrow ("Participate", "Go Back Home"). */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 47px;
  padding: 0 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 27.2px;
  transition: background 0.25s;
}
.btn-pill:hover {
  background: #c2c2c2;
  color: rgba(0, 0, 0, 0.85);
}
.arrow-slide {
  position: relative;
  width: 16px;
  height: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.arrow-slide svg {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease-out);
}
.arrow-slide svg + svg {
  transform: translateX(-120%);
}
a:hover > .arrow-slide svg:first-child,
button:hover > .arrow-slide svg:first-child {
  transform: translateX(120%);
}
a:hover > .arrow-slide svg + svg,
button:hover > .arrow-slide svg + svg {
  transform: translateX(0);
}

/* Gold "Learn More" style — inset highlight like Framer's. */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 53px;
  padding: 0 20px;
  border-radius: 15px;
  background: var(--gold);
  color: #fff;
  font-size: 16px;
  line-height: 28.8px;
  letter-spacing: -0.2px;
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.25),
    inset -2px -2px 4px rgba(255, 255, 255, 0.25);
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-glow:hover {
  background: rgba(255, 155, 41, 0.8);
  color: rgba(255, 255, 255, 0.8);
}
.btn-glow.soon {
  cursor: default;
}

/* Section eyebrow chip ("GOLD SOLVED" on Participate) */
.chip-label {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--gold);
  color: #151414;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Round icon links (DEX logos, socials) with Framer's hover border. */
.round-link {
  display: grid;
  place-items: center;
  border-radius: 70px;
  --bd: transparent;
  transition: transform 0.3s var(--ease-out);
}
.round-link:hover {
  transform: scale(1.1);
}

/* ---------------------------------------------------------------- headings */
.h-section {
  font-size: 48px;
  line-height: 62.4px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
@media (max-width: 1199px) {
  .h-section {
    font-size: 42px;
    line-height: 54.6px;
  }
}
@media (max-width: 809px) {
  .h-section {
    font-size: 36px;
    line-height: 46.8px;
  }
}
.lead {
  font-size: 17px;
  color: var(--muted);
  margin-top: 16px;
  max-width: 640px;
}
.center .lead {
  margin-left: auto;
  margin-right: auto;
}
.section {
  padding: 72px 0;
}

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.grid {
  display: grid;
  gap: 16px;
}

/* -------------------------------------------------------------------- faq */
/* Framer's accordion: 45px dark circle with a plus, 20px question, hairline
   separators. Uses native <details> so it works without JS. */
.faq {
  max-width: 1140px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;
  column-gap: 46px;
  padding: 25px 0 24px; /* 95px row pitch incl. the 1px rule, as on Framer */
  font-size: 20px;
  line-height: 34px;
  color: var(--text-2);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: '';
  width: 45px;
  height: 45px;
  border-radius: 100px;
  background:
    linear-gradient(#fff, #fff) center / 14px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 14px no-repeat,
    var(--surface-2);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::before {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0 26px 91px;
  font-size: 16px;
  line-height: 28.8px;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 809px) {
  .faq summary {
    column-gap: 46px;
  }
  .faq details p {
    padding-left: 0;
  }
}

/* Framer's two-column card FAQ (About, Mine) */
.faq-cards {
  display: grid;
  gap: 16px;
  align-items: start;
}
@media (min-width: 810px) {
  .faq-cards {
    grid-template-columns: 1fr 1fr;
  }
}
.faq-cards details {
  border-radius: 12px;
  background: #1c1c1c;
  --bd: rgba(255, 255, 255, 0.08);
}
.faq-cards summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.faq-cards summary::-webkit-details-marker {
  display: none;
}
.faq-cards summary::before {
  content: '+';
  color: var(--muted);
  font-weight: 400;
  font-size: 18px;
  transition: transform 0.3s var(--ease-out);
}
.faq-cards details[open] summary::before {
  transform: rotate(45deg);
}
.faq-cards details p {
  padding: 0 20px 20px 46px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

/* ----------------------------------------------------------------- footer */
.footer {
  padding: 0 0 196px;
}
.footer-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 40px;
}
/* space under the footer rule, per breakpoint, as on Framer */
@media (max-width: 1199px) {
  .footer {
    padding-bottom: 161px;
  }
}
@media (max-width: 809px) {
  .footer {
    padding-bottom: 74px;
  }
  /* "Support The Vision" and the social icons share a row on phones */
  .footer-in > :last-child {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 16px;
  }
  .footer .vision {
    margin-bottom: 0;
  }
  .footer .contract {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 20px;
  }
  .footer .socials {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }
  .footer .socials a {
    width: 42px;
    height: 42px;
  }
  .footer .socials img {
    width: 22px;
    height: 22px;
  }
  .footer-rule {
    margin-top: 25px;
  }
  .footer-in {
    gap: 29px;
  }
  .footer h4 {
    margin-bottom: 30px;
  }
}
@media (min-width: 810px) {
  .footer-in {
    padding: 0 30px;
    grid-template-columns: 488px 1fr;
    column-gap: 0;
  }
}
@media (min-width: 1200px) {
  .footer-in {
    padding: 0;
    grid-template-columns: 732px 1fr;
    column-gap: 0;
  }
}
.footer h4 {
  font-size: 14px;
  line-height: 23.8px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12.5px;
  font-size: 15px;
  line-height: 25.5px;
}
.footer ul a {
  font-size: 15px;
  line-height: 25.5px;
  font-weight: 700;
  transition: color 0.2s;
}
.footer ul a:hover {
  color: var(--gold);
}
.footer .vision {
  font-size: 18px;
  line-height: 30.6px;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer .contract {
  display: block;
  font-size: 18px;
  line-height: 30.6px;
  font-weight: 600;
  color: var(--gold);
  word-break: break-all;
}
.socials {
  display: flex;
  gap: 0;
  margin-top: 41px;
}
.socials a {
  width: 50px;
  height: 50px;
}
.socials img {
  width: 24px;
  height: 24px;
}
.footer-rule {
  max-width: 1200px;
  margin: 105px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* App pages keep a compact one-line footer. */
.footer-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 var(--gutter);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.footer-bottom .contract {
  display: inline;
  font-size: 13px;
  line-height: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ------------------------------------------------ $PGC banner (home, participate) */
.pgc-banner {
  position: relative;
  max-width: 980px;
  height: 220px;
  margin: 29px auto 0;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(6, 6, 6, 0), #0e0e0e),
    url(/assets/img/pgc-banner.jpg) center / cover;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px 12px 66px;
}
.pgc-banner::before {
  content: '';
  position: absolute;
  left: 3px;
  right: 7px;
  top: 3px;
  height: 99px;
  border-radius: 10px;
  background: linear-gradient(#000 26.43%, rgba(0, 0, 0, 0));
}
.glow {
  position: absolute;
  border-radius: 200px;
  pointer-events: none;
}
/* Framer clips both glow blobs inside a 358x195 ellipse. */
.glow-clip {
  position: absolute;
  left: 281px;
  top: 68px;
  width: 358px;
  height: 195px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  /* soft edge — a hard elliptical clip reads as a shape, not a glow */
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.pgc-banner .g1 {
  left: 80px;
  top: 75px;
  width: 125px;
  height: 206px;
  background: var(--gold);
  opacity: 0.6;
  filter: blur(50px);
}
.pgc-banner .g2 {
  left: 155px;
  top: 64px;
  width: 130px;
  height: 217px;
  background: #fff;
  filter: blur(50px);
}
.pgc-banner > div {
  position: relative;
}
.pgc-banner h2 {
  font-size: 67px;
  line-height: 80.4px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -4.02px;
  color: var(--gold);
  filter: brightness(1.22);
}
.pgc-banner p {
  font-size: 15px;
  line-height: 25.5px;
  font-weight: 700;
}
.dex {
  display: flex;
  align-items: center;
  gap: 2px;
}
.dex a {
  width: 99px;
  height: 111px;
}
.dex a + a {
  width: 88px;
  height: 124px;
}
.dex img {
  width: 72px;
}
.dex a + a img {
  width: 64px;
}

@media (max-width: 1199px) {
  .pgc-banner {
    max-width: 390px;
    height: auto;
    min-height: 291px;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 30px 20px;
    text-align: center;
  }
  .pgc-banner h2 {
    font-size: 48px;
    line-height: 57.6px;
    letter-spacing: -2.88px;
  }
  .pgc-banner .glow-clip {
    left: 16px;
    top: 120px;
  }
}

/* ------------------------------------------------------ scroll reveals */
/* Only hide content once JS has confirmed it will reveal it again
   (site.js adds .js to <html>). Without JS, or with reduced motion,
   everything is simply visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition:
    opacity 0.7s var(--ease-out) var(--d, 0s),
    transform 0.7s var(--ease-out) var(--d, 0s);
}
.js [data-reveal='left'] {
  transform: translate3d(-50px, 0, 0);
}
.js [data-reveal='pop'] {
  transform: scale(0.5);
  transition-duration: 1s;
}
.js [data-reveal='soft'] {
  transform: translate3d(0, 30px, 0);
  transition-duration: 1s;
}
.js [data-reveal='hero'] {
  transform: translate3d(0, 30px, 0);
  transition-duration: 1s;
}
.js [data-reveal='tilt'] {
  transform: perspective(1200px) translate3d(0, 40px, 0) rotateX(5deg) rotateY(-2deg) scale(0.8);
  transition-duration: 1s;
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* The nav drops in on load, like Framer's. */
.js .nav {
  animation: nav-in 0.8s var(--ease-out) both;
}
@keyframes nav-in {
  from {
    transform: translateY(-84px);
    opacity: 0;
  }
}

/* --------------------------------------------------------- dialog/misc */
dialog.modal {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
dialog.modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 {
  font-size: 18px;
  font-weight: 700;
}
.modal-body {
  padding: 20px;
  display: grid;
  gap: 14px;
  overflow-wrap: anywhere;
}
.modal-foot {
  padding: 0 20px 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.x-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-2);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--gold-soft);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
  margin: 8px auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
