/* =========================================================
   THXPLAY — site styles
   Dark is the default theme; [data-theme="light"] overrides.
   ========================================================= */

:root,
[data-theme="dark"] {
    --bg: #0a0a0c;
    --bg-2: #111115;
    --surface: #16161b;
    --surface-2: #1d1d24;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .22);
    --text: #f3f3f6;
    --muted: #9696a3;
    --accent: #4f1fa8;
    --accent-fg: #8a66d6;
    --accent-2: #2e1065;
    --accent-ink: #ffffff;
    --accent-soft: rgba(79, 31, 168, .22);
    --silver: linear-gradient(120deg, #ffffff 0%, #d6d6dc 38%, #8b8b94 60%, #f2f2f5 100%);
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
    --persona-filter: drop-shadow(0 0 1px rgba(255, 255, 255, .45)) drop-shadow(0 0 22px rgba(79, 31, 168, .3));
    --logo-filter: none;
    --grid-color: rgba(255, 255, 255, .035);
    --ground: rgba(0, 0, 0, .55);
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #f4f4f6;
    --bg-2: #eaeaef;
    --surface: #ffffff;
    --surface-2: #f6f6f9;
    --line: rgba(10, 10, 12, .1);
    --line-strong: rgba(10, 10, 12, .25);
    --text: #0b0b0e;
    --muted: #5d5d6a;
    --accent: #3f1587;
    --accent-fg: #3f1587;
    --accent-2: #2e1065;
    --accent-ink: #ffffff;
    --accent-soft: rgba(63, 21, 135, .1);
    --silver: linear-gradient(120deg, #0b0b0e 0%, #3a3a44 40%, #8b8b94 62%, #1b1b20 100%);
    --shadow: 0 30px 60px -25px rgba(20, 20, 40, .25);
    --persona-filter: drop-shadow(0 18px 30px rgba(20, 20, 40, .18));
    --logo-filter: invert(1);
    --grid-color: rgba(0, 0, 0, .045);
    --ground: rgba(20, 20, 40, .16);
    color-scheme: light;
}

:root {
    --font-display: "Unbounded", system-ui, sans-serif;
    --font-body: "Space Grotesk", system-ui, sans-serif;
    --radius: 4px;
    --nav-h: 76px;
    --gutter: clamp(16px, 4vw, 48px);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 8px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
    transition: background-color .4s var(--ease), color .4s var(--ease);
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--accent-ink); }

.icon { width: 1.1em; height: 1.1em; flex: none; }

.skip {
    position: fixed; left: 12px; top: -60px; z-index: 200;
    background: var(--accent); color: var(--accent-ink); padding: 10px 16px;
}
.skip:focus { top: 12px; }

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

.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }
.center { text-align: center; margin-top: 48px; }

.logo-img { filter: var(--logo-filter); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .6em;
    padding: .9em 1.5em;
    font-family: var(--font-display); font-size: .72rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    border: 1px solid transparent; border-radius: var(--radius);
    transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--accent); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px var(--accent); }
.btn--outline { border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--text); background: var(--text); color: var(--bg); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--line-strong); }
.btn--link { padding-inline: .2em; position: relative; }
.btn--link::after {
    content: ""; position: absolute; left: .2em; right: .2em; bottom: .55em; height: 1px;
    background: currentColor; transform-origin: right; transform: scaleX(.35); transition: transform .4s var(--ease);
}
.btn--link:hover::after { transform: scaleX(1); transform-origin: left; }
.btn--sm { padding: .65em 1.1em; font-size: .62rem; }

.icon-btn {
    width: 42px; height: 42px; display: inline-grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%; background: transparent;
    transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.icon-btn:hover { border-color: var(--line-strong); transform: rotate(-8deg); }
.icon-btn .icon { width: 18px; height: 18px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .7em;
    font-family: var(--font-display); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 1.2em;
}
.dot { width: 7px; height: 7px; background: var(--accent); display: inline-block; }
.accent-dot { color: var(--accent-fg); }

/* ---------- Nav ---------- */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding-inline: var(--gutter);
    transition: background .4s, border-color .4s, height .4s var(--ease), backdrop-filter .4s;
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    --nav-h: 64px;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom-color: var(--line);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.nav__brand img { height: 28px; width: auto; transition: transform .4s var(--ease), opacity .3s; }
.nav__brand:hover img { transform: skewX(-8deg); opacity: .85; }
.nav__brand span { font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .14em; }
.nav__links { display: flex; gap: clamp(18px, 3vw, 44px); }
.nav__links a {
    position: relative; font-family: var(--font-display); font-size: .66rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 8px 0;
    transition: color .3s;
}
.nav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
    transform: scaleX(0); transition: transform .4s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; }

