/*
 * Rift shop
 * Graphite base, mint (#8ced96) only where you can act: buttons, links, the lit block.
 * Studio blue appears only inside the Roblox Studio window.
 */

:root {
    --ink: #141716;
    --panel: #1c201e;
    --panel-2: #232826;
    --line: rgba(236, 241, 237, .09);
    --line-strong: rgba(236, 241, 237, .18);
    --text: #eceeeb;
    --soft: #b8bfba;
    --muted: #8f9893;
    --mint: #8ced96;
    --mint-hover: #a6f2ad;
    --mint-ink: #0d2412;
    --mint-tint: rgba(140, 237, 150, .12);
    --studio-blue: #2f7cf6;
    --amber: #f2c26b;
    --danger: #ff8a7a;

    --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;

    --wrap: 1312px;
    --gutter: clamp(20px, 4vw, 64px);
}

/* ---------- base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
    background: var(--ink);
    /* Anchors and focused fields land below the sticky nav, not under it. */
    scroll-padding-top: 110px;
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
[id] { scroll-margin-top: 110px; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-color: rgba(140, 237, 150, .5); text-underline-offset: 3px; }
a:hover { color: var(--mint); }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

code { font-family: var(--mono); font-size: .88em; }

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

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

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

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

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: var(--r-sm);
    background: var(--mint); color: var(--mint-ink); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(680px + var(--gutter) * 2); }
.auth { max-width: calc(440px + var(--gutter) * 2); }

