/* WebArchtkt 2026 — shared stylesheet (home, category, post). */

:root {
    --ink: #020815;
    --navy: #061631;
    --deep: #0a2352;
    --line: rgba(160, 196, 255, .12);
    --line-2: rgba(160, 196, 255, .26);
    --steel: #8ea8cc;
    --mist: #c3d2e8;
    --text: #edf3fc;
    --muted: #8193b3;
    --cyan: #35d6ff;
    --azure: #2a7bff;
    --cobalt: #1747d6;
    --grad: linear-gradient(115deg, #f2f7ff 0%, #9be9ff 28%, #35d6ff 50%, #2a7bff 78%, #1747d6 100%);
    --ease: cubic-bezier(.19, 1, .22, 1);
    --ease-io: cubic-bezier(.77, 0, .18, 1);
    --gutter: clamp(16px, 4vw, 56px);
    --maxw: 1440px;
    --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color-scheme: dark;
}

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

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

html.menu-open {
    overflow: hidden;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--f-sans);
    font-size: clamp(16px, .55vw + 13px, 19px);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
}

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

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

.mono {
    font-family: var(--f-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.4;
}

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

.skip {
    position: fixed;
    left: 16px;
    top: -64px;
    z-index: 200;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--cyan);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transition: top .3s var(--ease);
}

.skip:focus {
    top: 16px;
}

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

.grad:has(.sc) {
    background: none;
    color: inherit;
}

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

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

.guides {
    position: fixed;
    inset: 0 var(--gutter);
    z-index: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    pointer-events: none;
}

.guides i {
    border-left: 1px solid var(--line);
}

.guides i:last-child {
    border-right: 1px solid var(--line);
}

main,
.site-footer {
    position: relative;
    z-index: 2;
}

.grain {
    position: fixed;
    inset: -50%;
    z-index: 90;
    pointer-events: none;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' 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); }
}

/* ---------- curtain ---------- */

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

.js .curtain {
    display: block;
}

.is-leaving .curtain {
    pointer-events: auto;
}

.curtain__panels {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.curtain__panels i {
    background: linear-gradient(180deg, var(--navy), var(--ink));
    border-right: 1px solid var(--line);
    transition: transform 1.05s var(--ease-io);
    transition-delay: calc(var(--i) * 70ms);
}

.is-loaded .curtain__panels i {
    transform: translate3d(0, -101%, 0);
}

.is-loaded .curtain__panels i:nth-child(even) {
    transform: translate3d(0, 101%, 0);
}

.is-leaving .curtain__panels i {
    animation: panel-in .7s var(--ease-io) both;
    animation-delay: calc(var(--i) * 55ms);
}

.is-leaving .curtain__panels i:nth-child(even) {
    animation-name: panel-in-alt;
}

@keyframes panel-in {
    from { transform: translate3d(0, 101%, 0); }
    to { transform: none; }
}

@keyframes panel-in-alt {
    from { transform: translate3d(0, -101%, 0); }
    to { transform: none; }
}

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

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

.curtain__mark {
    width: 84px;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 0 24px rgba(53, 214, 255, .35));
}

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

.curtain__count {
    font-size: 1rem;
    color: var(--text);
}

.curtain__label {
    color: var(--muted);
}

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

.cursor {
    display: none;
}

.has-cursor,
.has-cursor a,
.has-cursor button {
    cursor: none;
}

.has-cursor .cursor {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 140;
    pointer-events: none;
    transition: opacity .3s;
}

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

.cursor__h,
.cursor__v {
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(53, 214, 255, .13);
}

.cursor__h {
    right: 0;
    height: 1px;
    transform: translate3d(0, var(--y), 0);
}

.cursor__v {
    bottom: 0;
    width: 1px;
    transform: translate3d(var(--x), 0, 0);
}

.cursor__ring {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 1px solid rgba(237, 243, 252, .5);
    border-radius: 50%;
    transform: translate3d(var(--rx), var(--ry), 0) scale(var(--s, 1));
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, border-color .3s;
}