.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .icon { position: absolute; transition: transform .5s var(--ease-back), opacity .3s; }
[data-theme="dark"] .theme-toggle .icon--moon,
[data-theme="light"] .theme-toggle .icon--sun { transform: translateY(140%) rotate(90deg); opacity: 0; }

/* ---------- Mobile menu ---------- */
.menu {
    position: fixed; inset: 0; z-index: 90; background: var(--bg);
    display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
    overflow: hidden;
    clip-path: circle(0% at calc(100% - 40px) 38px);
    transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); }
.menu__close { position: absolute; top: 17px; right: var(--gutter); }
.menu__links { display: grid; gap: 4px; position: relative; }
.menu__links a {
    font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 11vw, 4rem);
    text-transform: uppercase; line-height: 1.1; display: flex; align-items: baseline; gap: 14px;
    opacity: 0; transform: translateY(30px);
    transition: opacity .5s var(--ease), transform .6s var(--ease), color .3s;
    transition-delay: calc(.15s + var(--i) * .06s);
}
.menu__links a small { font-size: .8rem; color: var(--accent-fg); font-weight: 600; }
.menu__links a:hover { color: var(--accent-fg); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu__social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; position: relative; }
.menu__social a { width: 22px; height: 22px; color: var(--muted); }
.menu__social a:hover { color: var(--text); }
.menu__social .icon { width: 100%; height: 100%; }
.menu__x, .connect__x, .page-hero__x { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.menu__x span, .connect__x span, .page-hero__x span {
    position: absolute; left: 50%; top: 50%; width: 220vmax; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.menu__x span:first-child, .connect__x span:first-child, .page-hero__x span:first-child { transform: translate(-50%, -50%) rotate(38deg); }
.menu__x span:last-child, .connect__x span:last-child, .page-hero__x span:last-child {
    transform: translate(-50%, -50%) rotate(-38deg);
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative; min-height: 100svh; min-height: 100vh;
    display: flex; flex-direction: column; overflow: hidden;
    padding-top: var(--nav-h);
    isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: max(100svh, 640px); } }

.hero__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%);
}
.hero__lines {
    position: absolute; inset: -6%; width: 112%; height: 112%; color: var(--text);
    will-change: transform;
}
.hero__line { fill: none; stroke-width: 70; stroke-linecap: square; opacity: .16; stroke-dasharray: 1700; stroke-dashoffset: 1700; animation: draw 2.2s var(--ease) .2s forwards; }
.hero__line--b { opacity: .35; animation-delay: .45s; }
.hero__line--thin { stroke-width: 1.5; opacity: .5; animation-delay: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__word {
    position: absolute; left: 0; right: 0; top: 50%; z-index: -1;
    display: flex; justify-content: center; pointer-events: none;
    will-change: transform;
}
.hero__word span {
    font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 19vw, 20rem);
    line-height: .8; letter-spacing: -.04em; transform: translateY(-62%);
    color: transparent;
    background: linear-gradient(180deg, color-mix(in srgb, var(--text) 10%, transparent) 10%, color-mix(in srgb, var(--text) 2%, transparent) 90%);
    -webkit-background-clip: text; background-clip: text;
    opacity: 0; animation: fadeUp 1.4s var(--ease) .3s forwards;
}

.hero__inner {
    flex: 1; display: grid; align-items: center;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, .8fr);
    gap: clamp(12px, 3vw, 40px);
    position: relative;
}

.hero__left { position: relative; padding-left: 44px; z-index: 3; will-change: transform; }
.hero__vertical {
    position: absolute; left: 0; top: 50%; transform: rotate(-90deg) translateX(-50%); transform-origin: left top;
    font-family: var(--font-display); font-size: .9rem; letter-spacing: .5em;
    color: var(--muted); white-space: nowrap;
}
.hero__title {
    width: fit-content;
    font-size: clamp(3.6rem, 7.4vw, 7.6rem); font-weight: 900; line-height: .85; letter-spacing: -.04em;
    background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: .2em;
}
.hero__title .accent-dot { -webkit-text-fill-color: var(--accent-fg); }
.hero__text { max-width: 34ch; color: var(--muted); font-size: 1rem; }
.hero__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }

