/* Founding Tokens: the invite page, the coin and the claim ceremony. */
.founding-page { max-width: 1060px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) 16px 80px; }
.ft-card { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.ft-card h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.05; margin: 6px 0 14px; letter-spacing: -0.02em; }
.ft-card .lede { font-size: 18px; color: var(--muted-dark); }
.ft-card .lede b { color: var(--text); }
.ft-art { display: grid; place-items: center; }
.ft-rules { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.ft-rules li { padding: 12px 14px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); color: var(--muted-dark); font-size: 14px; }
.ft-rules b { color: var(--text); display: block; }
@media (max-width: 760px) { .ft-card { grid-template-columns: 1fr; text-align: left; } .ft-art { order: -1; } }

/* The coin: brushed metal in mint, with the number stamped in. It floats
   gently; the face tilts toward your pointer, with light moving across it. */
.ft-coin { display: inline-block; vertical-align: middle; flex: none; --d: 300px; --rx: 0deg; --ry: 0deg; --mx: 30%; --my: 25%; width: var(--d); height: var(--d); max-width: 78vw; max-height: 78vw; perspective: 1100px; animation: ft-float 7s ease-in-out infinite; }
.ft-coin.sm { --d: 64px; animation: none; }
.ft-face { position: relative; width: 100%; height: 100%; border-radius: 50%; display: grid; place-content: center; text-align: center; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  background: radial-gradient(circle at 32% 28%, #e8fff4 0%, #b7ddcf 18%, #7fae9c 46%, #3f6558 78%, #22382f 100%);
  box-shadow:
    inset 0 0 0 calc(var(--d) * 0.035) rgba(255, 255, 255, 0.18), inset 0 0 0 calc(var(--d) * 0.08) rgba(0, 0, 0, 0.18),
    0 calc(var(--d) * 0.012) 0 #2f4d42, 0 calc(var(--d) * 0.024) 0 #22382f, 0 calc(var(--d) * 0.03) 0 #18271f,
    0 30px 70px -24px rgba(57, 255, 139, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #10231c; }
.ft-face::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: soft-light; opacity: 0.9; transition: background-position 0.5s;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 45%), linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.28) 48%, transparent 58%); }
.ft-coin.tilting .ft-face { transition: transform 0.08s linear; }
.ft-coin.claimed .ft-face { background: radial-gradient(circle at 32% 28%, #fff7e0 0%, #f1d48f 20%, #c99a3e 50%, #7a5518 82%, #3d2a0a 100%); color: #2a1c05;
  box-shadow: inset 0 0 0 calc(var(--d) * 0.035) rgba(255, 255, 255, 0.22), inset 0 0 0 calc(var(--d) * 0.08) rgba(0, 0, 0, 0.2),
    0 calc(var(--d) * 0.012) 0 #8a6220, 0 calc(var(--d) * 0.024) 0 #6b4a14, 0 calc(var(--d) * 0.03) 0 #4a330c, 0 30px 80px -24px rgba(255, 196, 80, 0.42); }
.ft-coin.burned { animation: none; }
.ft-coin.burned .ft-face { filter: grayscale(1) brightness(0.55); }
.ft-rim { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; opacity: 0.55; font: 700 11px var(--font-ui); letter-spacing: 0.16em; }
.ft-no { font: 600 calc(var(--d) * 0.07) var(--font-ui); opacity: 0.7; }
.ft-num { font: 800 calc(var(--d) * 0.3) / 0.9 var(--font-ui); letter-spacing: -0.04em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35), 0 -1px 0 rgba(0, 0, 0, 0.25); transform: translateZ(18px); }
.ft-of { font: 600 calc(var(--d) * 0.055) var(--font-ui); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; }
.ft-coin.sm .ft-rim, .ft-coin.sm .ft-no, .ft-coin.sm .ft-of, .ft-coin.sm .ft-num { display: none; }
.ft-coin.sm .ft-face { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.ft-coin.sm .ft-face::after { display: none; }
@keyframes ft-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* The ceremony. */
.ft-ceremony { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-rows: auto auto; align-content: center; justify-items: center; gap: 28px; padding: 24px 16px;
  background: radial-gradient(circle at 50% 38%, rgba(57, 255, 139, 0.12), transparent 55%), rgba(12, 14, 16, 0.96); opacity: 0; transition: opacity 0.35s; overflow-y: auto; }
.ft-ceremony.in { opacity: 1; }
.ft-ceremony.out { opacity: 0; }
.ft-stage { position: relative; display: grid; place-items: center; }
.ft-ceremony .ft-coin { --d: 260px; }
.ft-ceremony .ft-face { animation: ft-flip 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes ft-flip { 0% { transform: rotateY(-900deg) scale(0.2); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotateY(0) scale(1); } }
.ft-maker { display: grid; place-items: center; width: 240px; height: 240px; border-radius: 28px; border: 1px solid var(--line-dark); background: linear-gradient(160deg, var(--carbon-3), var(--carbon)); animation: ft-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ft-maker span { font: 600 13px var(--font-ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-text); }
.ft-maker b { font: 800 64px var(--font-ui); letter-spacing: -0.03em; }
@keyframes ft-rise { from { transform: translateY(30px) scale(0.9); opacity: 0; } }
.ft-words { max-width: 560px; text-align: center; animation: ft-rise 0.8s 0.9s both; }
.ft-words h1 { font-size: clamp(30px, 5vw, 46px); margin: 6px 0 12px; }
.ft-words p { color: var(--muted-dark); }
.ft-sparks { position: absolute; inset: 50%; }
.ft-spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); opacity: 0; animation: ft-spark 1.2s ease-out forwards; }
.ft-spark:nth-child(3n) { background: #f1d48f; box-shadow: 0 0 10px #f1d48f; }
@keyframes ft-spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); } }
@media (prefers-reduced-motion: reduce) { .ft-coin, .ft-face, .ft-ceremony .ft-face, .ft-maker, .ft-words { animation: none; } .ft-face { transform: none !important; } }