.cursor__dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--cyan);
    transform: translate3d(var(--x), var(--y), 0);
}

.cursor__label {
    font: 500 11px/1 var(--f-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0;
    transition: opacity .2s;
}

.cursor__coords {
    position: absolute;
    left: 0;
    top: 0;
    font: 500 10px/1 var(--f-mono);
    letter-spacing: .08em;
    color: rgba(142, 168, 204, .85);
    white-space: nowrap;
    transform: translate3d(calc(var(--x) + 16px), calc(var(--y) + 16px), 0);
}

.cursor.is-hover .cursor__ring {
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    border-color: var(--cyan);
}

.cursor.is-label .cursor__ring {
    width: 92px;
    height: 92px;
    margin: -46px 0 0 -46px;
    background: var(--cyan);
    border-color: var(--cyan);
}

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

.cursor.is-down .cursor__ring {
    --s: .82;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 40px);
    padding: 16px var(--gutter);
    transition: transform .7s var(--ease), background-color .4s;
}

.site-header::after {
    content: "";
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 0;
    height: 1px;
    background: var(--line);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s var(--ease);
}

.is-scrolled .site-header {
    background: rgba(2, 8, 21, .66);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}

.is-scrolled .site-header::after {
    transform: scaleX(1);
}

.header-hidden .site-header {
    transform: translate3d(0, -100%, 0);
}

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

.brand__mark {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 14px rgba(53, 214, 255, .35));
    transition: transform .9s var(--ease);
}

.brand:hover .brand__mark {
    transform: rotate(-10deg) scale(1.08);
}

.brand__name {
    font-size: 1.05rem;
    font-weight: 500;
    font-variation-settings: "wdth" 112;
    letter-spacing: -.01em;
}

.brand__name b {
    font-weight: 800;
}

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

.nav__link {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
}

.nav__idx {
    font-size: .58rem;
    color: var(--muted);
    transform: translateY(-1px);
}

.nav__clip {
    display: block;
    overflow: hidden;
    height: 1.5em;
    line-height: 1.5;
}

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

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

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

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

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

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

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

.langs a:not([aria-current]):hover {
    color: var(--text);
}

.burger {
    display: none;
}

@media (max-width: 760px) {
    .brand__name {
        font-size: .95rem;
    }

    .burger {
        display: grid;
        place-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--line-2);
        border-radius: 50%;
        background: transparent;
        color: var(--text);
    }

    .burger__line {
        display: block;
        width: 18px;
        height: 1.5px;
        background: currentColor;
        transition: transform .6s var(--ease);
    }

    .menu-open .burger__line:first-child {
        transform: translateY(3.75px) rotate(45deg);
    }

    .menu-open .burger__line:nth-child(2) {
        transform: translateY(-3.75px) rotate(-45deg);
    }

    .menu-open .site-header {
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: -1;
        display: flex;
        align-items: flex-end;
        padding: 120px var(--gutter) 56px;
        background:
            linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 100%,
            linear-gradient(180deg, var(--navy), var(--ink));
        clip-path: inset(0 0 100% 0);
        visibility: hidden;
        transition: clip-path .9s var(--ease-io), visibility 0s .9s;
    }

    .menu-open .nav {
        clip-path: inset(0);
        visibility: visible;
        transition: clip-path .9s var(--ease-io), visibility 0s;
    }

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

    .nav__link {
        font-size: clamp(44px, 14vw, 76px);
        font-weight: 700;
        font-variation-settings: "wdth" 120;
        letter-spacing: -.035em;
    }

    .nav__clip {
        height: 1.08em;
        line-height: 1.08;
    }

    .nav__idx {
        font-size: .8rem;
        transform: translateY(10px);
    }
}

/* ---------- reveals ---------- */

.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
    transition-delay: var(--d, 0ms);
}

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

.js [data-hero-reveal] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
    transition-delay: var(--d, 0ms);
}

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

.js [data-clip] {
    clip-path: inset(14% 14% 14% 14% round 8px);
    transition: clip-path 1.6s var(--ease);
}

.js [data-clip].is-in {
    clip-path: inset(-12% -12% -12% -12% round 8px);
}

