/* ==========================================================================
   Luxury minimalist trading: black and gold bio link. Mobile first.

   1. Tokens and base      5. Link cards
   2. Background           6. Broker cards
   3. Layout               7. Footer
   4. Hero                 8. Toast, motion, hover, breakpoints
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- 1. Tokens and base ---------- */

:root {
  --ink: #060504;
  --text: #f7f3ea;
  --muted: #b9b1a1;
  --faint: #8f8878;

  --gold: #e2ac4a;
  --gold-bright: #ffd98a;
  --gold-rgb: 226, 172, 74;
  --amber-rgb: 255, 176, 72;

  --gold-text: linear-gradient(100deg, #b98a35 0%, #ffd98a 32%, #fff1cc 48%, #e2ac4a 68%, #ffcf7a 100%);
  --silver-text: linear-gradient(178deg, #ffffff 18%, #dcdcdc 52%, #8d8d8d 74%, #e6e6e6 100%);
  --gold-fill: linear-gradient(180deg, #ffe09b 0%, #e6b253 60%, #bd8a32 100%);

  --glass: linear-gradient(100deg, rgba(38, 28, 13, 0.62), rgba(11, 9, 6, 0.58) 42%, rgba(26, 19, 9, 0.56));
  --edge: linear-gradient(100deg, rgba(var(--gold-rgb), 0.72), rgba(var(--gold-rgb), 0.22) 30%, rgba(var(--gold-rgb), 0.18) 64%, rgba(var(--gold-rgb), 0.66));
  --edge-bright: linear-gradient(100deg, #ffe09b, #e2ac4a 34%, #b98a35 62%, #ffe09b);

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Manrope", system-ui, sans-serif;

  --radius: 18px;
  --gutter: 16px;
  --narrow: 776px;
  --wide: 920px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Full image on wide screens; on phones it is taller, which crops in on the trader. */
  --stage-height: max(min(100vw, 2172px) / 3, min(64vw, 340px));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.noscript { padding: 40px var(--gutter); text-align: center; color: var(--muted); }

.gold { color: var(--gold); }

.monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

/* Hairline gold edge that leaves the glass inside the card see-through. */
.card::before, .broker::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

/* ---------- 2. Background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #0d0a06 0%, var(--ink) 30%, var(--ink) 74%, #0c0906 100%);
}

.bg__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 34% at 50% 8%, rgba(var(--amber-rgb), 0.13), transparent 74%),
    radial-gradient(38% 26% at 96% 58%, rgba(var(--amber-rgb), 0.05), transparent 70%),
    radial-gradient(38% 26% at 4% 82%, rgba(var(--amber-rgb), 0.05), transparent 70%);
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--gold-rgb), 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--gold-rgb), 0.038) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 92%);
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 92%);
}

.bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(95% 85% at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.55) 100%);
}

.scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.scene__panel {
  --panel: clamp(220px, 40vw, 640px);
  position: absolute;
  width: var(--panel);
  height: auto;
  overflow: visible;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, #000 12%, transparent 88%), linear-gradient(180deg, #000 72%, transparent 97%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 12%, transparent 88%), linear-gradient(180deg, #000 72%, transparent 97%);
  mask-composite: intersect;
}

.scene__panel--left { top: 0; left: 0; }
.scene__panel--right { top: 0; right: 0; transform: scaleX(-1); }

.scene__panel--low-left, .scene__panel--low-right {
  --panel: clamp(200px, 34vw, 560px);
  bottom: calc(654px + var(--stage-height) * 0.46);
  opacity: 0.32;
}

.scene__panel--low-left { left: 0; }
.scene__panel--low-right { right: 0; transform: scaleX(-1); }

.scene__map {
  position: absolute;
  top: 6px;
  right: -4%;
  width: clamp(240px, 58vw, 720px);
  height: auto;
  opacity: 0.13;
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 2%, #000 42%);
}

.scene__mark {
  position: absolute;
  top: 34px;
  left: 2%;
  width: clamp(150px, 26vw, 400px);
  height: auto;
  opacity: 0.06;
}

.scene__mark--text {
  color: var(--gold-bright);
  font-size: clamp(70px, 12vw, 180px);
}

/* ---------- 3. Layout ---------- */

.shell {
  width: 100%;
  max-width: calc(var(--wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  max-width: var(--narrow);
  margin-inline: auto;
  padding-top: 26px;
  scroll-margin-top: 16px;
}

.section--wide { max-width: var(--wide); padding-top: 38px; }

.stack { display: grid; gap: 11px; }
.stack > li { display: grid; }

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2 {
  color: var(--gold);
  font-size: clamp(0.82rem, 3.7vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-head__rule {
  flex: 1;
  min-width: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.75));
}

.section-head__rule:last-child { transform: scaleX(-1); }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gold-bright);
}

.ornament span {
  width: clamp(54px, 18vw, 130px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.8));
}

.ornament span:last-child { transform: scaleX(-1); }

.spark { flex: none; width: 13px; height: 13px; filter: drop-shadow(0 0 5px rgba(var(--amber-rgb), 0.9)); }

/* Online indicator */

.presence {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 10px;
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  border-radius: 999px;
  background: rgba(10, 8, 5, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.76rem;
  font-weight: 600;
}

.presence__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35d36f;
  animation: pulse 2.6s ease-out infinite;
}

/* ---------- 4. Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 30px 0;
  text-align: center;
}

.avatar {
  --size: clamp(132px, 37vw, 196px);
  position: relative;
  width: var(--size);
  height: var(--size);
  margin-bottom: 18px;
}

.avatar__halo {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--amber-rgb), 0.34), transparent 66%);
}

.avatar__ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(#b8802c, #ffd98a, #fff3d2, #e2ac4a, #9a6a22, #e2ac4a, #ffd98a, #b8802c);
  box-shadow: 0 0 16px rgba(var(--amber-rgb), 0.75), 0 0 46px rgba(var(--amber-rgb), 0.38);
  animation: spin 26s linear infinite;
}

.avatar__photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #0c0a07;
}

.avatar__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.19) translate(0.7%, 1.2%); /* Centers the circular logo in the frame; remove for a regular photo */
}

.avatar__photo .monogram {
  font-size: calc(var(--size) * 0.36);
  color: var(--gold);
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 10.2vw, 4.4rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.005em;
}

.silver, .brushed {
  display: inline-block;
  padding-inline: 0.03em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.silver { background-image: var(--silver-text); }

.brushed {
  position: relative;
  background-image: var(--gold-text);
}

.brushed__stroke {
  position: absolute;
  z-index: -1;
  right: -0.32em;
  bottom: 0.02em;
  width: 118%;
  height: 0.82em;
  fill: rgba(var(--gold-rgb), 0.62);
  filter: drop-shadow(0 0 7px rgba(var(--amber-rgb), 0.45));
}

.hero__tagline {
  margin-top: 6px;
  font-size: clamp(1rem, 4.4vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  margin-right: -0.16em;
}

.hero__tagline span { display: inline-block; }
.hero__tagline .gold { display: inline; font-weight: 700; }

.hero .ornament { margin-top: 12px; }

.hero__quote {
  position: relative;
  display: grid;
  justify-items: center;
  margin-top: 12px;
  padding-inline: 1.7em;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 4.2vw, 1.22rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  word-spacing: 0.1em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

.hero__quote::before, .hero__quote::after {
  position: absolute;
  color: var(--gold);
  font-size: 2.2em;
  font-weight: 800;
  line-height: 1;
}

.hero__quote::before { content: "\201C"; top: -0.04em; left: 0; }
.hero__quote::after { content: "\201D"; right: 0; bottom: -0.34em; }

.hero__philosophy {
  max-width: 44ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-wrap: pretty;
}

/* ---------- 5. Link cards ---------- */

.card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 13px;
  min-height: 80px;
  padding: 11px 14px;
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 236, 200, 0.05);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* Diagonal light and the hover sheen, clipped so the badge can sit outside the card. */
.card__fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.card__fx::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  right: 13%;
  width: 90px;
  transform: skewX(-38deg);
  background: linear-gradient(90deg, transparent, rgba(var(--amber-rgb), 0.055), transparent);
}

.card__fx::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 40%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 217, 138, 0.14), transparent);
}

.card__icon {
  --brand: 255, 255, 255;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  filter: drop-shadow(0 2px 10px rgba(var(--brand), 0.34));
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.card__icon--telegram { --brand: 42, 171, 238; }
.card__icon--whatsapp { --brand: 37, 211, 102; }
.card__icon--tiktok { --brand: 254, 44, 85; }
.card__icon--threads { --brand: 255, 255, 255; }
.card__icon--facebook { --brand: 8, 102, 255; }

.glyph { width: 100%; height: 100%; }

.card__icon--tiktok .glyph, .card__icon--threads .glyph {
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.card__text { display: grid; gap: 1px; min-width: 0; }

.card__text strong {
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.card__text small {
  color: #cfc9bc;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  word-spacing: 0.05em;
}

.card__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(var(--gold-rgb), 0.8);
  border-radius: 50%;
  color: var(--gold-bright);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card__arrow svg { width: 17px; height: 17px; }

.card:active { transform: scale(0.985); }

/* Primary: Telegram Channel */

.card--primary {
  min-height: 92px;
  margin-top: 7px; /* Room for the badge on narrow screens */
  padding-block: 19px 12px;
  background: linear-gradient(100deg, rgba(70, 48, 16, 0.72), rgba(20, 14, 7, 0.72) 46%, rgba(58, 40, 14, 0.66));
  box-shadow:
    0 0 0 1px rgba(255, 217, 138, 0.2),
    0 0 26px rgba(var(--amber-rgb), 0.42),
    0 14px 36px rgba(0, 0, 0, 0.5),
    inset 0 0 26px rgba(var(--amber-rgb), 0.1);
}

.card--primary::before {
  padding: 2px;
  background: var(--edge-bright);
}

.card__halo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 44px rgba(var(--amber-rgb), 0.46);
  animation: glow 4.2s ease-in-out infinite;
  pointer-events: none;
}

.card--primary .card__icon {
  position: relative;
  filter: drop-shadow(0 0 13px rgba(var(--brand), 0.62));
}

.card--primary .card__icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1.5px solid rgba(var(--brand), 0.6);
  border-radius: 50%;
}

.card--primary .card__text strong { font-size: 1.09rem; }
.card--primary .card__text small { color: #e6dfd0; word-spacing: 0; }

.card--primary .card__arrow {
  border-color: var(--gold-bright);
  box-shadow: 0 0 14px rgba(var(--amber-rgb), 0.55);
}

.card__badge {
  position: absolute;
  top: 0;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px 3px 8px;
  border-radius: 999px;
  background: var(--gold-fill);
  box-shadow: 0 3px 14px rgba(var(--amber-rgb), 0.42);
  color: #1b1102;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateY(-50%);
}

.card__badge svg { width: 11px; height: 11px; }

/* ---------- 6. Broker cards ---------- */

.brokers { display: grid; gap: 14px; }
.brokers > li { display: grid; }

.broker {
  --accent: var(--gold);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 244px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(26, 20, 11, 0.74), rgba(9, 8, 6, 0.72));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 236, 200, 0.05);
  text-align: center;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.broker__corners {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.3;
  background:
    linear-gradient(225deg, var(--accent), transparent 19%),
    linear-gradient(315deg, var(--accent), transparent 11%);
  transition: opacity 0.3s var(--ease);
}

.broker__logo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 68px;
  margin-bottom: 12px;
}

.broker__logo img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.broker__fallback {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 6px 16px;
  border: 1px dashed rgba(var(--gold-rgb), 0.5);
  border-radius: 10px;
  color: var(--gold-bright);
  font-weight: 700;
}

.broker__name {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.broker__text {
  margin-top: 5px;
  margin-bottom: 16px;
  color: #cfc9bc;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  word-spacing: 0.05em;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 172px;
  min-height: 44px;
  margin-top: auto;
  padding: 8px 22px;
  border: 1.5px solid rgba(var(--gold-rgb), 0.85);
  border-radius: 999px;
  background: rgba(var(--gold-rgb), 0.04);
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn svg { flex: none; width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:active { background: rgba(var(--gold-rgb), 0.18); }

/* The whole broker card is clickable through its button. */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

/* ---------- 7. Footer ---------- */

.footer {
  position: relative;
  margin-top: 42px;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  text-align: center;
  isolation: isolate;
}

.footer__center {
  position: relative;
  z-index: 1;
  padding-inline: var(--gutter);
}

.footer__headline {
  margin-top: 16px;
  color: #efe9dc;
  font-size: clamp(0.98rem, 4.5vw, 1.55rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
}

.footer__headline .gold { font-weight: 600; }

.footer__bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 14px;
}

.footer__bars span {
  width: clamp(44px, 14vw, 90px);
  height: 1px;
  margin-inline: 5px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.8));
}

.footer__bars span:last-child { transform: scaleX(-1); }

.footer__bars i {
  width: 24px;
  height: 7px;
  transform: skewX(-32deg);
  background: var(--gold-fill);
}

.footer__mark {
  width: 84px;
  height: auto;
  margin: 22px auto 0;
  filter: drop-shadow(0 0 10px rgba(var(--amber-rgb), 0.28));
}

.footer__copy {
  margin-top: 12px;
  color: #d8d2c6;
  font-size: 0.78rem;
}

.footer__risk {
  max-width: 58ch;
  margin: 7px auto 0;
  color: var(--faint);
  font-size: 0.7rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.footer__top {
  display: inline-block;
  margin-top: 6px;
  padding: 12px 14px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-underline-offset: 3px;
}

.stage {
  /* The dark upper part of the image runs behind the text, ending just above the trader's
     head, which sits 54% of the way down the image. */
  margin-top: calc(22px - var(--stage-height) * 0.54);
}

.stage img {
  display: block;
  width: 100%;
  max-width: 2172px;
  height: var(--stage-height);
  margin-inline: auto;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 26%);
  mask-image: linear-gradient(180deg, transparent, #000 26%);
}

/* ---------- 8. Toast and motion ---------- */

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  transform: translate(-50%, 16px);
  border: 1px solid rgba(var(--gold-rgb), 0.6);
  border-radius: 999px;
  background: #15100a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.toast.is-on {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.rise { animation: rise 0.7s var(--ease) both; animation-delay: var(--d, 0ms); }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 211, 111, 0.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(53, 211, 111, 0); }
}

@keyframes glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ---------- Hover (real pointers only, so touch never sticks) ---------- */

@media (hover: hover) {
  .card:hover, .broker:hover {
    transform: translateY(-2px);
    box-shadow:
      0 0 0 1px rgba(var(--gold-rgb), 0.4),
      0 0 26px rgba(var(--amber-rgb), 0.3),
      0 16px 36px rgba(0, 0, 0, 0.52),
      inset 0 1px 0 rgba(255, 236, 200, 0.08);
  }

  .card--primary:hover {
    box-shadow:
      0 0 0 1px rgba(255, 217, 138, 0.42),
      0 0 40px rgba(var(--amber-rgb), 0.62),
      0 16px 40px rgba(0, 0, 0, 0.52),
      inset 0 0 30px rgba(var(--amber-rgb), 0.14);
  }

  .card:hover .card__fx::before, .broker:hover .card__fx::before {
    left: 110%;
    transition: left 0.85s var(--ease);
  }

  .card:hover .card__icon { transform: scale(1.06); }

  .card:hover .card__arrow {
    transform: translateX(3px);
    background: var(--gold-fill);
    color: #1b1102;
    box-shadow: 0 0 16px rgba(var(--amber-rgb), 0.6);
  }

  .broker:hover .broker__corners { opacity: 0.5; }

  .broker:hover .btn {
    background: var(--gold-fill);
    color: #1b1102;
    box-shadow: 0 0 20px rgba(var(--amber-rgb), 0.45);
  }

  .broker:hover .btn svg { transform: translateX(3px); }

  .footer__top:hover { text-decoration: underline; }
}

/* ---------- Very narrow phones ---------- */

@media (max-width: 359px) {
  :root { --gutter: 12px; }

  .card {
    grid-template-columns: 44px minmax(0, 1fr) 30px;
    gap: 10px;
    padding-inline: 11px;
  }

  .card__icon { width: 44px; height: 44px; }
  .card__arrow { width: 30px; height: 30px; }
  .card__text strong { font-size: 0.98rem; }
  .card__text small { font-size: 0.76rem; }
  .card__badge { right: 11px; }
}

@media (max-width: 719px) {
  .scene__panel--left .scene__spark { display: none; }
}

/* ---------- Tablet: the broker row starts ---------- */

@media (min-width: 720px) {
  :root { --gutter: 24px; --radius: 20px; }

  .presence { top: 22px; right: 26px; font-size: 0.88rem; padding: 7px 18px 7px 14px; }
  .hero { padding-top: 36px; }
  .hero .ornament { margin-top: 16px; }
  .hero__quote { margin-top: 14px; }
  .section { padding-top: 34px; }
  .section--wide { padding-top: 44px; }
  .section-head { margin-bottom: 22px; }
  .stack { gap: 12px; }

  .card {
    grid-template-columns: 58px minmax(0, 1fr) 40px;
    gap: 20px;
    min-height: 76px;
    padding: 9px 22px 9px 28px;
  }

  .card__icon { width: 56px; height: 56px; }
  .card__arrow { width: 40px; height: 40px; }
  .card__arrow svg { width: 20px; height: 20px; }
  .card__text strong { font-size: 1.14rem; }
  .card__text small { font-size: 0.88rem; }

  .card--primary {
    min-height: 92px;
    margin-top: 0;
    padding-block: 9px;
  }

  .card--primary .card__text small { word-spacing: 0.05em; }

  .card--primary .card__icon { width: 58px; height: 58px; }
  .card--primary .card__text strong { font-size: 1.2rem; }

  /* The badge moves inside the card, above the arrow's row. */
  .card__badge {
    top: 12px;
    right: 78px;
    font-size: 0.68rem;
    padding: 4px 13px 4px 10px;
    transform: none;
  }

  .brokers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .scene__panel { opacity: 0.72; }
  .scene__panel--low-left, .scene__panel--low-right { bottom: calc(376px + var(--stage-height) * 0.46); opacity: 0.45; }
  .scene__map { opacity: 0.2; right: -2%; }
  .scene__mark { opacity: 0.075; top: 44px; }

  .footer { margin-top: 56px; }
}

@media (min-width: 2173px) {
  .stage img {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 26%), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, transparent, #000 26%), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-composite: intersect;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal { opacity: 1; transform: none; }
}
