/* Nftsweb 2026 — "Minted light": a gold NW mark powered by a living circuit board.
 * Palette from assets/2026: ink navy board, electric blue traces, gold→amber emblem.
 * Every hidden or moving state is scoped to .js, so the content reads fine without scripts. */

:root {
    --ink: #02050d;
    --ink-2: #050b19;
    --ink-3: #0a1530;
    --navy: #0d2150;
    --line: rgba(128, 170, 255, .13);
    --line-2: rgba(128, 170, 255, .24);
    --text: #eaf0ff;
    --muted: #97a3c2;
    --dim: #5b6786;
    --gold-1: #ffe45c;
    --gold-2: #fbb125;
    --gold-3: #ea7a0c;
    --blue: #2f8cff;
    --cyan: #62d2ff;
    --grad-gold: linear-gradient(135deg, #ffe96e 0%, #fbb125 50%, #e5700a 100%);
    --grad-gold-v: linear-gradient(180deg, #ffec7a 10%, #fbb125 58%, #e2690a 100%);
    --display: 'Unbounded', ui-sans-serif, system-ui, sans-serif;
    --sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --gutter: clamp(18px, 4vw, 56px);
    --max: 1320px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.76, 0, .24, 1);
    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: var(--ink);
    scroll-padding-top: 96px;
}

html.menu-open {
    overflow: hidden;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font: 400 17px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img,
svg,
canvas {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--gold-2);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--gold-1);
    outline-offset: 3px;
    border-radius: 4px;
}

.mono {
    font-family: var(--mono);
    font-weight: 500;
    letter-spacing: .02em;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 400;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--gold-2);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .3s var(--ease);
}

.skip:focus {
    transform: none;
}

.gold,
.gold .sc {
    background: var(--grad-gold-v);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- ambient layers ---------- */

.grain {
    position: fixed;
    inset: -50%;
    z-index: 90;
    pointer-events: none;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -4%); }
    60% { transform: translate(-4%, -1%); }
    80% { transform: translate(3%, 3%); }
    100% { transform: translate(0, 0); }
}

.trail {
    position: fixed;
    inset: 0;
    z-index: 95;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
}

.progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 70;
    height: 2px;
    pointer-events: none;
}

.progress span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--blue), var(--cyan) 60%, var(--gold-1));
    transform: scaleX(var(--p, 0));
    transform-origin: 0 50%;
}

.progress span::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-1);
    box-shadow: 0 0 12px 3px rgba(255, 200, 70, .8);
    transform: translate(50%, -50%) scaleX(calc(1 / max(var(--p, 0), .001)));
}

/* ---------- curtain: the board tiles close over the page, the mark is traced in gold ---------- */

.curtain {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}

.js .curtain {
    display: block;
}

.curtain__tiles {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
}

.curtain__tiles i {
    background: var(--ink);
    box-shadow: inset 0 0 0 .5px rgba(98, 210, 255, .07);
    transform-origin: 50% 0;
    transition: transform .72s var(--ease-io) calc(var(--i) * 20ms);
}

.is-loaded .curtain__tiles i {
    transform: scaleY(0);
}

.is-leaving .curtain__tiles i {
    transform: scaleY(1);
    transform-origin: 50% 100%;
    transition-duration: .48s;
    transition-delay: calc(var(--i) * 11ms);
}

.curtain__core {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 18px;
    transition: opacity .45s, transform .8s var(--ease);
}

.is-loaded .curtain__core {
    opacity: 0;
    transform: scale(.92);
}

.curtain__mark {
    width: 104px;
    height: 104px;
    overflow: visible;
    filter: drop-shadow(0 0 18px rgba(251, 177, 37, calc(var(--load, 0) * .6)));
}

.curtain__mark .trace {
    fill: none;
    stroke: url(#nw-grad);
    stroke-width: 14;
    stroke-linejoin: round;
    stroke-dasharray: 1 1;
    stroke-dashoffset: calc(1 - var(--load, 0));
}

.curtain__mark .fill {
    opacity: calc((var(--load, 0) - .7) * 3.3);
}

.curtain__count {
    font-size: 12px;
    color: var(--gold-1);
}

.curtain__label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .18em;
}

/* ---------- cursor ---------- */

.cursor {
    display: none;
}

.has-cursor .cursor {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
}

.has-cursor,
.has-cursor a,
.has-cursor button,
.has-cursor [data-card] {
    cursor: none;
}