.sw {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: .16em .03em .1em;
    margin: -.16em -.03em -.1em;
}

.sc {
    display: inline-block;
    transform: translate3d(0, 118%, 0) rotate(7deg);
    transform-origin: 0 100%;
    transition: transform 1.25s var(--ease);
    transition-delay: calc(var(--i) * 26ms + var(--d, 0ms));
}

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

[data-scrub-words] .ww {
    opacity: calc(.13 + var(--o, 0) * .87);
    transition: opacity .25s linear;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--muted);
}

.section-label::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--cyan);
}

/* ---------- hero (home) ---------- */

.hero,
.page-hero,
.post-hero {
    position: relative;
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
    background: var(--navy);
}

.hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 120px var(--gutter) clamp(72px, 9vw, 120px);
}

.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;
    object-position: 30% 50%;
}

.hero__gl {
    max-width: none;
    opacity: 0;
    transition: opacity 1.8s 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, 8, 21, .6) 0%, transparent 26%, transparent 50%, rgba(2, 8, 21, .88) 100%);
}

.page-hero::after,
.post-hero::after {
    background: linear-gradient(180deg, rgba(2, 8, 21, .55) 0%, rgba(2, 8, 21, .25) 40%, rgba(2, 8, 21, .92) 100%);
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    will-change: transform;
}

.hero__kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--mist);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 0 rgba(53, 214, 255, .6);
    animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(53, 214, 255, .6); }
    100% { box-shadow: 0 0 0 14px rgba(53, 214, 255, 0); }
}

.hero__title {
    margin: 0;
    font-size: clamp(60px, 14vw, 250px);
    font-weight: 800;
    font-variation-settings: "wdth" 125;
    line-height: .84;
    letter-spacing: -.045em;
}

.hero__title .line {
    display: block;
}

.hero__title .line:last-child .sc:nth-last-child(-n+1) {
    color: var(--cyan);
}

.hero__text {
    max-width: 30ch;
    margin: 22px 0 0;
    font-size: clamp(18px, 1.9vw, 30px);
    font-weight: 400;
    font-variation-settings: "wdth" 92;
    line-height: 1.25;
    color: var(--mist);
}

.hero__emblem {
    width: clamp(120px, 17vw, 290px);
    margin: 0 0 1vw;
    perspective: 900px;
}

.hero__emblem-tilt {
    transition: transform .9s var(--ease);
    transform-style: preserve-3d;
}

.hero__emblem img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(31, 107, 255, .5));
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(0, -14px, 0) rotate(-2deg); }
}

.hud {
    position: absolute;
    top: 92px;
    left: var(--gutter);
    right: var(--gutter);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--mist);
    pointer-events: none;
}

.hud span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-variant-numeric: tabular-nums;
}

.hud span:first-child::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 1px solid var(--cyan);
    transform: rotate(45deg);
}

.hero__scroll {
    position: absolute;
    left: var(--gutter);
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--mist);
    text-decoration: none;
}

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

.hero__scroll-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--cyan);
    animation: scan 2.2s var(--ease-io) infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

    .hero__emblem {
        order: -1;
        width: 116px;
    }

    .hud span:nth-child(2) {
        display: none;
    }
}

/* ---------- manifesto ---------- */

.manifesto {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(96px, 15vw, 230px) var(--gutter);
}

.manifesto__text {
    max-width: 22ch;
    margin: 0;
    font-size: clamp(30px, 4.6vw, 76px);
    font-weight: 500;
    font-variation-settings: "wdth" 94;
    line-height: 1.06;
    letter-spacing: -.028em;
}

/* ---------- marquee ---------- */

.marquee {
    position: relative;
    overflow: hidden;
    padding-block: clamp(18px, 3vw, 34px);
    border-block: 1px solid var(--line);
    background: linear-gradient(90deg, var(--ink), var(--navy) 50%, var(--ink));
}

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