.muted { color: var(--muted); }
.stack { display: grid; gap: 16px; }
.center-row { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- type scale (1.25) ---------- */

.hero__title {
    font-size: clamp(48px, 6.4vw, 88px);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.045em;
    max-width: 11ch;
    text-wrap: balance;
}
.section-title, .page-title {
    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
}
.page-title { margin-bottom: 14px; }
.sub-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 40px 0 16px; }
.sub-title--spaced { margin-top: 72px; }
.lede, .section-lede { color: var(--soft); font-size: 18px; max-width: 60ch; }
.lede { margin-bottom: 28px; }
.section-lede { margin-top: 12px; }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 24px;
    border: 1px solid transparent; border-radius: var(--r-md);
    font-size: 16px; font-weight: 600; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
    background: var(--mint); color: var(--mint-ink);
    box-shadow: 0 10px 28px -10px rgba(140, 237, 150, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn--primary:hover { background: var(--mint-hover); color: var(--mint-ink); }
.btn--secondary { background: rgba(236, 241, 237, .04); border-color: var(--line-strong); color: var(--text); }
.btn--secondary:hover { border-color: var(--mint); color: var(--text); }
.btn--danger { background: transparent; border-color: rgba(255, 138, 122, .5); color: var(--danger); }
.btn--danger:hover { background: rgba(255, 138, 122, .1); color: var(--danger); }
.btn--small { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }

.link-button {
    padding: 0; border: 0; background: none; cursor: pointer;
    color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}
.link-button:hover { color: var(--mint); }

/* ---------- promo bar ---------- */

.promo {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
    padding: 10px var(--gutter);
    background: var(--mint); color: var(--mint-ink);
    font-size: 14px; font-weight: 600; text-align: center;
}
.promo__code {
    margin-left: 4px; padding: 2px 8px;
    border: 1px dashed rgba(13, 36, 18, .45); border-radius: 6px;
    background: rgba(255, 255, 255, .25); cursor: copy; font-weight: 700;
}
.promo__ends { padding: 2px 10px; border-radius: 999px; background: rgba(13, 36, 18, .12); font-weight: 500; }

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

.site-header { position: sticky; top: 0; z-index: 20; padding: 16px var(--gutter) 0; }
.nav {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
    max-width: 920px; margin-inline: auto;
    padding: 8px 10px 8px 26px;
    border-radius: 999px;
}
.nav__side { display: flex; align-items: center; gap: 26px; }
.nav__side--end { justify-content: flex-end; gap: 22px; }
.nav__link { color: #c9cfcb; font-size: 15px; font-weight: 500; text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--mint); }
.nav__logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.nav__logo:hover { color: var(--text); }
.nav__cart {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(236, 241, 237, .07); font-size: 14px; font-weight: 600; text-decoration: none;
}
.nav__toggle { display: none; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; font-size: 14px; cursor: pointer; }

.mobile-menu {
    display: grid; gap: 4px; max-width: 920px; margin: 8px auto 0; padding: 10px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.mobile-menu a:hover { background: var(--panel-2); }

@media (max-width: 760px) {
    .nav { grid-template-columns: auto 1fr; padding-left: 18px; }
    .nav__side:not(.nav__side--end) { display: none; }
    .nav__side--end .nav__link { display: none; }
    .nav__toggle { display: inline-block; }
}

/* ---------- toasts ---------- */

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast {
    padding: 14px 18px; border-radius: var(--r-md);
    background: var(--panel-2); border: 1px solid var(--line-strong);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
    font-size: 15px;
    animation: toast-in .3s ease both;
}
.toast--success { border-color: rgba(140, 237, 150, .5); }
.toast--error { border-color: rgba(255, 138, 122, .6); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: .3s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

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

.section { padding-block: clamp(72px, 9vw, 128px); }
.section--page { padding-top: clamp(40px, 6vw, 72px); }
.section--tight { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }

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

.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: auto -10% -30% 40%; height: 80%;
    background: radial-gradient(closest-side, rgba(140, 237, 150, .16), transparent);
    pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 28px; justify-items: start; }
.hero__lede { color: var(--soft); font-size: clamp(18px, 1.6vw, 20px); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof { display: flex; align-items: center; gap: 14px; margin-top: 12px; color: var(--text); font-size: 15px; font-weight: 500; }
.faces { display: flex; }
.faces i {
    display: grid; place-items: center; width: 32px; height: 32px; margin-left: -10px;
    border: 2px solid var(--ink); border-radius: 50%;
    font-style: normal; font-size: 13px; font-weight: 700; color: var(--mint-ink);
}
.faces i:first-child { margin-left: 0; background: var(--mint); }
.faces i:nth-child(2) { background: #7fb0ff; }
.faces i:nth-child(3) { background: var(--amber); }
.faces i:nth-child(4) { background: #e3e7e4; }

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

/* ---------- Roblox Studio window ---------- */

.studio {
    position: relative;
    border: 1px solid var(--line-strong); border-radius: 14px;
    background: #1a1c1f; overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .65);
    font-size: 13px;
}
.studio__title { padding: 9px; background: #121315; color: var(--muted); font-size: 12px; text-align: center; }
.studio__ribbon { display: flex; align-items: center; gap: 22px; padding: 10px 16px; background: #1f2124; border-bottom: 1px solid var(--line); color: var(--muted); }
.studio__ribbon .is-active { color: var(--text); font-weight: 600; }
.studio__play { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px 10px; border-radius: 6px; background: rgba(140, 237, 150, .14); color: var(--mint); font-weight: 500; }
.studio__panels { display: grid; grid-template-columns: 270px 1fr; min-height: 420px; }
.studio__explorer { border-right: 1px solid var(--line); padding-bottom: 12px; }
.studio__head { padding: 10px 14px; font-weight: 600; }
.studio__head--split { display: flex; justify-content: space-between; }
.studio__muted { color: var(--muted); font-weight: 400; font-size: 12px; }
.studio__filter { margin: 0 10px 8px; padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, .25); color: rgba(143, 152, 147, .7); font-size: 12px; }
.studio__row { display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px calc(12px + var(--depth, 0) * 18px); color: #c9cfcb; white-space: nowrap; }
.studio__chev { width: 11px; flex: none; }
.studio__row--new { color: #fff; font-weight: 500; }
.studio__row.is-selected { background: rgba(47, 124, 246, .45); }
.studio__output { display: flex; flex-direction: column; min-width: 0; }
.studio__log { display: grid; gap: 10px; padding: 8px 16px; font-family: var(--mono); font-size: 12px; }
.studio__log li { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.studio__log time { color: rgba(143, 152, 147, .7); }
.studio__log em { color: var(--mint); font-style: normal; }
.studio__command { margin-top: auto; padding: 10px 16px; background: rgba(0, 0, 0, .22); color: rgba(143, 152, 147, .6); font-family: var(--mono); font-size: 12px; }
.studio__callout {
    position: absolute; left: 248px; bottom: 64px;
    padding: 9px 14px; border-radius: 10px;
    background: var(--mint); color: var(--mint-ink);
    font-size: 14px; font-weight: 600;
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, .45);
}

/* The one orchestrated moment: modules slide in, Output logs them. */
@media (prefers-reduced-motion: no-preference) {
    .studio__row--new { animation: studio-insert .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(700ms + var(--i) * 450ms); }
    .studio__row--new:not(.is-selected) { animation-name: studio-insert, studio-flash; animation-duration: .5s, 1.1s; animation-delay: calc(700ms + var(--i) * 450ms), calc(700ms + var(--i) * 450ms); }
    .studio__log li { animation: studio-log .35s ease-out both; animation-delay: calc(950ms + var(--i) * 450ms); }
    .studio__callout { animation: studio-callout .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: 2.6s; }
}
@keyframes studio-insert { from { opacity: 0; transform: translateX(-12px); } }
@keyframes studio-flash { 0% { background: rgba(47, 124, 246, .45); } 100% { background: transparent; } }
@keyframes studio-log { from { opacity: 0; } }
@keyframes studio-callout { from { opacity: 0; transform: translateY(8px) scale(.96); } }

@media (max-width: 620px) {
    .studio__panels { grid-template-columns: 1fr; }
    .studio__explorer { border-right: 0; border-bottom: 1px solid var(--line); }
    .studio__output { min-height: 200px; }
    .studio__ribbon span:not(.is-active):not(.studio__play) { display: none; }
    .studio__callout { left: 16px; bottom: 16px; }
}

/* ---------- tabs ---------- */

.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.tabs--wide { margin-bottom: 32px; width: fit-content; max-width: 100%; }
.tabs__item { display: inline-flex; align-items: baseline; gap: 7px; padding: 9px 14px; border-radius: 10px; color: #c9cfcb; font-size: 14px; font-weight: 600; text-decoration: none; }
.tabs__item small { color: var(--muted); font-size: 13px; font-weight: 500; }
.tabs__item:hover { background: var(--panel-2); color: var(--text); }
.tabs__item.is-active { background: var(--text); color: var(--ink); }
.tabs__item.is-active small { color: #5d6661; }

/* ---------- products ---------- */

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

.card {
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--panel); overflow: hidden;
}
.card__media { display: block; aspect-ratio: 16 / 9; background: #1a1e1c; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.card__title { font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.card__title a { text-decoration: none; }
.card__pitch { color: var(--muted); font-size: 15px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 13px; font-weight: 500; }
.card__meta span:first-child { color: var(--soft); }
.card__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.price { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.price--large { font-size: 34px; font-weight: 800; }

/* The featured card spans two columns and lays out sideways. */
.card--featured { grid-column: span 2; flex-direction: row; border-color: rgba(140, 237, 150, .35); }
.card--featured .card__media { flex: 0 0 48%; aspect-ratio: auto; }
.card--featured .card__body { padding: 34px 36px; gap: 14px; }
.card--featured .card__title { font-size: clamp(30px, 3vw, 38px); font-weight: 800; letter-spacing: -.04em; }
.card--featured .card__pitch { color: var(--soft); font-size: 16px; }

.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 500; text-align: right; }

@media (max-width: 1080px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .product-grid { grid-template-columns: 1fr; }
    .card--featured { grid-column: auto; flex-direction: column; }
    .card--featured .card__media { aspect-ratio: 16 / 9; }
    .card--featured .card__body { padding: 24px; }
}

.catalog-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-tools .input { width: auto; min-width: 180px; }

.bundle-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 40px; padding: 20px 24px;
    border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
}

/* ---------- proof ---------- */

.proof { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.proof__main blockquote { font-size: clamp(28px, 3.2vw, 42px); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; max-width: 24ch; }
.proof__main figcaption { display: flex; align-items: center; gap: 14px; margin-top: 32px; color: var(--muted); font-size: 15px; }
.proof__main strong { color: var(--text); font-weight: 600; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--mint); color: var(--mint-ink); font-weight: 700; font-size: 18px; }
.proof__side { display: grid; gap: 28px; }
.rating { display: grid; gap: 8px; color: #c9cfcb; font-size: 15px; font-weight: 500; }
.stars { color: var(--mint); font-size: 22px; letter-spacing: 3px; }
.stars__off { color: rgba(255, 255, 255, .18); }
.stars--small { font-size: 14px; letter-spacing: 1px; }
.hero__proof { flex-wrap: wrap; gap: 8px 20px; color: var(--soft); }
.hero__proof strong { color: var(--text); font-weight: 700; }
.hero__rating { display: inline-flex; align-items: center; gap: 8px; }
.quote { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.quote blockquote { font-size: 17px; }
.quote figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

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

/* ---------- benefits ---------- */

.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; margin-top: 40px; }
.benefits > div { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.benefits h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.benefits p { color: var(--muted); max-width: 52ch; }
@media (max-width: 720px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- bundle ---------- */

.bundle {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px;
    padding: clamp(32px, 5vw, 64px);
    border: 1px solid var(--line); border-radius: var(--r-xl);
    background: var(--panel); overflow: hidden;
}
.bundle::before {
    content: ""; position: absolute; left: -10%; bottom: -60%; width: 60%; height: 120%;
    background: radial-gradient(closest-side, rgba(140, 237, 150, .2), transparent);
    pointer-events: none;
}
.bundle__copy { position: relative; display: grid; gap: 22px; align-content: start; }
.bundle__copy p { color: var(--soft); font-size: 18px; max-width: 44ch; }
.bundle__title { font-size: clamp(36px, 4.4vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.045em; max-width: 12ch; }
.bundle__list { position: relative; }
.bundle__list > div { display: flex; justify-content: space-between; padding: 15px 0; border-top: 1px solid var(--line-strong); font-size: 18px; font-weight: 500; }
.bundle__list dd { color: var(--muted); font-size: 16px; font-weight: 400; }
@media (max-width: 860px) { .bundle { grid-template-columns: 1fr; } }

/* ---------- product page ---------- */

.breadcrumb { display: flex; gap: 10px; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.breadcrumb a { text-decoration: none; }
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.product__cover { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); margin-bottom: 36px; }
.prose { display: grid; gap: 18px; color: var(--soft); max-width: 64ch; }
.buybox {
    position: sticky; top: 104px; display: grid; gap: 18px;
    padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel);
}
.buybox__title { font-size: clamp(30px, 3vw, 40px); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.buybox__pitch { color: var(--soft); }
.buybox__price { display: flex; align-items: baseline; gap: 12px; font-size: 36px; font-weight: 800; letter-spacing: -.04em; }
.buybox__price s { color: var(--muted); font-size: 18px; font-weight: 500; letter-spacing: 0; }
.buybox__perks { display: grid; gap: 8px; color: var(--soft); font-size: 15px; }
.buybox__perks li { padding-left: 24px; background: no-repeat left 5px / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ced96' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.changelog li { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.changelog__version { font-family: var(--mono); color: var(--mint); font-size: 14px; }
.changelog time { color: var(--muted); font-size: 14px; }
.included li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.included span { color: var(--muted); font-size: 15px; }
@media (max-width: 920px) {
    .product { grid-template-columns: 1fr; }
    .buybox { position: static; order: -1; }
}

/* ---------- forms ---------- */

.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.field--grow { grid-column: span 2; }
.field__hint { color: var(--muted); font-size: 13px; }
.field__error { color: var(--danger); font-size: 13px; font-weight: 500; }
.form-error { padding: 12px 16px; border-radius: var(--r-md); background: rgba(255, 138, 122, .1); border: 1px solid rgba(255, 138, 122, .4); color: var(--danger); margin-bottom: 20px; }
.input {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--line-strong); border-radius: 10px;
    background: #101312; font-size: 15px;
}
.input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(140, 237, 150, .2); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 36px; background: #101312 no-repeat right 12px center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f9893' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: #101312; }
.input-prefix span { padding-left: 14px; color: var(--muted); font-size: 15px; }
.input-prefix .input { border: 0; background: transparent; padding-left: 2px; }
.input-prefix:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(140, 237, 150, .2); }
.checks { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; font-size: 15px; }
.checks label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--mint); }
.checks--boxed { gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.checks--boxed legend { padding: 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.checks--boxed .field { margin-top: 4px; }

.notice { margin-bottom: 24px; padding: 14px 18px; border-radius: var(--r-md); background: var(--mint-tint); border: 1px solid rgba(140, 237, 150, .3); font-size: 15px; }
.notice code { color: var(--mint); }

/* ---------- cart & checkout ---------- */

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.line-items { display: grid; }
.line-item { display: grid; grid-template-columns: 120px 1fr auto auto; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.line-item:last-child { border-bottom: 1px solid var(--line); }
.line-item img { border-radius: var(--r-sm); aspect-ratio: 16 / 9; object-fit: cover; }
.line-item__info { display: grid; gap: 2px; }
.line-item__info a, .line-item__name { font-weight: 600; font-size: 18px; text-decoration: none; }
.line-item__info span:last-child:not(.line-item__name) { color: var(--muted); font-size: 14px; }
.line-item__price { font-weight: 600; }
.line-item--owned { opacity: .7; }
.line-items--compact .line-item { grid-template-columns: 1fr auto; padding: 14px 0; }
.line-items--compact .line-item__name { font-size: 16px; font-weight: 500; }

.summary { position: sticky; top: 104px; display: grid; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.summary__note { color: var(--muted); font-size: 13px; }
.totals { display: grid; margin: 8px 0 24px; }
.totals > div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.totals dt { color: var(--soft); }
.totals__discount dd { color: var(--mint); }
.totals__total { margin-top: 6px; padding-top: 14px !important; border-top: 1px solid var(--line-strong); font-size: 20px !important; font-weight: 700; }
.totals__total dt { color: var(--text); }
.summary .totals { margin: 0; }
.coupon { display: flex; gap: 8px; }
.coupon--applied { justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--mint-tint); font-size: 14px; font-weight: 600; }

@media (max-width: 900px) {
    .checkout { grid-template-columns: 1fr; }
    .summary { position: static; }
}
@media (max-width: 560px) {
    .line-item { grid-template-columns: 80px 1fr; }
    .line-item__price, .line-item form { grid-column: 2; }
}

/* ---------- library ---------- */

.licenses { display: grid; }
.license { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.license:last-child { border-bottom: 1px solid var(--line); }
.license { display: block; }
.license__top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; }
.license__info { display: grid; gap: 2px; }
.license__name { font-weight: 600; font-size: 18px; text-decoration: none; }
.license__info .muted { font-size: 14px; }
.license__key { display: flex; align-items: center; gap: 12px; }
.license__key code { padding: 6px 10px; border-radius: 6px; background: #101312; border: 1px solid var(--line); font-size: 13px; }

.license__panel { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, .02); }
.license__panel h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.license__panel h4 + p { margin-bottom: 14px; }
.license__panel h4:not(:first-child) { margin-top: 22px; }

.code-block { position: relative; }
.code-block pre {
    margin: 0; padding: 16px; padding-right: 72px;
    max-height: 280px; overflow: auto;
    border-radius: var(--r-sm); background: #0d0f0e; border: 1px solid var(--line);
    font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: #cfd3d0;
    white-space: pre; tab-size: 2;
}
.code-block__copy {
    position: absolute; top: 10px; right: 10px;
    padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px;
    background: var(--panel-2); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
}
.code-block__copy:hover { border-color: var(--mint); }

.places { display: grid; gap: 8px; margin-top: 6px; }
.places li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.places__name { display: block; font-weight: 600; }
.places .muted { font-size: 13px; }

@media (max-width: 720px) {
    .license__top { grid-template-columns: 1fr; gap: 12px; justify-items: start; }
}

/* ---------- badges, tables ---------- */

.badge { display: inline-block; margin-right: 8px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--panel-2); color: var(--soft); vertical-align: middle; }
.badge--paid { background: var(--mint-tint); color: var(--mint); }
.badge--pending { background: rgba(242, 194, 107, .14); color: var(--amber); }
.badge--refunded, .badge--cancelled { background: rgba(236, 241, 237, .06); color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { padding: 12px 16px; text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; background: var(--panel); border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a { font-weight: 600; text-decoration: none; }
.table .muted { font-size: 13px; }
.is-muted td { color: var(--muted); }

/* ---------- empty & error ---------- */

.empty { display: grid; justify-items: start; gap: 12px; padding: 48px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.empty p { color: var(--muted); margin-bottom: 8px; }
.narrow-page { max-width: calc(640px + var(--gutter) * 2); padding-block: 120px; }
.error-code { font-family: var(--mono); color: var(--mint); margin-bottom: 12px; }

/* ---------- admin ---------- */

.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 36px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 8px 14px; border-radius: 10px; color: var(--soft); font-weight: 500; text-decoration: none; }
.admin-nav a:hover { background: var(--panel); color: var(--text); }
.admin-nav a[aria-current="page"] { background: var(--panel-2); color: var(--mint); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 48px; }
.stats > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.stats dt { color: var(--muted); font-size: 14px; }
.stats dd { margin-top: 6px; font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.admin-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
.admin-columns .sub-title:first-child { margin-top: 0; }
.ranked { display: grid; counter-reset: rank; }
.ranked li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.admin-form { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.admin-form__main, .admin-form__side { display: grid; gap: 20px; }
.admin-form__side { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.admin-cover { border-radius: var(--r-sm); border: 1px solid var(--line); }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.panel .sub-title { margin-top: 0; }
.danger-zone { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
    .admin-columns, .admin-form { grid-template-columns: 1fr; }
}

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

.site-footer { border-top: 1px solid var(--line); padding-block: 36px; margin-top: 40px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 500; }
.site-footer__links a { text-decoration: none; }
.site-footer__legal { color: var(--muted); font-size: 13px; }

/* ---------- image ratios ----------
 * Every image box keeps 16:9 even if an uploaded cover has another shape,
 * so nothing jumps while images load.
 */
.product__cover, .admin-cover, .line-item img, .drawer-item img, .card__media img {
    aspect-ratio: 16 / 9; object-fit: cover; background: #1a1e1c;
}
.product__cover, .admin-cover { width: 100%; height: auto; }

/* ---------- hit areas ----------
 * Small text buttons get an invisible 44px-tall touch target around them.
 */
.link-button, .nav__link, .site-footer__links a, .site-footer__meta a, .breadcrumb a, .drawer__link, .promo__code {
    position: relative;
}
.link-button::after, .nav__link::after, .site-footer__links a::after, .site-footer__meta a::after, .breadcrumb a::after, .drawer__link::after, .promo__code::after {
    content: ""; position: absolute; inset: -12px -8px;
}
.checks label, .consent { min-height: 44px; }
@media (pointer: coarse) {
    .btn--small { padding: 13px 18px; }
    .tabs__item { padding: 12px 16px; }
    .nav__cart { padding: 11px 16px; }
    .mobile-menu a { padding: 14px 16px; }
}

/* ---------- error states ---------- */
.field--invalid label { color: var(--danger); }
.field__error { display: flex; align-items: flex-start; gap: 6px; }
.field__error::before {
    content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px;
    background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a7a' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E");
}
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 138, 122, .22); border-color: var(--danger); }
.form-error { display: flex; align-items: center; gap: 10px; }
.form-error:focus { outline: 2px solid var(--danger); outline-offset: 3px; }
.btn[disabled], .btn.is-loading { cursor: progress; opacity: .7; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
    border: 2px solid currentColor; border-radius: 50%; border-right-color: transparent;
    color: var(--mint-ink); animation: spin .7s linear infinite;
}
.btn--secondary.is-loading::after, .btn--danger.is-loading::after { color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- legal, consents, account data ---------- */

.legal { color: var(--soft); }
.legal h2 { margin-top: 18px; color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.legal ul, .legal ol { display: grid; gap: 8px; padding-left: 22px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal strong { color: var(--text); }
.legal a { color: var(--mint); }

.consent { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: rgba(255, 255, 255, .02); font-size: 14px; line-height: 1.5; color: var(--soft); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mint); }
.consent a { color: var(--mint); }
.consent:has(input:checked) { border-color: rgba(140, 237, 150, .45); }
.consent:has(input[aria-invalid="true"]) { border-color: var(--danger); }

.data-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.data-actions h3 { font-size: 18px; font-weight: 700; }
.data-actions .btn { justify-self: start; }

.admin-reviews { display: grid; }
.admin-reviews li { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.admin-reviews blockquote { font-size: 16px; }
.admin-reviews form { justify-self: start; }

.site-footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer__meta nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__meta a { text-decoration: none; }

/* ---------- cart drawer ---------- */

/*
 * A compact glass popover that drops from the cart icon. Its height follows the
 * content. Nothing full-screen is blurred, which is what made the old panel lag.
 */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer__backdrop {
    position: absolute; inset: 0;
    background: rgba(8, 10, 9, .28);
    opacity: 0; transition: opacity .25s ease;
}
.drawer__panel {
    position: absolute;
    top: var(--pop-top, 84px);
    right: var(--pop-right, 16px);
    width: min(390px, calc(100vw - 24px));
    max-height: min(540px, calc(100vh - var(--pop-top, 84px) - 16px));
    display: flex; flex-direction: column;
    border-radius: 24px;
    transform-origin: calc(100% - 28px) -8px;
    opacity: 0;
    transform: translateY(-6px) scale(.94);
    transition: opacity .2s ease, transform .32s cubic-bezier(.2, .9, .2, 1.15);
    will-change: transform, opacity;
    outline: none; overflow: hidden;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { opacity: 1; transform: none; }

/* little notch pointing at the cart icon */
.drawer__panel::after {
    content: ""; position: absolute; top: -1px; right: 26px;
    width: 18px; height: 2px; border-radius: 2px;
    background: var(--mint); box-shadow: 0 0 12px rgba(140, 237, 150, .8);
}

.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 12px 20px; }
.drawer__title { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.drawer__close {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line-strong); border-radius: 50%;
    background: transparent; color: var(--soft); cursor: pointer;
    transition: border-color .2s ease, color .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.drawer__close:hover { border-color: var(--mint); color: var(--text); transform: rotate(90deg); }

.drawer__body { display: flex; flex-direction: column; min-height: 0; }
.drawer__items { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 0 8px 6px; overscroll-behavior: contain; }
.drawer-item {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
    padding: 8px 10px; border-radius: 14px;
}
.drawer-item + .drawer-item { margin-top: 2px; }
.drawer-item img { width: 56px; border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.drawer-item__info { display: grid; gap: 1px; min-width: 0; }
.drawer-item__name { font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-item__meta { color: var(--muted); font-size: 13px; }
.drawer-item__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer-item__remove {
    display: grid; place-items: center; width: 40px; height: 40px; margin-right: -6px;
    border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer;
}
.drawer-item__remove:hover { background: var(--panel-2); color: var(--text); }
.drawer-item--owned { opacity: .6; }
.drawer-item.is-new { animation: item-in .5s cubic-bezier(.2, .8, .2, 1) .1s both, item-glow 1.6s ease .3s both; }
.drawer-item.is-leaving { opacity: 0; transform: translateX(28px); transition: opacity .25s ease, transform .25s ease; }
@keyframes item-in { from { opacity: 0; transform: translateX(32px); } }
@keyframes item-glow { 0% { background: rgba(140, 237, 150, .16); } 100% { background: transparent; } }

.drawer__foot { display: grid; gap: 10px; padding: 12px 20px 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.drawer__foot .totals { margin: 0; }
.drawer__foot .totals > div { padding: 4px 0; font-size: 14px; }
.drawer__foot .totals__total { margin-top: 4px; padding-top: 10px !important; font-size: 17px !important; }
.drawer__link { color: var(--muted); font-size: 13px; text-align: center; }

.drawer__empty { display: grid; justify-items: center; gap: 6px; padding: 12px 24px 26px; text-align: center; }
.drawer__empty svg { width: 44px; height: 44px; margin-bottom: 6px; }
.drawer__empty-title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.drawer__empty .muted { font-size: 14px; }
.drawer__empty .btn { margin-top: 10px; }

.nav__count { display: inline-block; min-width: 1ch; text-align: center; }
.nav__count.is-bumped { animation: bump .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes bump { 35% { transform: scale(1.6); color: var(--mint); } }

form.is-busy .btn { opacity: .6; cursor: progress; }

@media (max-width: 520px) {
    .drawer__panel { left: 12px; right: 12px; width: auto; }
    .drawer__panel::after { display: none; }
}

/* ---------- liquid glass ----------
 * Real frosted glass (backdrop blur) only on the small floating surfaces:
 * the nav pill, the basket popover and toasts. Larger surfaces get the same
 * look from gradients and inner highlights, which cost nothing to render.
 */

.nav, .drawer__panel, .toast {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 38%, rgba(255, 255, 255, 0) 60%),
        rgba(26, 31, 28, .56);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .13);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .28),     /* bright top edge */
        inset 0 -1px 0 rgba(255, 255, 255, .05),
        inset 1px 0 0 rgba(255, 255, 255, .06),
        inset 0 0 24px rgba(140, 237, 150, .035),   /* faint mint body */
        0 22px 48px -22px rgba(0, 0, 0, .75);
    isolation: isolate;
}
.nav, .toast { position: relative; }

/* Specular sheen: light caught in the top-left, a mint caustic bottom-right. */
.nav::before, .drawer__panel::before, .toast::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    border-radius: inherit; pointer-events: none;
    background:
        radial-gradient(90% 140% at 8% -30%, rgba(255, 255, 255, .16), transparent 55%),
        radial-gradient(70% 90% at 105% 130%, rgba(140, 237, 150, .13), transparent 60%);
}

/* Glass without blur on bigger surfaces. */
.btn--secondary,
.tabs,
.buybox,
.summary,
.studio,
.bundle {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 45%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.studio { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 40px 80px -20px rgba(0, 0, 0, .65); }
.btn--secondary:hover { background-image: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 50%); }

/* The mint button reads as a lit pill of glass. */
.btn--primary {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%);
    box-shadow:
        0 10px 28px -10px rgba(140, 237, 150, .55),
        inset 0 1px 0 rgba(255, 255, 255, .6),
        inset 0 -2px 6px rgba(13, 36, 18, .18);
}

.btn--primary:hover { background-image: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 55%); }
.toast--success { border-color: rgba(140, 237, 150, .45); }
.toast--error { border-color: rgba(255, 138, 122, .55); }

.drawer__close { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.drawer-item:hover { background: rgba(255, 255, 255, .04); }

/* Browsers without backdrop-filter get a solid surface. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav, .drawer__panel, .toast { background: var(--panel); }
}

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

@media (prefers-reduced-motion: no-preference) {
    /* Hero copy arrives first, then the Studio window runs its insert sequence. */
    .hero__copy > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
    .hero__copy > :nth-child(2) { animation-delay: .08s; }
    .hero__copy > :nth-child(3) { animation-delay: .16s; }
    .hero__copy > :nth-child(4) { animation-delay: .24s; }
    .studio { animation: studio-in .9s cubic-bezier(.2, .8, .2, 1) .15s both; }

    /* Sections and cards rise into place as they scroll into view. */
    .js [data-reveal] { opacity: 0; }
    .js [data-reveal].is-in {
        opacity: 1;
        animation: reveal .75s cubic-bezier(.2, .8, .2, 1) backwards;
        animation-delay: calc(var(--d, 0) * 80ms);
    }

    /* Smooth fade between pages (Chrome, Edge, Safari 18+). */
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: vt-out .18s ease both; }
    ::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.2, .8, .2, 1) both; }
    .site-header { view-transition-name: site-header; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes studio-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }
@keyframes reveal { from { opacity: 0; transform: translateY(32px) scale(.985); } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Cards lift and their cover drifts slightly on hover. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .card { transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .25s ease, box-shadow .4s ease; }
    .card:hover {
        transform: translateY(-5px);
        border-color: rgba(140, 237, 150, .38);
        box-shadow: 0 28px 50px -26px rgba(0, 0, 0, .8), 0 0 0 1px rgba(140, 237, 150, .06);
    }
    .card__media img { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
    .card:hover .card__media img { transform: scale(1.045); }
    .btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(140, 237, 150, .7), inset 0 1px 0 rgba(255, 255, 255, .4); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