.has-cursor input {
    cursor: text;
}

.cursor__dot,
.cursor__ring {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
}

.cursor__dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--gold-1);
    box-shadow: 0 0 10px rgba(255, 210, 80, .9);
    transform: translate3d(var(--x), var(--y), 0);
}

.cursor__ring {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 1px solid rgba(98, 210, 255, .55);
    display: grid;
    place-items: center;
    transform: translate3d(var(--rx), var(--ry), 0);
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s;
}

.cursor__label {
    font: 600 10px/1 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0;
    white-space: nowrap;
    transition: opacity .2s;
}

.cursor.is-hover .cursor__ring {
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-color: var(--gold-2);
    background: rgba(251, 177, 37, .08);
}

.cursor.is-label .cursor__ring {
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    border-color: transparent;
    background: var(--grad-gold);
}

.cursor.is-label .cursor__label {
    opacity: 1;
}

.cursor.is-label .cursor__dot {
    opacity: 0;
}

.cursor.is-down .cursor__ring {
    transform: translate3d(var(--rx), var(--ry), 0) scale(.82);
}

.cursor.is-away {
    opacity: 0;
}

/* ---------- header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    padding: 18px var(--gutter);
    transition: transform .6s var(--ease), background .4s, backdrop-filter .4s, padding .4s var(--ease);
}

.is-scrolled .site-header {
    padding-block: 12px;
    background: rgba(2, 5, 13, .62);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 1px 0 var(--line);
}

.header-hidden .site-header {
    transform: translateY(-110%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: auto;
    transition: transform .5s var(--ease);
}

.brand__mark {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(251, 177, 37, .45));
    transition: transform 1s var(--ease);
}

.brand:hover .brand__mark {
    transform: rotate(-360deg);
}

.brand__name {
    font: 700 15px/1 var(--display);
    letter-spacing: .04em;
}

.brand__name b {
    font-weight: 300;
    color: var(--gold-1);
}

.nav__list {
    display: flex;
    gap: clamp(18px, 3vw, 44px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__link {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    font: 600 15px/1 var(--sans);
    padding-block: 8px;
}

.nav__idx {
    font-size: 10px;
    color: var(--gold-2);
}

.nav__clip {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-block: .1em;
    margin-block: -.1em;
}

.nav__roll {
    position: relative;
    display: inline-block;
    transition: transform .55s var(--ease);
}

.nav__roll::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 125%;
    color: var(--gold-1);
}

a:hover .nav__roll,
a:focus-visible .nav__roll {
    transform: translateY(-125%);
}

.nav__link[aria-current="page"] .nav__roll {
    color: var(--gold-1);
}

.nav__link[aria-current="page"] .nav__idx::before {
    content: '● ';
    color: var(--gold-1);
}

.langs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 11px;
}

.langs a {
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    transition: color .3s, background .3s;
}

.langs a:hover {
    color: var(--text);
}

.langs a[aria-current] {
    background: var(--grad-gold);
    color: var(--ink);
}

.burger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: transparent;
}

.burger__line {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 1.5px;
    background: currentColor;
    transition: transform .5s var(--ease), top .5s var(--ease);
}

.burger__line:nth-child(1) { top: 18px; }
.burger__line:nth-child(2) { top: 25px; }

.menu-open .burger__line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger__line:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
    .burger {
        display: block;
        z-index: 2;
    }

    .langs {
        z-index: 2;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: grid;
        align-content: center;
        padding: 96px var(--gutter) 48px;
        background:
            radial-gradient(120% 70% at 100% 0%, rgba(47, 140, 255, .22), transparent 60%),
            radial-gradient(90% 60% at 0% 100%, rgba(251, 177, 37, .14), transparent 60%),
            var(--ink);
        clip-path: circle(0 at calc(100% - var(--gutter) - 22px) 40px);
        visibility: hidden;
        transition: clip-path .8s var(--ease-io), visibility 0s .8s;
    }

    .menu-open .nav {
        clip-path: circle(150% at calc(100% - var(--gutter) - 22px) 40px);
        visibility: visible;
        transition: clip-path .8s var(--ease-io), visibility 0s;
    }

    .nav__list {
        flex-direction: column;
        gap: 10px;
    }

    .nav__link {
        font: 700 clamp(40px, 12vw, 72px)/1.05 var(--display);
        gap: 14px;
    }

    .nav__idx {
        font-size: 12px;
    }

    .brand__name {
        display: none;
    }
}

/* ---------- shared hero pieces ---------- */