.marquee__group {
    display: flex;
    align-items: center;
    gap: clamp(22px, 3.5vw, 56px);
    padding-right: clamp(22px, 3.5vw, 56px);
    font-size: clamp(36px, 6.4vw, 104px);
    font-weight: 800;
    font-variation-settings: "wdth" 125;
    line-height: 1;
    letter-spacing: -.03em;
    white-space: nowrap;
    transform: skewX(var(--skew, 0deg));
}

.marquee__group .is-outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--steel);
}

.marquee__group i {
    flex: none;
    width: .34em;
    height: .38em;
    background: var(--grad);
    clip-path: polygon(50% 0, 100% 17%, 100% 52%, 50% 100%, 0 52%, 0 17%);
}

/* ---------- feature sections (home) ---------- */

.feature {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(80px, 12vw, 180px) var(--gutter);
}

.feature__head {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(16px, 3vw, 48px);
    margin-bottom: clamp(40px, 6vw, 96px);
    padding-top: 26px;
    border-top: 1px solid var(--line-2);
}

.feature__num {
    font-size: clamp(72px, 12vw, 200px);
    font-weight: 800;
    font-variation-settings: "wdth" 125;
    line-height: .78;
    letter-spacing: -.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(160, 196, 255, .38);
}

.feature__title {
    max-width: 15ch;
    margin: 0;
    font-size: clamp(34px, 5.4vw, 92px);
    font-weight: 700;
    font-variation-settings: "wdth" 112;
    line-height: .96;
    letter-spacing: -.035em;
}

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

.feature__art {
    grid-column: 1 / span 7;
    margin: 0;
    perspective: 1200px;
}

.feature__body {
    grid-column: 9 / span 4;
}

.feature--alt .feature__art {
    grid-column: 6 / span 7;
    grid-row: 1;
}

.feature--alt .feature__body {
    grid-column: 1 / span 4;
    grid-row: 1;
}

.feature__body p {
    margin: 0 0 32px;
    font-size: clamp(17px, 1.25vw, 21px);
    color: var(--mist);
}

.feature__body p a,
.row__text a,
.prose a {
    color: var(--cyan);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color .3s;
}

.feature__body p a:hover,
.prose a:hover {
    color: var(--text);
}

@media (max-width: 900px) {
    .feature__art,
    .feature__body,
    .feature--alt .feature__art,
    .feature--alt .feature__body {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

/* ---------- blueprint plate ---------- */

.plate {
    position: relative;
    padding: clamp(30px, 5vw, 68px);
    border-radius: 8px;
    color: #0b2556;
    background:
        linear-gradient(rgba(31, 107, 255, .09) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(31, 107, 255, .09) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(160deg, #f3f7fd, #d8e4f4);
    box-shadow: 0 50px 110px -50px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06);
    transform-style: preserve-3d;
    transition: transform .9s var(--ease);
}

.plate img {
    position: relative;
    width: 100%;
    height: auto;
    filter: grayscale(1) sepia(.35) hue-rotate(180deg) saturate(2.4) contrast(1.08);
    transform: translateZ(36px);
    transition: filter .9s var(--ease);
}

[data-tilt-zone]:hover .plate img {
    filter: none;
}

.plate::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 45%);
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity .5s;
}

[data-tilt-zone]:hover .plate::after {
    opacity: 1;
}

.plate__tag {
    position: absolute;
    top: 12px;
    left: 16px;
    font-size: 10px;
    color: var(--cobalt);
}

.plate__tag--r {
    left: auto;
    right: 16px;
}

.plate__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.plate__lines path {
    fill: none;
    stroke: var(--cobalt);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--p, 0));
}

/* ---------- buttons ---------- */

[data-magnetic] {
    transition: transform .6s var(--ease);
}

.cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    isolation: isolate;
    padding: 16px 26px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: color .5s var(--ease), border-color .5s, transform .6s var(--ease);
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--grad);
    transform: translate3d(0, 101%, 0);
    transition: transform .7s var(--ease);
}

.cta:hover,
.cta:focus-visible {
    color: var(--ink);
    border-color: transparent;
}

.cta:hover::before,
.cta:focus-visible::before {
    transform: none;
}