/* The token on the signup page and on profiles. */
.ft-signup { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--neon) 35%, transparent); background: color-mix(in srgb, var(--neon) 6%, transparent); margin-bottom: 18px; }
.ft-signup p { margin: 0; font-size: 14px; color: var(--muted-dark); }
.ft-signup b { color: var(--text); }
.ft-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 99px; font: 600 12px var(--font-ui); color: #2a1c05; background: linear-gradient(90deg, #f1d48f, #c99a3e); }
.ft-chip .ft-coin { --d: 18px; }
.ft-chip { text-decoration: none; vertical-align: middle; transition: filter .15s, transform .15s; }
.ft-chip:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* The Founding Friends wall */
.ff-main { padding: clamp(28px, 6vw, 64px) 0 80px; }
.ff-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 5vw, 56px); align-items: center; }
.ff-hero-coin .ft-coin { --d: 220px; }
.ff-hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.05; margin: 8px 0 12px; letter-spacing: -0.02em; }
.ff-hero .lede { color: var(--muted-dark); max-width: 60ch; }
.ff-count { margin: 14px 0 0; font: 500 15px var(--font-ui); color: var(--muted-dark); }
.ff-count b { color: #f1d48f; }
.ff-me { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin: 28px 0 0; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(241, 212, 143, 0.4); background: rgba(241, 212, 143, 0.07); }
.ff-switch { white-space: nowrap; }
.ff-wall { margin-top: 28px; }
.ff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ff-card { position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px 12px 16px; border-radius: 16px; border: 1px solid var(--line-dark); background: linear-gradient(170deg, rgba(241, 212, 143, 0.08), var(--carbon-2) 45%); color: inherit; text-decoration: none; text-align: center; transition: transform .15s, border-color .15s; }
.ff-card:hover { transform: translateY(-2px); border-color: rgba(241, 212, 143, 0.6); }
.ff-num { position: absolute; top: 10px; left: 12px; font: 700 12px var(--font-mono); color: #f1d48f; letter-spacing: .06em; }
.ff-card .ff-avatar { width: 64px; height: 64px; font-size: 26px; margin-bottom: 6px; box-shadow: 0 0 0 3px rgba(241, 212, 143, 0.6); }
.ff-card b { font: 600 15px var(--font-ui); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-card small { color: var(--muted-dark); font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ff-note { margin-top: 22px; font-size: 13px; color: var(--muted-dark); }
@media (max-width: 640px) { .ff-hero { grid-template-columns: minmax(0, 1fr); justify-items: start; } .ff-hero-coin .ft-coin { --d: 150px; } .ff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Verified maker tick, beside the Founding Friend chip on a profile. */
.v-tick { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 5px; border-radius: 99px; font: 600 12px var(--font-ui); color: var(--carbon); background: var(--teal); text-decoration: none; vertical-align: middle; margin-right: 6px; }
.v-tick svg { width: 16px; height: 16px; fill: color-mix(in srgb, var(--carbon) 18%, transparent); stroke: var(--carbon); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