.hero,
.page-hero,
.post-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero__fallback,
.hero__gl {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
}

.hero__fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}

.hero__gl {
    opacity: 0;
    transition: opacity 1.4s var(--ease);
}

.hero__gl.is-ready {
    opacity: 1;
}

.hero::after,
.page-hero::after,
.post-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(2, 5, 13, .72) 0%, rgba(2, 5, 13, 0) 22%, rgba(2, 5, 13, 0) 55%, var(--ink) 100%),
        linear-gradient(90deg, rgba(2, 5, 13, .75) 0%, rgba(2, 5, 13, .1) 60%);
}

.js [data-hero-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.2s var(--ease) var(--d, 0ms);
}

.hero-in [data-hero-reveal] {
    opacity: 1;
    transform: none;
}

/* split text */

.sw {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: top;
    padding-block: .14em;
    margin-block: -.14em;
}

.sc {
    display: inline-block;
}

.js [data-split] .sc {
    transform: translateY(115%) rotate(6deg);
    opacity: 0;
    transition: transform 1.1s var(--ease), opacity .6s var(--ease);
    transition-delay: calc(var(--i) * 24ms + var(--d, 0ms));
}

.js [data-split].is-in .sc,
.hero-in [data-split="hero"] .sc {
    transform: none;
    opacity: 1;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.breadcrumb li + li::before {
    content: '';
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, var(--blue), var(--gold-2));
}

.breadcrumb a {
    text-decoration: none;
    transition: color .3s;
}

.breadcrumb a:hover,
.breadcrumb a[aria-current] {
    color: var(--gold-1);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--gold-1);
}

.kicker::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
}

/* ---------- home hero ---------- */

.hero {
    min-height: max(640px, 100svh);
    display: grid;
    align-content: end;
    padding: 120px var(--gutter) 0;
}

.hero__emblem {
    position: absolute;
    z-index: -1;
    right: clamp(-80px, 4vw, 120px);
    top: 50%;
    width: min(62vmin, 620px);
    translate: 0 -50%;
    opacity: .9;
    filter: drop-shadow(0 0 40px rgba(251, 177, 37, .35));
    transition: opacity 1s;
}

.hero__gl.is-ready ~ .hero__emblem {
    opacity: 0;
}

.hero__inner {
    position: relative;
    max-width: var(--max);
    width: 100%;
    margin: 0 auto;
    padding-bottom: clamp(32px, 6vh, 72px);
}

.hero__title {
    margin: 0;
    font: 800 clamp(64px, 14vw, 230px)/.84 var(--display);
    letter-spacing: -.055em;
    text-transform: uppercase;
}

.hero__title b {
    font-weight: inherit;
}

.hero__line {
    display: block;
}

.hero__line--gold .sc,
.no-split .hero__line--gold {
    background: var(--grad-gold-v);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__line--gold {
    padding-left: .9em;
}

.hero__row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 24px 48px;
    margin-top: clamp(20px, 4vh, 44px);
}

.hero__tagline {
    margin: 0;
    font: 500 clamp(20px, 2.3vw, 34px)/1.2 var(--display);
    letter-spacing: -.02em;
    max-width: 18ch;
}

.hero__hud {
    display: grid;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.hero__hud b {
    color: var(--cyan);
    font-weight: 500;
}

.hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--text);
}

.hero__scroll i {
    position: relative;
    width: 1px;
    height: 44px;
    overflow: hidden;
    background: var(--line-2);
}

.hero__scroll i::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, var(--gold-1));
    animation: drip 1.8s var(--ease-io) infinite;
}

@keyframes drip {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}

/* marquee */