.cta__arrow {
    transition: transform .7s var(--ease);
}

.cta:hover .cta__arrow {
    transform: rotate(-45deg);
}

/* ---------- category & post heroes ---------- */

.page-hero {
    min-height: 82vh;
    min-height: 82svh;
    padding: 130px var(--gutter) clamp(40px, 6vw, 80px);
}

.post-hero {
    min-height: 76vh;
    min-height: 76svh;
    padding: 130px var(--gutter) clamp(40px, 6vw, 80px);
}

.page-hero__inner,
.post-hero__inner {
    position: relative;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--mist);
    text-decoration: none;
    transition: color .3s;
}

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

.page-hero__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--mist);
}

.page-hero__brand img {
    width: 24px;
    height: 24px;
}

.page-hero__title,
.post-hero__title {
    max-width: 17ch;
    margin: 0;
    font-size: clamp(42px, 7.6vw, 136px);
    font-weight: 800;
    font-variation-settings: "wdth" 116;
    line-height: .92;
    letter-spacing: -.04em;
}

.page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid var(--line-2);
    color: var(--mist);
}

.post-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    align-items: end;
    gap: clamp(24px, 5vw, 80px);
}

.post-hero__art {
    margin: 0;
    perspective: 1000px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 8px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--mist);
    background: rgba(2, 8, 21, .4);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

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

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

/* ---------- category index ---------- */

.index {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(64px, 10vw, 140px) var(--gutter);
}

.index__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line-2);
}

.row {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 240px) minmax(0, 1fr) 58px;
    align-items: center;
    gap: clamp(16px, 3vw, 48px);
    padding: clamp(24px, 3.5vw, 44px) 0;
    border-bottom: 1px solid var(--line-2);
    isolation: isolate;
}

.row::before {
    content: "";
    position: absolute;
    inset: 0 calc(var(--gutter) * -1);
    z-index: -1;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(53, 214, 255, .1), transparent 60%);
    opacity: 0;
    transition: opacity .5s;
}

.row:hover::before {
    opacity: 1;
}

.row__num {
    color: var(--muted);
}

.row__media .plate {
    padding: 16px;
}

.row__title {
    margin: 0 0 10px;
    font-size: clamp(28px, 3.6vw, 58px);
    font-weight: 700;
    font-variation-settings: "wdth" 112;
    line-height: 1;
    letter-spacing: -.03em;
    transition: transform .7s var(--ease), color .4s;
}

.row:hover .row__title {
    color: var(--cyan);
    transform: translateX(14px);
}

.row__text {
    margin: 0;
    color: var(--mist);
}

.row__text a::after {
    content: "";
    position: absolute;
    inset: 0;
}

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

.row:hover .row__arrow {
    background: var(--cyan);
    color: var(--ink);
    transform: rotate(-45deg);
}

@media (max-width: 760px) {
    .row {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .row__media {
        grid-column: 2;
        max-width: 260px;
    }

    .row__body {
        grid-column: 2;
    }

    .row__arrow {
        display: none;
    }
}

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

.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    height: 2px;
    pointer-events: none;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--grad);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 760px);
    justify-content: center;
    gap: clamp(32px, 6vw, 120px);
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(64px, 9vw, 130px) var(--gutter);
}

.post-layout--solo {
    grid-template-columns: minmax(0, 760px);
}

.post-aside {
    position: sticky;
    top: 110px;
    align-self: start;
}

.post-aside__label {
    margin: 0;
    color: var(--muted);
}

.toc {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--line-2);
}

.toc a {
    display: block;
    margin-left: -1px;
    padding: 7px 0 7px 16px;
    border-left: 1px solid transparent;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.35;
    text-decoration: none;
    transition: color .3s, border-color .3s;
}

.toc a:hover,
.toc a.is-active {
    color: var(--text);
    border-left-color: var(--cyan);
}

.prose {
    min-width: 0;
    font-size: clamp(17px, 1.2vw, 20px);
    color: var(--mist);
}

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