.hero__right { justify-self: end; display: grid; gap: 34px; justify-items: end; z-index: 3; will-change: transform; }
.edition {
    border: 1px solid var(--line-strong); padding: 12px 20px; text-align: center; position: relative;
    font-family: var(--font-display);
}
.edition::before { content: ""; position: absolute; left: -1px; top: 50%; width: 1px; height: 40%; background: var(--bg); transform: translateY(-50%); }
.edition::after { content: ""; position: absolute; left: -32px; top: 50%; width: 52px; height: 1px; background: var(--line-strong); }
.edition small { display: block; font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.edition strong { display: block; font-size: 1.6rem; letter-spacing: .08em; }
.edition--sm strong { font-size: 1.2rem; }
.hero__hint { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .82rem; line-height: 1.4; margin: 0; text-align: left; }
.hero__hint .icon { width: 22px; height: 22px; color: var(--accent-fg); animation: tap 2s ease-in-out infinite; }
@keyframes tap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px) rotate(-6deg); } }

.hero__stats {
    display: flex; align-items: center; gap: clamp(20px, 5vw, 72px);
    padding-block: 22px 28px; border-top: 1px solid var(--line); position: relative; z-index: 4;
    background: linear-gradient(180deg, transparent, var(--bg) 60%);
}
.stat { display: flex; align-items: center; gap: 10px; }
.stat b { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 800; }
.stat b::before { content: "+"; color: var(--accent-fg); margin-right: 2px; }
.stat span { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.35; }
.hero__scroll {
    margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%;
    display: grid; place-items: center;
}
.hero__scroll .icon { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- Stage (3 characters as one composition) ---------- */
.stage {
    --h: min(calc(100svh - var(--nav-h) - 110px), 820px);
    --h: min(calc(100vh - var(--nav-h) - 110px), 820px);
    position: relative;
    height: var(--h);
    width: calc(var(--h) * .84);
    align-self: end;
    user-select: none; -webkit-user-select: none;
    touch-action: manipulation;
}
@supports (height: 100svh) { .stage { --h: max(420px, min(calc(100svh - var(--nav-h) - 110px), 820px)); } }

.stage__circle {
    position: absolute; left: 50%; top: 20%; width: 62%; aspect-ratio: 1; margin-left: -31%;
    border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 120px -10px var(--accent);
    opacity: 0; animation: pop 1.1s var(--ease-back) .5s forwards;
}
.stage__ring {
    position: absolute; left: 50%; top: 14%; width: 80%; aspect-ratio: 1; margin-left: -40%;
    border-radius: 50%; border: 1px dashed var(--line-strong);
    animation: spin 40s linear infinite;
}
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { rotate: 360deg; } }

.persona {
    position: absolute; bottom: 0;
    will-change: transform;
    pointer-events: none;
}
.persona__float {
    width: 100%; height: 100%;
    opacity: 0; transform: translateY(60px); filter: blur(8px);
    animation: rise 1.2s var(--ease) forwards;
}
.persona img {
    width: 100%; height: 100%; object-fit: contain; object-position: bottom;
    filter: var(--persona-filter);
    transition: transform .6s var(--ease), filter .5s, opacity .5s;
    transform-origin: 50% 100%;
}
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

.persona--thxplay { height: 100%; width: 39%; left: 30.5%; z-index: 1; }
.persona--thxplay .persona__float { animation-delay: .55s; }
.persona--minecraft { height: 60%; width: 36%; left: 52%; z-index: 2; bottom: -1%; }
.persona--minecraft .persona__float { animation-delay: .75s; }
.persona--roblox { height: 52%; width: 39%; left: 15%; z-index: 3; bottom: -2%; }
.persona--roblox .persona__float { animation-delay: .95s; }

.stage::after {
    content: ""; position: absolute; left: 8%; right: 8%; bottom: -14px; height: 34px; z-index: 0;
    background: radial-gradient(closest-side, var(--ground), transparent); pointer-events: none;
}
.stage.is-hovering { cursor: pointer; }
.persona.is-hover img { transform: scale(1.035); filter: var(--persona-filter) drop-shadow(0 0 18px var(--accent)); }
.stage.has-active .persona:not(.is-active) img { opacity: .18; filter: grayscale(1) blur(3px); }
.stage.has-active .persona.is-active { z-index: 6; }
.stage.has-active .persona.is-active img { transform: scale(1.04); filter: var(--persona-filter) drop-shadow(0 0 26px var(--accent)); }
.stage.has-active .stage__circle { filter: saturate(.6) brightness(.7); }