.marquee {
    position: relative;
    margin: 0 calc(var(--gutter) * -1);
    border-block: 1px solid var(--line);
    background: rgba(2, 5, 13, .5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    overflow: hidden;
    white-space: nowrap;
}

.marquee__track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee__track > * {
    transform: skewX(var(--skew, 0deg));
}

.marquee__group {
    display: flex;
    flex-shrink: 0;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.marquee__group li {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    font: 600 13px/1 var(--mono);
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
}

.marquee__group li::after {
    content: '';
    width: 7px;
    height: 7px;
    rotate: 45deg;
    border: 1px solid var(--gold-2);
}

.marquee__group li:nth-child(3n + 1) {
    color: var(--text);
}

.js .marquee__group[aria-hidden] {
    display: flex;
}

/* ---------- home sections ---------- */

.section {
    position: relative;
    padding: clamp(90px, 13vw, 190px) var(--gutter);
}

.container {
    max-width: var(--max);
    margin: 0 auto;
}

.intro__text {
    margin: 0;
    font: 500 clamp(24px, 3.3vw, 50px)/1.22 var(--display);
    letter-spacing: -.025em;
    max-width: 30ch;
}

.intro__text .ww {
    color: color-mix(in srgb, var(--text) calc(22% + var(--o, 1) * 78%), transparent);
    transition: color .2s linear;
}

.js .intro__text .ww {
    --o: 0;
}

.intro__text .ww:nth-child(7n + 3) {
    text-shadow: 0 0 calc(var(--o, 0) * 18px) rgba(98, 210, 255, calc(var(--o, 0) * .35));
}

.intro__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    margin-top: clamp(40px, 6vw, 80px);
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .14em;
}

.intro__meta b {
    color: var(--gold-1);
    font-weight: 500;
}

.feature {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
}

.feature + .feature {
    margin-top: clamp(100px, 14vw, 200px);
}

.feature__head {
    grid-column: 1 / -1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.feature__num {
    font: 200 clamp(56px, 9vw, 140px)/.8 var(--display);
    letter-spacing: -.06em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(251, 177, 37, .55);
}

.feature__title {
    margin: 0;
    font: 700 clamp(30px, 4.6vw, 72px)/1 var(--display);
    letter-spacing: -.04em;
    max-width: 16ch;
}

.feature .token {
    grid-column: 1 / span 6;
}

.feature__body {
    grid-column: 8 / -1;
}

.feature--flip .token {
    grid-column: 7 / -1;
    grid-row: 2;
}

.feature--flip .feature__body {
    grid-column: 1 / span 5;
    grid-row: 2;
}

.feature__body p {
    margin: 0;
    font-size: clamp(17px, 1.3vw, 20px);
    color: var(--muted);
}

@media (max-width: 860px) {

    .feature .token,
    .feature__body,
    .feature--flip .token,
    .feature--flip .feature__body {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

/* inline links: a gold trace grows under the text */

.link,
.feature__body a,
.prose p a,
.token-row__text a {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(90deg, var(--gold-1), var(--gold-3)) 0 100% / 100% 1px no-repeat,
        linear-gradient(90deg, var(--cyan), var(--blue)) 0 100% / 0 100% no-repeat;
    padding-bottom: 2px;
    transition: background-size .6s var(--ease), color .3s;
}

.feature__body a:hover,
.prose p a:hover,
.token-row__text a:hover {
    color: var(--ink);
    background-size: 100% 1px, 100% 100%;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    padding: 16px 22px 16px 26px;
    border-radius: 999px;
    background: var(--grad-gold);
    color: var(--ink);
    font: 700 14px/1 var(--display);
    text-decoration: none;
    box-shadow: 0 14px 40px -12px rgba(251, 150, 30, .6);
    transition: box-shadow .4s, transform .5s var(--ease);
}

.cta svg {
    transition: transform .5s var(--ease);
}

.cta:hover svg {
    transform: translateX(4px) rotate(-45deg);
}

/* ---------- token card: holographic foil that follows the pointer ---------- */

.token {
    perspective: 1400px;
}

.token__card {
    position: relative;
    display: block;
    padding: 12px;
    border-radius: 24px;
    background: linear-gradient(160deg, #10255a 0%, #071126 45%, #040912 100%);
    border: 1px solid var(--line-2);
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
    transform-style: preserve-3d;
    transition: transform .9s var(--ease), border-color .4s;
    will-change: transform;
}

.token__card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(520px circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 228, 92, .2), transparent 42%),
        linear-gradient(115deg, transparent 22%, rgba(98, 210, 255, .2) 38%, rgba(255, 177, 37, .22) 50%, rgba(160, 110, 255, .14) 60%, transparent 72%);
    background-size: 100% 100%, 260% 260%;
    background-position: 0 0, var(--gx, 50%) var(--gy, 50%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity .5s;
}

.token:hover .token__card,
.token-row:hover .token__card {
    border-color: rgba(251, 177, 37, .45);
}

.token:hover .token__card::after,
.token-row:hover .token__card::after {
    opacity: 1;
}

.token__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px 14px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
}

.token__meta b {
    color: var(--gold-1);
    font-weight: 500;
}

.token__meta [data-scramble] {
    text-transform: none;
}

.token__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 8px 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--dim);
}

.token__foot i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ce19a;
    box-shadow: 0 0 10px #3ce19a;
}