.prose h2 {
    margin: 2.2em 0 .6em;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 700;
    font-variation-settings: "wdth" 110;
    line-height: 1.05;
    letter-spacing: -.025em;
    color: var(--text);
}

.prose h3 {
    margin: 1.8em 0 .5em;
    font-size: 1.3em;
    line-height: 1.2;
    color: var(--text);
}

.prose .lede {
    font-size: 1.35em;
    line-height: 1.4;
    color: var(--text);
}

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

.prose code {
    padding: .15em .4em;
    border-radius: 4px;
    background: rgba(53, 214, 255, .08);
    font-family: var(--f-mono);
    font-size: .86em;
}

.prose pre {
    overflow-x: auto;
    padding: 20px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: rgba(2, 8, 21, .6);
}

.prose pre code {
    padding: 0;
    background: none;
}

.prose img {
    height: auto;
    border-radius: 8px;
}

.prose blockquote {
    margin: 1.6em 0;
    padding-left: 22px;
    border-left: 2px solid var(--cyan);
    color: var(--text);
}

.prose table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.prose th,
.prose td {
    padding: 10px 14px;
    border: 1px solid var(--line-2);
}

.practices {
    display: grid;
    gap: 14px;
    margin: 2em 0;
    padding: 0;
    list-style: none;
    counter-reset: practice;
}

.practices > li {
    position: relative;
    padding: 24px 24px 24px 74px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: radial-gradient(420px circle at var(--mx, -200px) var(--my, -200px), rgba(53, 214, 255, .13), transparent 60%), rgba(6, 22, 49, .55);
    counter-increment: practice;
}

.practices > li::before {
    content: counter(practice, decimal-leading-zero);
    position: absolute;
    left: 24px;
    top: 28px;
    font: 500 .75rem/1 var(--f-mono);
    color: var(--cyan);
}

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

.practices > li > :last-child {
    margin-bottom: 0;
}

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

    .post-aside {
        position: static;
    }
}

.next {
    padding: clamp(80px, 12vw, 180px) var(--gutter);
    border-top: 1px solid var(--line);
    text-align: center;
}

.next .kicker {
    margin: 0 0 12px;
    color: var(--muted);
}

.next__title {
    margin: 0 0 24px;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 500;
    color: var(--mist);
}

.next__link {
    margin: 0;
}

.next__link a {
    font-size: clamp(40px, 8vw, 130px);
    font-weight: 800;
    font-variation-settings: "wdth" 125;
    line-height: 1;
    letter-spacing: -.04em;
    text-decoration: none;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.site-footer {
    overflow: hidden;
    padding: clamp(80px, 10vw, 140px) var(--gutter) 28px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--ink), #030d24 55%, #07193d);
}

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

.footer__lead {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(30px, 4.2vw, 64px);
    font-weight: 600;
    font-variation-settings: "wdth" 106;
    line-height: 1;
    letter-spacing: -.03em;
}

.footer__nav {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1.15rem;
}

.footer__nav a {
    display: inline-flex;
    text-decoration: none;
}

.wordmark {
    max-width: var(--maxw);
    margin: clamp(56px, 8vw, 120px) auto 0;
    font-size: clamp(46px, 12.4vw, 220px);
    font-weight: 700;
    font-variation-settings: "wdth" 100, "wght" 700;
    line-height: .86;
    letter-spacing: -.045em;
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

.wordmark,
.wordmark .wc {
    background: linear-gradient(180deg, #edf3fc 15%, #35d6ff 60%, #1747d6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    max-width: var(--maxw);
    margin: 30px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.to-top {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-size: 18px;
    transition: background-color .3s, color .3s, transform .6s var(--ease);
}

.to-top:hover {
    background: var(--cyan);
    color: var(--ink);
}

@media (max-width: 720px) {
    .guides {
        grid-template-columns: repeat(3, 1fr);
    }

    .guides i:nth-child(n+4) {
        display: none;
    }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
    }

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

    .js [data-clip] {
        clip-path: none;
    }

    .sc {
        transform: none;
    }

    [data-scrub-words] .ww {
        opacity: 1;
    }

    .grain {
        display: none;
    }
}