/* hotspots: keyboard/touch-friendly entry points on each character */
.hotspot {
    position: absolute; pointer-events: auto;
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 0; padding: 6px;
    opacity: 0; animation: fadeIn .6s var(--ease) 1.8s forwards;
}
.hotspot__dot {
    width: 14px; height: 14px; border-radius: 50%; background: var(--accent); position: relative; flex: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
}
.hotspot__dot::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent);
    animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.hotspot__label {
    font-family: var(--font-display); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
    background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); padding: 5px 9px;
    white-space: nowrap; transition: background .3s, color .3s;
}
.hotspot:hover .hotspot__label { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.persona--thxplay .hotspot { top: 22%; left: 62%; }
.persona--minecraft .hotspot { top: 10%; left: 68%; }
.persona--roblox .hotspot { top: 12%; right: 76%; flex-direction: row-reverse; }
.stage.has-active .hotspot { opacity: 0 !important; pointer-events: none; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-50%); } to { opacity: 1; transform: translateY(-62%); } }

/* ---------- Orbit popover (floating social buttons) ---------- */
.orbit { position: fixed; inset: 0; z-index: 80; }
.orbit[hidden] { display: none; }
.orbit:not(.is-open) { pointer-events: none; }
.orbit__scrim {
    position: absolute; inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent 0, color-mix(in srgb, var(--bg) 55%, transparent) 260px);
    opacity: 0; transition: opacity .4s var(--ease);
}
.orbit.is-open .orbit__scrim { opacity: 1; }
.orbit__wheel { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 0; height: 0; }
.orbit__core {
    position: absolute; left: 0; top: 0; translate: -50% -50%;
    width: 84px; height: 84px; border-radius: 50%;
    background: var(--text); color: var(--bg); border: 0;
    display: grid; place-items: center; align-content: center; gap: 2px;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--text) 10%, transparent), var(--shadow);
    transform: scale(0); transition: transform .45s var(--ease-back);
}
.orbit.is-open .orbit__core { transform: scale(1); }
.orbit__tag { font-family: var(--font-display); font-size: .52rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.orbit__x { width: 16px; height: 16px; }
.orbit__items { position: absolute; left: 0; top: 0; }
.orbit__btn {
    --r: 118px;
    position: absolute; left: 0; top: 0;
    display: grid; justify-items: center; gap: 6px;
    translate: -50% -27px;
    transform: rotate(var(--a)) translate(0) rotate(calc(var(--a) * -1)) scale(.2);
    opacity: 0;
    transition: transform .55s var(--ease-back), opacity .3s var(--ease);
    transition-delay: calc(var(--i) * 45ms);
}
.orbit.is-open .orbit__btn { transform: rotate(var(--a)) translate(var(--r)) rotate(calc(var(--a) * -1)) scale(1); opacity: 1; }
.orbit__icon {
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    transition: background .25s, color .25s, transform .3s var(--ease-back), border-color .25s;
}
.orbit__icon .icon { width: 22px; height: 22px; }
.orbit__btn:hover .orbit__icon,
.orbit__btn:focus-visible .orbit__icon { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: scale(1.12); }
.orbit__btn:focus-visible { outline: none; }
.orbit__label {
    font-family: var(--font-display); font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
    background: var(--bg); border: 1px solid var(--line); padding: 3px 7px; white-space: nowrap;
}
.orbit__empty {
    position: absolute; top: 60px; left: 0; translate: -50% 0; white-space: nowrap; font-size: .8rem;
    background: var(--surface); padding: 6px 12px; border: 1px solid var(--line);
}

/* =========================================================
   X RIBBONS
   ========================================================= */
.ribbons { position: relative; height: clamp(150px, 20vw, 240px); overflow: hidden; margin-block: -20px; z-index: 2; }
.ribbon {
    position: absolute; left: -10%; right: -10%; top: 50%;
    padding: 14px 0; overflow: hidden;
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    font-size: clamp(1rem, 2.4vw, 1.6rem); letter-spacing: .06em;
}
.ribbon--a { background: var(--text); color: var(--bg); transform: translateY(-50%) rotate(-4deg); z-index: 2; }
.ribbon--b { background: var(--accent); color: var(--accent-ink); transform: translateY(-50%) rotate(4deg); }
.ribbon__track { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 34s linear infinite; }
.ribbon--b .ribbon__track { animation-direction: reverse; animation-duration: 40s; }
.ribbon__track i { font-style: normal; opacity: .5; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding-block: clamp(80px, 12vw, 160px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 120px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 400; display: flex; align-items: baseline; gap: .5em; flex-wrap: wrap; }
.section-title strong { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 900; letter-spacing: -.03em; line-height: .9; }
.section-title--xl strong { font-size: clamp(3rem, 10vw, 7.5rem); }
.section-sub { color: var(--muted); max-width: 36ch; margin: 0; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; border: 1px dashed var(--line); }

.side-label {
    position: absolute; top: 50%; font-family: var(--font-display); font-size: .58rem; letter-spacing: .32em;
    text-transform: uppercase; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 12px;
}
.side-label::before { content: ""; width: 6px; height: 6px; background: var(--text); }
.side-label--left { left: 22px; transform: rotate(-90deg) translateX(-50%); transform-origin: left top; }
.side-label--right { right: 22px; transform: rotate(90deg) translateX(50%); transform-origin: right top; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.about__headline { position: relative; text-align: center; padding: clamp(40px, 7vw, 90px) 0; }
.about__headline h2 {
    font-size: clamp(2.2rem, 5.4vw, 4.4rem); font-weight: 800; text-transform: uppercase; line-height: 1.05;
    position: relative; max-width: 11ch; margin-inline: auto;
}
.about__orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.about__orbit ellipse { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.about__orbit-dot { fill: var(--accent); }
.about__body p { color: var(--muted); font-size: 1.05rem; }
.about__body .eyebrow { margin-bottom: 1.6em; font-size: .66rem; }
.about__worlds { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.chip {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px;
    border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px;
    font-family: var(--font-display); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
    transition: border-color .3s, transform .3s var(--ease);
}
.chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--accent-soft); }
.chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.about__nav {
    display: flex; justify-content: space-between; align-items: center; margin-top: 60px;
    font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 3vw, 2rem); text-transform: uppercase;
    color: color-mix(in srgb, var(--text) 14%, transparent);
}
.about__nav .icon { color: var(--muted); width: 22px; height: 22px; }

/* Project cards live in card.css (shared with the admin preview) */

/* ---------- Connect ---------- */
.connect { overflow: hidden; }
.worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); position: relative; }
.world {
    position: relative; border: 1px solid var(--line-strong); background: var(--surface); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .5s var(--ease), border-color .4s;
}
.world:hover { transform: translateY(-6px); border-color: var(--accent); }
.world__art {
    position: relative; height: 280px; overflow: hidden;
    background:
        radial-gradient(circle at 50% 110%, var(--accent) 0 34%, transparent 34.5%),
        linear-gradient(180deg, var(--bg-2), var(--surface));
}
.world__art img { position: absolute; left: 50%; bottom: -36%; height: 130%; width: auto; max-width: none; translate: -50% 0; filter: var(--persona-filter); transition: transform .7s var(--ease); }
.world--thxplay .world__art img { height: 170%; bottom: -78%; }
.world:hover .world__art img { transform: translateY(-14px) scale(1.04); }
.world__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.world__num { font-family: var(--font-display); font-size: .62rem; color: var(--accent-fg); letter-spacing: .2em; }
.world h3 { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; margin: 6px 0 18px; }
.world__links { display: grid; gap: 8px; }
.world__link {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line);
    font-size: .9rem; transition: background .3s, color .3s, border-color .3s, padding .3s var(--ease);
}
.world__link .icon { width: 18px; height: 18px; }
.world__link span { flex: 1; }
.world__arrow { opacity: .4; transition: transform .3s var(--ease), opacity .3s; }
.world__link:hover { background: var(--text); color: var(--bg); border-color: var(--text); padding-left: 18px; }
.world__link:hover .world__arrow { opacity: 1; transform: translate(2px, -2px); }