.plate {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: clamp(18px, 3vw, 40px);
    border-radius: 16px;
    overflow: hidden;
    background:
        radial-gradient(rgba(10, 21, 48, .11) 1px, transparent 1.3px) 0 0 / 14px 14px,
        linear-gradient(160deg, #f7f8fc, #e3e8f4);
    transform: translateZ(30px);
}

.plate img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 1.2s var(--ease);
}

.token:hover .plate img,
.token-row:hover .plate img {
    transform: scale(1.05);
}

/* ---------- category page ---------- */

.page-hero,
.post-hero {
    padding: clamp(130px, 18vh, 200px) var(--gutter) clamp(56px, 8vw, 110px);
}

.page-hero__inner,
.post-hero__inner {
    max-width: var(--max);
    margin: 0 auto;
}

.page-hero__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: clamp(36px, 6vh, 64px) 0 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--gold-1);
}

.page-hero__brand svg {
    width: 22px;
    height: 22px;
}

.page-hero__title,
.post-hero__title {
    margin: 0;
    font: 700 clamp(36px, 6.6vw, 104px)/1 var(--display);
    letter-spacing: -.045em;
    max-width: 17ch;
    overflow-wrap: anywhere;
}

.page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 36px;
    margin-top: clamp(28px, 4vw, 48px);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
}

.page-hero__meta span:first-child {
    color: var(--gold-1);
}

.tokens {
    padding: 0 var(--gutter) clamp(90px, 12vw, 170px);
}

.tokens__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
    gap: clamp(20px, 3vw, 40px);
    max-width: var(--max);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.token-row {
    position: relative;
    perspective: 1400px;
}

.js .token-row[data-reveal] {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

.js .token-row[data-reveal]:nth-child(even) {
    transition-delay: .12s;
}

.js .token-row.is-in {
    opacity: 1;
    transform: none;
}

.token-row .token__card {
    display: grid;
    height: 100%;
}

.token-row__body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 20px;
    padding: 22px 10px 10px;
}

.token-row__title {
    margin: 0;
    font: 700 clamp(22px, 2.3vw, 32px)/1.1 var(--display);
    letter-spacing: -.03em;
}

.token-row__text {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.token-row__arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    color: var(--gold-1);
    transition: background .4s, color .4s, transform .6s var(--ease), border-color .4s;
}

.token-row:hover .token-row__arrow {
    background: var(--grad-gold);
    border-color: transparent;
    color: var(--ink);
    transform: rotate(-45deg);
}

/* ---------- post page ---------- */

.post-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    margin-top: clamp(36px, 6vh, 64px);
}

.post-hero__title {
    font-size: clamp(34px, 5.8vw, 92px);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: clamp(24px, 3.5vw, 40px) 0 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 8px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    background: rgba(2, 5, 13, .45);
}

.chips li:first-child {
    color: var(--ink);
    background: var(--grad-gold);
    border-color: transparent;
}

.post-hero__art {
    margin: 0;
}

@media (max-width: 860px) {
    .post-hero__grid {
        grid-template-columns: 1fr;
    }

    .post-hero__art {
        max-width: 460px;
    }
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(200px, 270px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(90px, 12vw, 160px);
}

.post-layout--solo {
    grid-template-columns: minmax(0, 1fr);
    max-width: 900px;
}

.post-aside {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100svh - 120px);
    display: flex;
    flex-direction: column;
}

.post-aside__label {
    margin: 0 0 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--gold-1);
}

.toc {
    position: relative;
    margin: 0;
    padding: 0 0 0 16px;
    list-style: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) transparent;
    border-left: 1px solid var(--line);
}

.toc a {
    position: relative;
    display: block;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--dim);
    text-decoration: none;
    transition: color .3s, transform .4s var(--ease);
}

.toc a::before {
    content: '';
    position: absolute;
    left: -17px;
    top: 50%;
    width: 1px;
    height: 0;
    background: var(--gold-1);
    box-shadow: 0 0 8px var(--gold-2);
    translate: 0 -50%;
    transition: height .4s var(--ease);
}

.toc a:hover {
    color: var(--text);
}

.toc a.is-active {
    color: var(--gold-1);
    transform: translateX(4px);
}

.toc a.is-active::before {
    height: 70%;
}

@media (max-width: 960px) {
    .post-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-aside {
        display: none;
    }
}

.prose {
    min-width: 0;
    font-size: 18px;
    color: #c6cfe6;
}

.prose > :first-child {
    margin-top: 0;
}

.prose .lede {
    margin: 0 0 clamp(40px, 6vw, 72px);
    font: 500 clamp(21px, 2.1vw, 30px)/1.4 var(--display);
    letter-spacing: -.02em;
    color: var(--text);
}

.prose p {
    margin: 0 0 1.2em;
}

.prose h2 {
    position: relative;
    margin: clamp(56px, 8vw, 100px) 0 22px;
    padding-top: 22px;
    font: 700 clamp(24px, 2.8vw, 40px)/1.1 var(--display);
    letter-spacing: -.035em;
    color: var(--text);
}

.prose h2::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-2), var(--blue) 30%, var(--line) 60%);
    transform-origin: 0 50%;
}

.js .prose h2[data-reveal]::before {
    transform: scaleX(0);
    transition: transform 1.4s var(--ease);
}

.js .prose h2.is-in::before {
    transform: none;
}

.prose h3 {
    margin: 2em 0 .6em;
    font: 600 22px/1.2 var(--display);
    color: var(--text);
}

.prose strong {
    color: var(--text);
}

.js .prose [data-reveal]:not(li) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .9s var(--ease), transform 1s var(--ease);
}

.js .prose [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* practices: every list entry is a ledger row, short entries become tiles */

.practices {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: item;
}

.practices > li {
    position: relative;
    counter-increment: item;
    padding: 22px 24px 22px 74px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(13, 33, 80, .32), rgba(5, 11, 25, .32));
    overflow: hidden;
    transition: border-color .4s, background .4s, opacity .8s var(--ease), transform .9s var(--ease);
}

.practices > li[hidden] {
    display: none;
}

.practices > li::before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    left: 24px;
    top: 26px;
    font: 500 12px/1 var(--mono);
    color: var(--gold-2);
}

.practices > li::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(320px circle at var(--mx, -400px) var(--my, -400px), rgba(98, 210, 255, .12), transparent 60%);
    opacity: 0;
    transition: opacity .4s;
}

.practices > li:hover {
    border-color: rgba(251, 177, 37, .4);
}

.practices > li:hover::after {
    opacity: 1;
}

.js .practices > li[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
}

.js .practices > li.is-in {
    opacity: 1;
    transform: none;
}

.practices li strong {
    font: 700 1.02em/1.3 var(--display);
    letter-spacing: -.01em;
    color: #fff;
}

.practices li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    padding: 3px 10px;
    border: 1px solid rgba(251, 177, 37, .45);
    border-radius: 999px;
    font: 500 13px/1.5 var(--mono);
    color: var(--gold-1);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background .3s, color .3s, border-color .3s;
}

.practices li a::after {
    content: '↗';
    content: '↗' / '';
    transition: transform .4s var(--ease);
}

.practices li a:hover {
    background: var(--grad-gold);
    border-color: transparent;
    color: var(--ink);
}

.practices li a:hover::after {
    transform: translate(2px, -2px);
}

.practices--compact {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: 10px;
}

.practices--compact > li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 118px;
    padding: 38px 16px 16px;
    cursor: pointer;
}

.has-cursor .practices--compact > li {
    cursor: none;
}

.practices--compact > li::before {
    left: 16px;
    top: 16px;
    font-size: 10px;
}

.practices--compact li strong {
    font-size: 15px;
    overflow-wrap: anywhere;
}

.practices--compact li a {
    align-self: flex-start;
    margin: 0;
    font-size: 11px;
}

.practices--compact > li:hover {
    background: linear-gradient(180deg, rgba(251, 177, 37, .1), rgba(5, 11, 25, .3));
    transform: translateY(-3px);
}

/* list filter (built by site.js on long directories) */

.filter {
    position: sticky;
    top: 12px;
    z-index: 5;
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid var(--line-2);
    border-radius: 18px;
    background: rgba(5, 11, 25, .78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: top .6s var(--ease);
}

.is-scrolled:not(.header-hidden) .filter {
    top: 80px;
}

.filter__field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
}