/* ---------- Page hero / filters ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 8vw, 100px)) 0 clamp(20px, 4vw, 40px); overflow: hidden; }
.filters { margin-top: 32px; max-width: 520px; }
.search { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-strong); padding: 0 16px; background: var(--surface); transition: border-color .3s; }
.search:focus-within { border-color: var(--accent); }
.search .icon { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 14px 0; font: inherit; color: var(--text); outline: none; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.tab {
    padding: 8px 14px; border: 1px solid var(--line); font-family: var(--font-display); font-size: .6rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: all .3s;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pager__btn {
    min-width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line);
    font-family: var(--font-display); font-size: .7rem; padding: 0 12px; transition: all .3s;
}
.pager__btn:hover { border-color: var(--line-strong); }
.pager__btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager__btn.is-disabled { opacity: .35; }
.pager__gap { align-self: center; color: var(--muted); }

/* ---------- Single post ---------- */
.post__head { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(30px, 6vw, 70px)) 0 clamp(30px, 5vw, 50px); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; margin-bottom: 36px; transition: color .3s, gap .3s; }
.back:hover { color: var(--text); gap: 12px; }
.draft-note { display: inline-block; background: #f59e0b; color: #000; font-size: .75rem; padding: 4px 10px; font-weight: 600; }
.post__meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .8rem; margin-bottom: 18px; }
.post__title { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.post__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; margin-bottom: 28px; }
.post__cover { margin-block: 0 clamp(40px, 6vw, 70px); }
.post__cover img { width: 100%; max-height: 640px; object-fit: cover; border: 1px solid var(--line); }
.tag {
    display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 4px 10px;
    font-family: var(--font-display); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
}
.tag--ghost { background: none; color: var(--muted); border: 1px solid var(--line); }
.tag--ghost:hover { color: var(--text); border-color: var(--line-strong); }
.post__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }

.prose { font-size: 1.08rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose a { color: var(--accent-fg); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li::marker { color: var(--accent-fg); }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.prose img { border: 1px solid var(--line); margin-block: 1.4em; }
.prose code { background: var(--surface-2); padding: 2px 6px; font-size: .9em; }
.prose pre { background: var(--surface); border: 1px solid var(--line); padding: 18px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 40px; }
.gallery__item { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 100%; object-fit: contain; }
.lightbox__close { position: absolute; top: 16px; right: 16px; color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------- Footer ---------- */
.footer { background: var(--bg); }
.footer__bar { padding-block: 22px; text-align: center; font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.footer__bar strong { color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .14em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
    .hero__inner { grid-template-columns: minmax(0, 1fr) auto; }
    .hero__right { display: none; }
}

@media (max-width: 900px) {
    .nav { grid-template-columns: 1fr auto; }
    .nav__links { display: none; }
    .nav__burger { display: inline-grid; }
    .nav__admin { display: none; }

    .hero__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 20px; gap: 6px; }
    .hero__left { padding-left: 0; text-align: center; display: grid; justify-items: center; }
    .hero__vertical { display: none; }
    .hero__title { font-size: clamp(3.4rem, 17vw, 6rem); }
    .hero__text { font-size: .92rem; }
    .hero__cta { justify-content: center; margin-top: 14px; }
    .stage {
        --h: min(62vh, calc((100vw - 24px) * 1.16), 640px);
        justify-self: center;
    }
    .hero__word { top: 64%; }
    .hero__stats { gap: 18px; }
    .stat span { font-size: .55rem; }

    .about__grid { grid-template-columns: 1fr; }
    .side-label { display: none; }
    .cards, .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    :root { --nav-h: 64px; }
    .nav__brand span { display: none; }
    .hero__text { display: none; }
    .stage { --h: min(60vh, calc((100vw - 24px) * 1.16), 560px); }
    .hero__stats .stat:nth-child(2) { display: none; }
    .hero__scroll { width: 40px; height: 40px; }
    .hotspot__label { display: none; }
    .hotspot { padding: 10px; }
    .cards, .worlds { grid-template-columns: 1fr; }
    .world__art { height: 230px; }
    .orbit__btn { --r: 104px; }
    .orbit__icon { width: 48px; height: 48px; }
    .edition::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- About: Visi Misi + profile chip ---------- */
.about__vm { justify-content: center; margin-bottom: 1.4em; position: relative; }
.about__headline h2 { max-width: 12ch; }
.chip--profile { border-color: var(--accent); background: var(--accent-soft); }
.chip small {
    font-size: .5rem; letter-spacing: .14em; padding: 3px 6px; margin-left: 2px;
    background: var(--accent); color: var(--accent-ink);
}

/* ---------- Profile modal (LinkedIn-style) ---------- */
.profile { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; }
.profile__scrim {
    position: absolute; inset: 0; background: color-mix(in srgb, #000 70%, transparent);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .35s var(--ease);
}
.profile__card {
    position: relative; width: 100%; max-width: 720px; max-height: min(88vh, 860px); overflow: auto;
    background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .35s var(--ease), transform .5s var(--ease);
    overscroll-behavior: contain; outline: none;
}
.profile.is-open .profile__scrim { opacity: 1; }
.profile.is-open .profile__card { opacity: 1; transform: none; }
.profile__close { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(0, 0, 0, .35); color: #fff; border-color: rgba(255, 255, 255, .3); }
.profile__banner {
    position: relative; height: 150px; overflow: hidden;
    background: linear-gradient(120deg, var(--accent-2), var(--accent) 55%, #1a0b3d);
    display: grid; place-items: end end; padding: 0 24px 12px 180px;
}
.profile__x i { position: absolute; left: 50%; top: 50%; width: 160%; height: 1px; background: rgba(255, 255, 255, .28); }
.profile__x i:first-child { transform: translate(-50%, -50%) rotate(16deg); }
.profile__x i:last-child { transform: translate(-50%, -50%) rotate(-16deg); }
.profile__motto {
    position: relative; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(.9rem, 3vw, 1.5rem); color: rgba(255, 255, 255, .28); white-space: nowrap; text-align: right;
}
.profile__head { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; padding: 0 28px 24px; border-bottom: 1px solid var(--line); }
.profile__avatar {
    width: 128px; height: 128px; margin-top: -64px; border-radius: 50%; overflow: hidden; position: relative;
    border: 4px solid var(--surface); background: radial-gradient(circle at 50% 120%, var(--accent) 0 55%, var(--bg-2) 56%);
}
.profile__avatar img { position: absolute; left: 50%; top: 8%; width: 92%; max-width: none; height: auto; translate: -50% 0; }
.profile__id { padding-top: 14px; min-width: 0; }
.profile__id h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; line-height: 1.2; }
.profile__nick { color: var(--muted); margin: 4px 0 8px; font-size: .92rem; }
.profile__nick strong { color: var(--text); }
.profile__headline { margin: 0 0 6px; }
.profile__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; margin: 0; }
.profile__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.profile__actions .btn:hover .icon { transform: none; }
.profile__socials { display: flex; gap: 6px; flex-wrap: wrap; }
.profile__socials a {
    width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
    color: var(--muted); transition: color .25s, border-color .25s;
}
.profile__socials a:hover { color: var(--text); border-color: var(--line-strong); }
.profile__socials .icon { width: 15px; height: 15px; }
.profile__sec { padding: 22px 28px; border-bottom: 1px solid var(--line); }
.profile__sec h3 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.profile__sec p { opacity: .9; }
.profile__sec p:last-child { margin-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; }
.timeline__logo {
    width: 44px; height: 44px; flex: none; display: grid; place-items: center;
    background: var(--accent-soft); border: 1px solid var(--line-strong);
    font-family: var(--font-display); font-size: .7rem; font-weight: 800; color: var(--accent-fg);
}
.timeline strong { display: block; }
.timeline span { display: block; font-size: .9rem; }
.timeline small { display: block; color: var(--muted); font-size: .8rem; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skills span { border: 1px solid var(--line-strong); padding: 6px 12px; font-size: .82rem; border-radius: 999px; }
.profile__quote {
    margin: 0; padding: 26px 28px 30px; font-family: var(--font-display); font-weight: 800;
    font-size: clamp(1.2rem, 3.4vw, 1.7rem); line-height: 1.2;
    background: linear-gradient(120deg, var(--accent-soft), transparent);
}
.profile__quote small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-fg); margin-bottom: 8px; }

@media (max-width: 560px) {
    .profile { padding: 0; place-items: end stretch; }
    .profile__card { max-height: 92vh; transform: translateY(60px); }
    .profile__head { grid-template-columns: 1fr; padding: 0 20px 20px; }
    .profile__avatar { width: 104px; height: 104px; margin-top: -52px; }
    .profile__id { padding-top: 0; }
    .profile__sec, .profile__quote { padding-inline: 20px; }
    .profile__banner { height: 120px; padding: 0 16px 10px 130px; }
}

/* =========================================================
   Modern social icons — monochrome glass tiles at rest,
   brand colour on hover/focus.
   ========================================================= */
[data-brand] { --brand: var(--accent); --brand-ink: #fff; --brand-glow: var(--accent); }
[data-brand="instagram"] { --brand: radial-gradient(circle at 30% 110%, #ffdb80 0%, #f77737 25%, #e1306c 50%, #c13584 70%, #5851db 100%); --brand-glow: #e1306c; }
[data-brand="tiktok"] { --brand: #010101; --brand-glow: #25f4ee; }
[data-brand="youtube"] { --brand: #ff0033; --brand-glow: #ff0033; }
[data-brand="facebook"] { --brand: #1877f2; --brand-glow: #1877f2; }
[data-brand="threads"], [data-brand="x"] { --brand: #000; --brand-glow: rgba(255, 255, 255, .35); }
[data-brand="linkedin"] { --brand: #0a66c2; --brand-glow: #0a66c2; }
[data-brand="roblox"] { --brand: #111; --brand-glow: rgba(255, 255, 255, .35); }
[data-brand="users"] { --brand: linear-gradient(135deg, #6d3fd6, #2e1065); --brand-glow: #6d3fd6; }
[data-brand="minecraft"] { --brand: linear-gradient(180deg, #6aa84f 0 38%, #866043 38%); --brand-glow: #6aa84f; }
[data-brand="discord"] { --brand: #5865f2; --brand-glow: #5865f2; }
[data-theme="light"] [data-brand="threads"], [data-theme="light"] [data-brand="x"],
[data-theme="light"] [data-brand="tiktok"], [data-theme="light"] [data-brand="roblox"] { --brand-glow: rgba(0, 0, 0, .35); }

.s-tile {
    position: relative; display: grid; place-items: center; flex: none;
    width: 40px; height: 40px; border-radius: 13px;
    color: var(--text);
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--text) 9%, transparent), color-mix(in srgb, var(--text) 2%, transparent)),
        var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent), 0 6px 16px -10px rgba(0, 0, 0, .6);
    transition: transform .35s var(--ease-back), box-shadow .35s, color .25s, border-color .25s;
    overflow: hidden;
}
.s-tile::before {
    content: ""; position: absolute; inset: 0; background: var(--brand); opacity: 0; transition: opacity .3s;
}
.s-tile .icon { position: relative; width: 18px; height: 18px; }
[data-brand]:hover .s-tile, [data-brand]:focus-visible .s-tile, .s-tile[data-brand]:hover, .s-tile[data-brand]:focus-visible {
    color: var(--brand-ink); border-color: transparent; transform: translateY(-2px);
    box-shadow: 0 10px 26px -8px var(--brand-glow);
}
[data-brand]:hover .s-tile::before, [data-brand]:focus-visible .s-tile::before, .s-tile[data-brand]:hover::before, .s-tile[data-brand]:focus-visible::before { opacity: 1; }

/* orbit (hero popover) */
.orbit__icon.s-tile { width: 58px; height: 58px; border-radius: 19px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.orbit__icon.s-tile .icon { width: 22px; height: 22px; }
.orbit__btn:hover .orbit__icon.s-tile, .orbit__btn:focus-visible .orbit__icon.s-tile { transform: translateY(-3px) scale(1.08); background: color-mix(in srgb, var(--surface) 82%, transparent); }
.orbit__label { border-radius: 999px; padding: 4px 9px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: color-mix(in srgb, var(--bg) 80%, transparent); }

/* connect cards */
.world__link { border-radius: 14px; padding: 8px 12px 8px 8px; }
.world__link .s-tile { width: 36px; height: 36px; border-radius: 11px; flex: none; }
.world__link .s-tile .icon { width: 16px; height: 16px; }
.world__link:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); padding-left: 8px; }

/* profile + mobile menu + footer */
.profile__socials a { width: auto; height: auto; border: 0; border-radius: 0; }
.profile__socials .s-tile { width: 38px; height: 38px; border-radius: 12px; }
.profile__socials .s-tile .icon { width: 16px; height: 16px; }
.menu__social { gap: 10px; }
.menu__social a { width: auto; height: auto; }
.menu__social .s-tile { width: 46px; height: 46px; border-radius: 15px; }
.menu__social .s-tile .icon { width: 20px; height: 20px; }

/* ---- project page: download buttons + markdown tables ---- */
.post__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn--dl { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); }
.btn--dl .icon { color: var(--accent-fg); }
.btn--dl:hover { border-color: var(--accent); background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn--dl:hover .icon { color: #fff; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-block: 1.6em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.5; }
.prose th, .prose td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td + td, .prose th + th { border-left: 1px solid var(--line); }
.prose del { opacity: .6; }
.prose input[type=checkbox] { accent-color: var(--accent); margin-right: 6px; }
.prose li:has(> input[type=checkbox]) { list-style: none; margin-left: -1.2em; }
.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul { margin-top: .4em; }
.prose kbd { font-size: .85em; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 4px; }

.project-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 20px; }
.project-filters .search { flex: 1 1 250px; margin: 0; }
.project-filters select {
    font: inherit; color: var(--text); background: var(--surface);
    border: 1px solid var(--line); border-radius: 5px; min-height: 42px; padding: 8px 12px;
}
.link-hub { min-height: 72vh; }
.link-hub__content { position: relative; max-width: 660px; }
.link-hub__logo { width: 132px; height: auto; margin: 0 auto 18px; }
.link-hub h1 { text-align: center; margin-bottom: 32px; }
.link-hub__group { margin-top: 28px; }
.link-hub__group h2 { font-size: .95rem; margin: 0 0 9px; }
.link-hub__entry {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    padding: 13px 16px; margin: 8px 0; background: var(--surface);
    border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere;
}
.link-hub__entry:hover { border-color: var(--accent); }
.link-hub__entry small { display: block; color: var(--muted); margin-top: 3px; }