.filter__field svg {
    flex: none;
    color: var(--gold-1);
}

.filter input {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    background: transparent;
    font: 500 16px/1 var(--sans);
    outline: none;
}

.filter input::placeholder {
    color: var(--dim);
}

.filter:focus-within {
    border-color: rgba(251, 177, 37, .6);
    box-shadow: 0 0 0 4px rgba(251, 177, 37, .12);
}

.filter__count {
    flex: none;
    font-size: 11px;
    color: var(--muted);
}

.filter__empty {
    margin: 28px 0;
    color: var(--muted);
}

.filter__empty + h2 {
    margin-top: 36px;
}

/* ---------- up next ---------- */

.next {
    position: relative;
    overflow: hidden;
    padding: clamp(90px, 13vw, 190px) var(--gutter);
    border-top: 1px solid var(--line);
    text-align: center;
    background: radial-gradient(60% 80% at 50% 110%, rgba(47, 140, 255, .2), transparent 70%);
}

.next__title {
    margin: 0 0 18px;
    font: 500 clamp(18px, 1.8vw, 24px)/1.3 var(--display);
    color: var(--muted);
}

.next__link {
    margin: 0;
}

.next__link a {
    display: inline-block;
    font: 800 clamp(34px, 7.5vw, 120px)/1 var(--display);
    letter-spacing: -.05em;
    text-decoration: none;
    background: var(--grad-gold-v);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: letter-spacing .8s var(--ease), filter .6s;
}

.next__link a:hover {
    letter-spacing: -.02em;
    filter: drop-shadow(0 0 30px rgba(251, 177, 37, .45));
}

/* ---------- footer ---------- */

.site-footer {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 9vw, 120px) var(--gutter) 28px;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(70% 70% at 50% 130%, rgba(251, 177, 37, .16), transparent 70%),
        radial-gradient(90% 80% at 0% 0%, rgba(47, 140, 255, .1), transparent 60%);
}

.footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    max-width: var(--max);
    margin: 0 auto;
}

.footer__lead {
    margin: 0;
    max-width: 14ch;
    font: 600 clamp(28px, 3.8vw, 58px)/1.05 var(--display);
    letter-spacing: -.04em;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    font: 600 16px/1 var(--sans);
}

.footer__nav a {
    text-decoration: none;
}

.wordmark {
    margin: clamp(48px, 7vw, 100px) 0 clamp(22px, 3vw, 36px);
    font: 800 clamp(52px, 12.6vw, 232px)/.82 var(--display);
    letter-spacing: -.055em;
    text-align: center;
    white-space: nowrap;
    background: var(--grad-gold-v);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    max-width: var(--max);
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
}

.to-top {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: transparent;
    color: var(--gold-1);
    font-size: 18px;
    transition: background .4s, color .4s, border-color .4s;
}

.to-top:hover {
    background: var(--grad-gold);
    border-color: transparent;
    color: var(--ink);
}

/* ---------- 404 ---------- */

.lost {
    min-height: 100svh;
    display: grid;
    align-content: center;
    padding: 120px var(--gutter) 80px;
}

.lost__code {
    margin: 0;
    font: 800 clamp(96px, 26vw, 360px)/.8 var(--display);
    letter-spacing: -.06em;
    background: var(--grad-gold-v);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lost__text {
    margin: 24px 0 0;
    font: 500 clamp(20px, 2.4vw, 32px)/1.25 var(--display);
    max-width: 22ch;
}

/* ---------- small screens and no-script fallbacks ---------- */

.hero__emblem {
    height: auto;
}

@media (max-width: 860px) {
    .brand {
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 560px) {
    .practices > li {
        padding: 46px 18px 18px;
    }

    .practices > li::before {
        left: 18px;
        top: 18px;
    }

    .practices--compact > li {
        padding: 38px 16px 16px;
    }

    .prose {
        font-size: 17px;
    }
}

/* Without site.js: the gold line keeps its gradient, the header scrolls away, the empty TOC column goes. */
html:not(.js) .hero__line--gold {
    background: var(--grad-gold-v);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html:not(.js) .site-header {
    position: absolute;
}

html:not(.js) .post-aside {
    display: none;
}

html:not(.js) .post-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 900px;
}

/* ---------- generic reveal ---------- */

.js [data-reveal]:not(.token-row):not(li):not(.prose *) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

.js [data-reveal].is-in:not(.token-row):not(li):not(.prose *) {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
}
