/*
    * Zane Wesley — shared styles (refresh)
    * Same slate + coral vibe, more motion and polish.
    * Legacy classes (.card, .link-card, .btn, #connect-form, ...) are kept so other pages keep working.
    * New visual treatments are scoped under body.refresh / body.library.
*/

:root {
    --hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
    --slate: #4F5D75;
    --ink: #323235;
    --muted: #5e5e63;
    --card: #eceff1;
    --coral: 239, 131, 84;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    font-size: 18px;
    background: #f6f6f6;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 96px;
    overflow-x: clip;
}

body {
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

a:focus-visible,
button:focus-visible,
.menu-btn input:focus-visible {
    outline: 3px solid rgba(var(--coral), 0.7);
    outline-offset: 3px;
}

/* ---------- scroll progress ---------- */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 50;
    pointer-events: none;
    transform-origin: 0 50%;
    transform: scaleX(var(--p, 0));
    background: linear-gradient(90deg, rgba(var(--coral), 0.95), rgba(var(--coral), 0.5));
}

/* ---------- nav ---------- */
.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3;
}

.nav-row img {
    width: 70px;
    margin: 15px;
    display: block;
    position: relative;
    clip-path: circle(40%);
    filter: brightness(0) saturate(100%) invert(36%) sepia(7%) saturate(1724%) hue-rotate(179deg) brightness(94%) contrast(90%);
    transition: transform 0.6s var(--hover-ease);
}

.nav-row a:hover img {
    transform: rotate(-8deg) scale(1.08);
}

.menu-btn {
    clip-path: circle(30%);
    width: fit-content;
}

/* visually hidden but still keyboard-focusable */
.menu-btn input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.menu-btn input:focus-visible {
    outline: none;
}

.menu-btn input:focus-visible+svg path {
    stroke: rgb(var(--coral));
}

.menu-btn label {
    position: relative;
    display: block;
    cursor: pointer;
    width: 100px;
    height: 100px;
}

.menu-btn path {
    fill: none;
    stroke: #4F5D75;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    --length: 24;
    --offset: -38;
    stroke-dasharray: var(--length) var(--total-length);
    stroke-dashoffset: var(--offset);
    transition: all .8s cubic-bezier(.645, .045, .355, 1);
}

.menu-btn input:checked+svg .line--1,
.menu-btn input:checked+svg .line--3 {
    --length: 22.627416998;
}

.menu-btn input:checked+svg .line--2 {
    --length: 0;
}

.menu-btn .line--1,
.menu-btn .line--3 {
    --total-length: 111.22813415527344;
    --offset: -50.22813415527344;
}

.menu-btn .line--2 {
    --total-length: 99;
}

.menu-btn input:checked+svg path {
    transform: translateX(30px);
}

.menu-btn input:checked+svg .line--1,
.menu-btn input:checked+svg .line--3 {
    --offset: -16.9705627485;
}

.menu-btn input:checked+svg .line--2 {
    --offset: -20;
}

/* ---------- hero ---------- */
header {
    margin: 140px 96px 150px 96px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header h1 {
    font-size: 70px;
    letter-spacing: -1.25px;
    line-height: 140%;
    margin-bottom: 32px;
    margin-top: 100px;
    color: #4F5D75;
}

header p {
    max-width: 500px;
    line-height: 150%;
}

.highlight {
    background-color: rgba(239, 131, 84, 0.5);
}

.highlight-u {
    border-bottom: 3px solid rgba(239, 131, 84, 0.5);
}

body.refresh header {
    position: relative;
    isolation: isolate;
    margin: 150px 96px 80px;
}

body.refresh header h1 {
    margin-top: 28px;
    margin-bottom: 28px;
    font-size: clamp(44px, 10vw, 76px);
    line-height: 120%;
}

body.refresh header p {
    max-width: 520px;
    font-size: 19px;
    line-height: 160%;
    color: var(--ink);
}

/* soft drifting color blobs behind the hero */
.hero-bg {
    position: absolute;
    inset: -60px 0 -40px;
    z-index: -1;
    pointer-events: none;
}

.hero-bg i {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    transition: translate 1.2s var(--hover-ease);
}

.hero-bg i:nth-child(1) {
    width: 340px;
    height: 340px;
    left: 4%;
    top: 12%;
    background: rgba(239, 131, 84, 0.34);
    translate: calc(var(--px, 0) * -26px) calc(var(--py, 0) * -26px);
    animation: roamA 22s ease-in-out infinite, glow 7s ease-in-out infinite;
}

.hero-bg i:nth-child(2) {
    width: 400px;
    height: 400px;
    right: 2%;
    top: 22%;
    background: rgba(79, 93, 117, 0.2);
    translate: calc(var(--px, 0) * 30px) calc(var(--py, 0) * 20px);
    animation: drift 20s ease-in-out infinite alternate-reverse;
}

.hero-bg i:nth-child(3) {
    width: 240px;
    height: 240px;
    left: 42%;
    bottom: 0;
    background: rgba(239, 131, 84, 0.26);
    animation: roamB 27s ease-in-out infinite, glow 9s ease-in-out -3s infinite;
}

@keyframes roamA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(70px, -34px) scale(1.14); }
    50% { transform: translate(24px, 56px) scale(0.94); }
    75% { transform: translate(-56px, 14px) scale(1.08); }
}

@keyframes roamB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(-90px, -40px) scale(1.2); }
    60% { transform: translate(60px, -20px) scale(0.9); }
}

@keyframes glow {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes drift {
    to {
        transform: translate(50px, -36px) scale(1.12);
    }
}

.status-pill,
.crumb {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.5em 1.1em;
    border-radius: 999px;
    background: #fff;
    border: 3px solid var(--card);
    font-size: 14px;
    font-weight: 600;
    color: var(--slate);
    text-decoration: none;
    transition: transform 0.4s var(--hover-ease), box-shadow 0.4s var(--hover-ease);
}

.status-pill:hover,
.crumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.status-pill .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3fbf86;
    animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
    0% {
        box-shadow: 0 0 0 0 rgba(63, 191, 134, 0.55);
    }

    80%,
    100% {
        box-shadow: 0 0 0 10px rgba(63, 191, 134, 0);
    }
}

/* word-by-word title reveal (only when JS is running) */
.js header h1 .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0 0.04em 0.14em;
    margin-bottom: -0.14em;
}

.js header h1 .w>span {
    display: inline-block;
    transform: translateY(115%);
    animation: wordUp 0.95s var(--hover-ease) forwards;
    animation-delay: calc(var(--i) * 80ms + 200ms);
}

@keyframes wordUp {
    to {
        transform: none;
    }
}

/* highlighter + underline "draw in" */
.js body.refresh header .highlight,
.js body.refresh header .highlight-u {
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.js body.refresh header .highlight {
    background: linear-gradient(rgba(var(--coral), 0.5), rgba(var(--coral), 0.5)) no-repeat left center / 0% 100%;
    animation: markIn 0.9s var(--hover-ease) 1s forwards;
}

.js body.refresh header .highlight-u {
    border-bottom: 0;
    background: linear-gradient(rgba(var(--coral), 0.5), rgba(var(--coral), 0.5)) no-repeat left bottom / 0% 3px;
    animation: underIn 0.8s var(--hover-ease) forwards;
    animation-delay: calc(1.3s + var(--k, 0) * 0.22s);
}

@keyframes markIn {
    to {
        background-size: 100% 100%;
    }
}

@keyframes underIn {
    to {
        background-size: 100% 3px;
    }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.hero-cta .btn {
    padding: 0.6em 1.4em;
    border-radius: 999px;
    border-width: 3px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--slate);
}

.hero-cta .btn.primary {
    color: #fff;
}

.hero-cta .btn:after {
    content: "→";
    margin: 0 0 0 8px;
    font-weight: 700;
}

.hero-cta .btn.primary:after {
    filter: none;
}

.hero-cta .btn:hover {
    transform: translateY(-2px) scale(1.03);
}

.hero-cta .btn:hover:after {
    margin-left: 12px;
    margin-right: -4px;
}

/* ---------- main + sections ---------- */
main {
    padding: 0 96px;
}

section {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

section:first-child {
    margin-top: 200px;
}

section h2 {
    color: #4F5D75;
    padding: 70px 0;
}

body.refresh section h2 {
    padding: 90px 0 44px;
    font-size: clamp(30px, 5vw, 42px);
    letter-spacing: -0.02em;
}

body.refresh section h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 5px;
    margin-top: 16px;
    border-radius: 3px;
    background: rgba(var(--coral), 0.5);
}

body.refresh #professional {
    margin-top: 40px;
}

/* ---------- cards ---------- */
section .card {
    background-color: #eceff1;
    border-radius: 24px;
    max-width: 1000px;
    width: 100%;
    max-height: 440px;
    overflow: hidden;
    padding: 2em 64px;
    margin: 0 auto;
    display: flex;
    color: #5e5e63;
    margin-bottom: 96px;
}

section .card {
    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

section .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

section .card div {
    width: 50%;
    min-width: 50%;
}

section .card h3 {
    font-size: 36px;
    line-height: 120%;
    margin-bottom: 12px;
    padding: 0;
    letter-spacing: 0.01em;
    color: #323235;
}

section .card .detail {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 160%;
}

section .card .detail span {
    margin: 0 8px;
}

section .card p {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 170%;
}

section .card img {
    filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.122));
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

section .card img {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    translate: 0 var(--py, 0px);
}

section .card:hover img {
    transform: translateY(-6px) !important;
}

section .card#uuredesign img {
    width: 53%;
    rotate: 10deg;
}

section .card#ltgifts img {
    width: 90%;
}

body.refresh section .card {
    position: relative;
    background: linear-gradient(160deg, #f1f4f6, #e6eaed);
    border: 1px solid rgba(79, 93, 117, 0.08);
}

/* small pills: status + about chips */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.35em 0.9em;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: #fff;
    border: 2px solid var(--card);
    color: var(--slate);
}

section .card .chip {
    margin-bottom: 14px;
    width: fit-content;
    min-width: 0;
}

.chip-live::before,
.chip-wip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fbf86;
}

.chip-wip::before {
    background: #f2b23c;
}

/* ---------- buttons ---------- */
.btn {
    text-decoration: none;
    text-decoration-thickness: 3px;
    text-decoration-color: transparent;
    cursor: pointer;
    color: #000;
    background-color: #fff;
    border: 3px solid #eceff1;
    border-radius: 12px;
    justify-content: center;
    align-items: center;
    padding: 15px 24px;
    transition: color .2s;
    display: flex;
    width: fit-content;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.btn,
.link-card {
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: url("data:image/svg+xml;base64,Cjxzdmcgd2lkdGg9IjI0IiBoZWlnaHQ9IjI1IiB2aWV3Qm94PSIwIDAgMjQgMjUiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0zLjc1IDEyLjVIMjAuMjUiIHN0cm9rZT0iIzVFNUU2MyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTEzLjUgNS43NUwyMC4yNSAxMi41TDEzLjUgMTkuMjUiIHN0cm9rZT0iIzVFNUU2MyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+");
    margin-left: 9px;
    margin-top: 2px;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.btn:hover {
    transform: scale(1.05);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: rgba(239, 131, 84, 0.5);
}

.btn:hover:after {
    margin-left: 15px;
    margin-right: -9px;
}

.btn.primary {
    background: var(--slate);
    border-color: var(--slate);
    color: #fff;
}

.btn.primary:after {
    filter: brightness(0) invert(1);
}

.btn.primary:hover {
    text-decoration-color: rgba(var(--coral), 0.9);
}

.center {
    display: flex;
    justify-content: center;
    margin: 56px 0 24px;
}

/* cursor-following spotlight */
.bg-cursor {
    position: relative;
}

.bg-cursor::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 50%),
            rgba(79, 93, 117, 0.15),
            transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--hover-ease);
    pointer-events: none;
}

.bg-cursor:hover::before {
    opacity: 1;
}

.btn.primary.bg-cursor::before {
    background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 60%);
}

.btn.disabled {
    cursor: not-allowed;
    pointer-events: none;
    background-color: transparent;
    padding: 0;
    font-style: italic;
    opacity: 0.8;
}

.btn.disabled:after {
    display: none;
}

/* ---------- marquee ---------- */
.marquee-wrap {
    max-width: 1100px;
    margin: 0 auto 20px;
}

.eyebrow {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a8f98;
    margin-bottom: 16px;
}

.marquee {
    overflow: auto hidden;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    scrollbar-width: none;
}

.marquee::-webkit-scrollbar {
    display: none;
}

.marquee-track {
    display: flex;
    width: max-content;
}

.js .marquee {
    overflow: hidden;
}

.js .marquee-track {
    animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 14px;
    padding: 8px 20px 8px 8px;
    background: #fff;
    border: 3px solid var(--card);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: var(--slate);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.4s var(--hover-ease), box-shadow 0.4s var(--hover-ease), border-color 0.4s;
}

.marquee-track a:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--coral), 0.45);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.marquee-track img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 auto 40px;
    max-width: 1000px;
}

.stat {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 3px solid var(--card);
    border-radius: 24px;
    padding: 22px 26px;
}

.stat b {
    display: block;
    font-size: clamp(30px, 4.4vw, 42px);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--slate);
    font-variant-numeric: tabular-nums;
}

.stat span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: var(--muted);
}

/* ---------- link cards (bento) ---------- */
.link-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.link-card {
    width: calc(40% - 2em);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    margin: 1em;
    color: #4F5D75;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.link-card:hover {
    box-shadow: 0 0 0 0 #e6ebef, 0 4px 24px 0 #00000014;
    transform: scale(1.05);
}

.link-card img {
    width: 70%;
    max-width: calc(200px - 2em);
    margin: 1em;
    border-radius: 14px;
    object-fit: contain;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-card:hover img,
.link-wrapper:hover img {
    transform: translateY(-6px);
}

.link-card h3 {
    flex-grow: 0.5;
    padding: 0 1em 1em;
}

.link-card.wide {
    width: calc(60% - 2em);
    flex-direction: row;
    justify-content: space-around;
}

.link-card.wide:nth-child(even) {
    flex-direction: row-reverse;
}

.link-card.wide h3 {
    padding: 1em;
}

.link-card .lc-text {
    flex-grow: 0.5;
    padding: 0 1em 1em;
    text-align: center;
}

.link-card.wide .lc-text {
    padding: 1em;
    text-align: left;
}

.link-card .lc-text h3 {
    padding: 0;
}

.link-card .meta {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
}

body.refresh .link-card::after {
    content: "↗";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--slate);
    background: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: all 0.5s var(--hover-ease);
}

body.refresh .link-card:hover::after {
    opacity: 1;
    transform: none;
}

body.refresh .link-card img {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

section p {
    color: #323235;
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 170%;
}

/* ---------- about ---------- */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

body.refresh #about p {
    max-width: 68ch;
}

/* ---------- contact panel ---------- */
body.refresh #work {
    position: relative;
    overflow: hidden;
    margin: 120px auto 56px;
    padding: 72px 64px 64px;
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(150deg, #56647d, #3e4a60);
    box-shadow: 0 30px 70px -24px rgba(48, 58, 78, 0.5);
}

body.refresh #work::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px 420px at var(--mx, 85%) var(--my, 0%), rgba(var(--coral), 0.34), transparent 62%);
    pointer-events: none;
    opacity: 1;
}

body.refresh #work>* {
    position: relative;
}

body.refresh #work h2 {
    color: #fff;
    padding: 0 0 20px;
    font-size: clamp(30px, 5vw, 46px);
    max-width: 14em;
}

body.refresh #work h2::after {
    background: rgba(var(--coral), 0.8);
}

body.refresh #work p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 60ch;
}

body.refresh #work .btn {
    margin-top: 12px;
    background: #fff;
    border-color: #fff;
}

/* ---------- socials / footer ---------- */
.socials {
    display: flex;
    justify-content: center;
    align-items: center;
}

.socials svg {
    width: 40px;
    margin: 1em;
}

.socials svg path {
    fill: #4F5D75;
    transition: fill 0.3s;
}

.socials svg:hover path {
    fill: #000;
}

body.refresh .socials a {
    display: inline-flex;
    transition: transform 0.5s var(--hover-ease);
}

body.refresh .socials a:hover {
    transform: translateY(-4px);
}

body.refresh .socials a:hover svg path {
    fill: rgb(var(--coral));
}

.site-footer {
    text-align: center;
    color: #8a8f98;
    font-size: 14px;
    padding: 4px 0 64px;
}

.banner {
    display: flex;
    align-items: center;
    padding: 1em 0;
}

.banner p {
    margin-right: 2em;
    font-size: 1.2em;
}

/* ---------- bubble menu ---------- */
.bubble,
.bubble-menu {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -100px) scale(0);
    width: 60px;
    height: 60px;
    max-width: 60px;
    z-index: 22;
    cursor: pointer;
    backdrop-filter: blur(12px);
    background: rgba(246, 246, 246, 0.85);
    color: #6f6f75;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    box-shadow: 0 9px 30px #0000001a;
    overflow: hidden;
    color: transparent;
}

.bubble.closed,
.bubble-menu.closed {
    animation: reverse-expand 1.2s cubic-bezier(0.645, 0.025, 0.355, 1) forwards;
}

.bubble.open,
.bubble-menu.open {
    animation: expand 1.2s cubic-bezier(0.645, 0.025, 0.355, 1) forwards;
}

.bubble-menu {
    flex-direction: column;
    padding: 9px;
}

.bubble-menu a {
    display: block;
    width: 100%;
    text-align: left;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: transparent;
    color: transparent;
    padding: 15px;
    transition: all 0.25s cubic-bezier(0.645, 0.025, 0.355, 1);
}

.bubble-menu.open a {
    color: #323235;
    transition: color 0.25s cubic-bezier(0.645, 0.025, 0.355, 1) 1s,
        transform 0.25s cubic-bezier(0.645, 0.025, 0.355, 1);
    animation: menuItemIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bubble-menu.open a:nth-child(1) {
    animation-delay: 1s;
}

.bubble-menu.open a:nth-child(2) {
    animation-delay: 1.1s;
}

.bubble-menu.open a:nth-child(3) {
    animation-delay: 1.2s;
}

.bubble-menu.open a:nth-child(4) {
    animation-delay: 1.3s;
}

.bubble-menu.open a:nth-child(5) {
    animation-delay: 1.4s;
}

.bubble-menu.open a:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: rgba(239, 131, 84, 0.5);
    transform: translateX(6px);
}

@keyframes expand {
    100% {
        color: #6f6f75;
        width: 90%;
        max-width: 500px;
        min-height: 80px;
        height: auto;
        transform: translate(-50%, 0);
    }

    85% {
        color: transparent;
        width: 90%;
        max-width: 500px;
        min-height: 80px;
        height: auto;
        transform: translate(-50%, 0);
    }

    30% {
        width: 60px;
        height: 60px;
        max-width: 60px;
        min-height: 60px;
        color: transparent;
    }

    15% {
        transform: translate(-50%, 0) scale(1);
    }

    0% {
        width: 60px;
        height: 60px;
        max-width: 60px;
        min-height: 60px;
        color: transparent;
        transform: translate(-50%, -100px) scale(0);
    }
}

@keyframes reverse-expand {
    0% {
        color: #6f6f75;
        width: 90%;
        max-width: 500px;
        min-height: 80px;
        height: auto;
        transform: translate(-50%, 0) scale(1);
    }

    15% {
        color: transparent;
        width: 90%;
        max-width: 500px;
        min-height: 80px;
        height: auto;
        transform: translate(-50%, 0);
    }

    70% {
        width: 60px;
        height: 60px;
        max-width: 60px;
        min-height: 60px;
        color: transparent;
    }

    85% {
        transform: translate(-50%, 0);
    }

    100% {
        width: 60px;
        height: 60px;
        max-width: 60px;
        min-height: 60px;
        color: transparent;
        transform: translate(-50%, -100px) scale(0);
    }
}

@keyframes menuItemIn {
    from {
        opacity: 0;
        translate: 0 -4px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* ---------- entrances ---------- */
.fadeIn {
    animation: fadeIn 0.85s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* scroll reveal: hidden only when JS is running; uses `translate` so hover transforms still work */
.js [data-reveal]:not(.in) {
    opacity: 0;
}

.js [data-reveal].in {
    animation: revealUp 0.95s var(--hover-ease) backwards;
    animation-delay: var(--d, 0ms);
}

@keyframes revealUp {
    from {
        opacity: 0;
        translate: 0 32px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* scroll focus: the section in the middle of the screen steps forward */
.is-inactive,
.is-active {
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-inactive {
    opacity: 0.5;
    scale: 0.95;
}

.is-active {
    opacity: 1;
    scale: 1;
}

body.refresh .is-inactive {
    opacity: 0.55;
    scale: 0.975;
}

/* ---------- Library ---------- */
body.library header {
    margin-bottom: 56px;
}

body.library header h1 {
    margin-top: 48px;
}

body.library header p {
    max-width: 560px;
}

.lib-stats {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

body.library main {
    padding: 0 48px;
    max-width: 1180px;
    margin: 0 auto;
}

body.library section {
    max-width: 1100px;
}

.toolbar {
    z-index: 5;
    max-width: 900px;
    margin: 0 auto 8px;
    padding: 12px;
    border-radius: 30px;
    background: rgba(246, 246, 246, 0.8);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(79, 93, 117, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1200px) {
    .toolbar {
        position: sticky;
        top: 14px;
    }
}

.search-wrapper {
    display: flex;
    border-radius: 25px;
    color: #5e5e63;
    border: 3px solid #eceff1;
    background-color: #fff;
    margin: 0 auto;
    max-width: 1000px;
    width: 80%;
    transition: all 0.25s ease-in-out;
}

.search-wrapper:focus-within {
    border-color: rgba(var(--coral), 0.5);
}

.toolbar .search-wrapper {
    width: 100%;
    max-width: none;
}

.search-wrapper #search {
    border-radius: 25px;
    padding: 1em 2em;
    color: #5e5e63;
    background-color: #fff;
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 18px;
    width: 100%;
    min-width: 0;
}

.search-wrapper button {
    background-color: transparent;
    border: none;
    padding: 0 1.4em 0 0.6em;
    cursor: pointer;
}

.search-wrapper kbd {
    align-self: center;
    font-size: 13px;
    font-weight: 600;
    color: #8a8f98;
    border: 2px solid var(--card);
    border-radius: 8px;
    padding: 1px 8px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0 2px;
}

.filters .spacer {
    flex: 1;
}

.filter {
    appearance: none;
    cursor: pointer;
    border: 3px solid var(--card);
    background: #fff;
    color: var(--slate);
    border-radius: 999px;
    padding: 0.4em 1em;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s var(--hover-ease);
}

.filter:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--coral), 0.45);
}

.filter[aria-pressed="true"] {
    background: var(--slate);
    border-color: var(--slate);
    color: #fff;
}

.filter .n {
    margin-left: 6px;
    font-size: 13px;
    opacity: 0.6;
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    padding: 0 6px;
}

.toggle input {
    accent-color: var(--slate);
    width: 18px;
    height: 18px;
}

.result-count {
    margin: 10px 8px 2px;
    font-size: 14px;
    color: #8a8f98;
}

.empty {
    text-align: center;
    padding: 90px 0;
    color: var(--muted);
}

.empty b {
    display: block;
    font-size: 24px;
    color: var(--slate);
    margin-bottom: 8px;
}

h3 {
    font-size: 1.2em;
    line-height: 120%;
    padding: 2em 0;
    letter-spacing: 0.01em;
    color: #323235;
}

.link-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 44px;
    align-items: start;
}

@media (min-width: 980px) {
    .link-container.cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.link-container>div {
    padding-bottom: 40px;
}

.link-wrapper {
    position: relative;
    z-index: 0;
    width: 100%;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    background-color: #4F5D75;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    padding: 3em 2em;
    margin-bottom: -40px;
    transition: transform 0.7s var(--hover-ease), box-shadow 0.7s var(--hover-ease), border-radius 0.7s var(--hover-ease);
}

.link-wrapper:hover,
.link-wrapper:focus-visible {
    z-index: 3;
    transform: translateY(-10px) scale(1.02);
    border-radius: 25px;
    box-shadow: 0 0 0 0 #e6ebef, 0 18px 40px 0 #00000026;
}

.link-wrapper::after {
    content: "↗";
    position: absolute;
    top: 2.2em;
    right: 1.6em;
    font-size: 22px;
    font-weight: 700;
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: all 0.5s var(--hover-ease);
}

.link-wrapper:hover::after,
.link-wrapper:focus-visible::after {
    opacity: 0.85;
    transform: none;
}

.link-wrapper img {
    flex: none;
    width: 75px;
    height: 75px;
    object-fit: cover;
    margin-right: 1em;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: all 0.8s var(--hover-ease);
}

.link-wrapper:hover img {
    transform: translateY(-4px) rotate(-5deg) scale(1.08);
}

.link-wrapper>div {
    padding-right: 1.6em;
}

.link-wrapper h4 {
    font-size: 20px;
    margin-bottom: 4px;
}

.link-wrapper p {
    color: rgb(255 255 255 / 55%);
    font-size: 15px;
    line-height: 150%;
}

.tag-archived {
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.link-wrapper.archived img {
    opacity: 0.85;
}

.leaderboard-btn {
    display: block;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: rgba(255, 255, 255, 0);
    border-radius: 25px;
    padding: 1em 2em;
    color: #fff;
    background: linear-gradient(to right bottom, rgb(38, 89, 140), rgb(55, 128, 200));
    width: fit-content;
    transition: all 0.25s ease-in-out;
}

.leaderboard-btn::after {
    content: "→";
    display: inline-block;
    margin-left: 0.6em;
    transition: transform 0.4s var(--hover-ease);
}

.leaderboard-btn:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -10px rgba(38, 89, 140, 0.55);
}

.leaderboard-btn:hover::after {
    transform: translateX(5px);
}

body.library #games .leaderboard-btn {
    margin-bottom: 8px;
}

/*
    * Connect styles
*/

#connect-form {
    margin: 0 auto;
    max-width: 700px;
    padding-bottom: 96px;
}

#connect-form input,
#connect-form textarea {
    border-radius: 25px;
    color: #5e5e63;
    border: 3px solid #eceff1;
    background-color: #fff;
    padding: 1em 2em;
    font-size: 18px;
    resize: none;
    display: block;
    width: 100%;
    margin-bottom: 2em;
}

#connect-form label {
    display: block;
    margin-bottom: 1em;
    margin-left: 18px;
    font-size: 18px;
}

#thankyou {
    display: none;
    padding: 0 96px 150px 96px;
    text-align: center;
}

/*
    * Tablet
*/
@media (max-width: 900px) {
    body.refresh header {
        margin-left: 40px;
        margin-right: 40px;
    }

    body.library main {
        padding: 0 32px;
    }
}

/*
    * Mobile Styles
*/
@media (max-width: 660px) {

    .pill-extra {
        display: none;
    }

    .hero-bg i {
        max-width: 70vw;
    }

    .nav-row {
        backdrop-filter: blur(2px);
        background: rgba(246, 246, 246, 0.01);
    }

    .bubble,
    .bubble-menu {
        top: 5em;
        transform: translate(-50%, -100px) scale(0);
    }

    header {
        margin: 100px 32px 150px 32px;
    }

    body.refresh header {
        margin: 120px 24px 60px;
    }

    main {
        padding: 0 32px;
    }

    section h2 {
        padding: 100px 0 69px 32px;
    }

    body.refresh section h2 {
        padding: 70px 0 32px;
    }

    section .card {
        padding: 2em 32px;
        margin-bottom: 48px;
        flex-direction: column;
        max-height: none;
    }

    section .card div {
        width: 100%;
        max-width: none;
    }

    section .card img {
        margin-top: 24px;
    }

    section .card#uuredesign img {
        margin-bottom: -50%;
    }

    section .card#ltgifts img {
        width: 100%;
        margin-bottom: -36px;
        margin-right: -32px;
    }

    .link-card,
    .link-card.wide,
    .link-card.wide:nth-child(even) {
        width: calc(50% - 2em);
        flex-direction: column;
    }

    .link-card img {
        display: block;
        height: 100px;
    }

    .link-card.wide h3,
    .link-card h3 {
        padding-top: 0;
        text-align: center;
    }

    .link-card.wide .lc-text {
        padding: 0 0.6em 1em;
        text-align: center;
    }

    .link-card .lc-text {
        padding: 0 0.6em 1em;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat {
        display: flex;
        align-items: baseline;
        gap: 14px;
    }

    .stat span {
        margin: 0;
    }

    body.refresh #work {
        padding: 48px 28px 44px;
        margin-top: 80px;
        border-radius: 26px;
    }

    .search-wrapper {
        max-width: 100%;
        width: calc(100% - 2em);
        margin: 0 1em;
    }

    .leaderboard-btn {
        margin: 0 1em;
        width: calc(100% - 2em);
        text-align: center;
    }

    /* library: full-bleed stacked cards */
    body.library main {
        padding: 0;
    }

    body.library section h2,
    body.library section h3 {
        padding: 32px;
    }

    body.library section h2 {
        padding-top: 64px;
        padding-bottom: 8px;
    }

    body.library section h2::after {
        margin-top: 12px;
    }

    .toolbar {
        margin: 0 16px 8px;
        padding: 8px;
    }

    .toolbar .search-wrapper {
        width: 100%;
        margin: 0;
    }

    .search-wrapper kbd {
        display: none;
    }

    .leaderboard-btn,
    body.library #games .leaderboard-btn {
        margin: 0 16px 8px;
        width: calc(100% - 32px);
    }

    .link-wrapper {
        padding: 3em 1.4em;
    }

    .link-container>div {
        padding-bottom: 40px;
    }
}

@media (hover: none) {
    .link-wrapper::after {
        display: none;
    }
}

/*
    * Respect reduced-motion settings
*/
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }

    .js .marquee {
        overflow: auto hidden;
    }

    .js .marquee-track {
        animation: none;
    }
}

/* =====================================================
   Featured fly-through (library)
   Default = simple card grid (no JS / reduced motion).
   .is-fly = pinned, scroll-driven CSS 3D flight.
   ===================================================== */
.flythrough,
body.library .flythrough {
    max-width: none;
    width: 100%;
    margin: 0 0 56px;
}

.fly-stage {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.fly-head {
    margin-bottom: 28px;
}

.fly-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate);
}

.fly-h {
    margin-top: 6px;
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--slate);
}

.fly-items {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.fly-bgs,
.fly-ghost,
.fly-hud {
    display: none;
}

.fly-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 28px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--tint, #eceff1);
    color: var(--fg, #4F5D75);
    text-decoration: none;
    box-shadow: 0 30px 70px -26px rgba(20, 28, 46, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: box-shadow 0.5s var(--hover-ease);
}

.fly-card:hover,
.fly-card:focus-visible {
    box-shadow: 0 40px 90px -24px rgba(20, 28, 46, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.fly-card img {
    width: 92px;
    height: 92px;
    margin-bottom: 16px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    transition: transform 0.7s var(--hover-ease);
}

.fly-card:hover img {
    transform: translateY(-4px) rotate(-4deg) scale(1.05);
}

.fly-num {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.45;
}

.fly-card h3,
body.library .fly-card h3 {
    padding: 0;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: inherit;
}

.fly-tag {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
}

.fly-card p {
    margin: 12px 0 22px;
    font-size: 16px;
    line-height: 1.55;
    color: inherit;
    opacity: 0.85;
}

.fly-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 15px;
    font-weight: 700;
}

.fly-cta::after {
    content: "→";
    transition: transform 0.4s var(--hover-ease);
}

.fly-card:hover .fly-cta::after {
    transform: translateX(5px);
}

/* ---------- fly mode ---------- */
.flythrough.is-fly {
    height: calc(100vh + var(--steps, 7) * 60vh);
    margin-bottom: 64px;
}

.is-fly .fly-stage {
    position: sticky;
    top: 16px;
    height: calc(100vh - 32px);
    max-width: none;
    margin: 0 16px;
    padding: 0;
    overflow: hidden;
    border-radius: 32px;
    background: #4F5D75;
    box-shadow: 0 30px 80px -30px rgba(20, 28, 46, 0.55);
}

.is-fly .fly-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(120% 95% at 50% 42%, transparent 52%, rgba(10, 14, 26, 0.22));
}

.is-fly .fly-head {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

.is-fly .fly-bgs {
    display: block;
    position: absolute;
    inset: 0;
}

.is-fly .fly-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.is-fly .fly-items {
    display: block;
    position: absolute;
    inset: 0;
    perspective: 1150px;
    perspective-origin: 50% 46%;
}

.is-fly .fly-item {
    position: absolute;
    inset: 0;
    margin: auto;
    width: fit-content;
    height: fit-content;
    will-change: transform, opacity;
}

.is-fly .fly-card {
    width: min(78vw, 400px);
    height: auto;
    box-shadow: 0 50px 100px -30px rgba(10, 14, 26, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.is-fly .fly-ghost {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    z-index: -1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    font-size: clamp(80px, 15vw, 210px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.22);
    opacity: var(--go, 1);
}

.is-fly .fly-hud {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 20;
    padding: 26px 32px;
    pointer-events: none;
    color: #fff;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.18);
}

.is-fly .fly-hud a,
.is-fly .fly-hud button {
    pointer-events: auto;
}

.fly-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.is-fly .fly-eyebrow {
    color: #fff;
    opacity: 0.9;
}

.fly-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.85;
}

.fly-hint i {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: flyHint 1.6s ease-in-out infinite;
}

@keyframes flyHint {
    50% {
        transform: translateY(5px) rotate(45deg);
    }
}

.fly-bottom {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 26px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 24px;
}

.fly-count {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.fly-count b {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.fly-of {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.7;
}

.fly-count em {
    font-style: normal;
    font-size: 18px;
    font-weight: 700;
    margin-left: 6px;
}

.fly-dots {
    display: flex;
    align-items: center;
    gap: 2px;
}

.fly-dots button {
    position: relative;
    width: 22px;
    height: 28px;
    border: 0;
    background: none;
    cursor: pointer;
}

.fly-dots button::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transform: translate(-50%, -50%);
    transition: all 0.5s var(--hover-ease);
}

.fly-dots button[aria-current="true"]::after {
    width: 22px;
    background: #fff;
}

.fly-skip {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 4px;
    transition: text-decoration-color 0.3s;
}

.fly-skip:hover {
    text-decoration-color: rgba(var(--coral), 0.95);
}

@media (max-width: 660px) {
    .fly-stage {
        padding: 0 16px;
    }

    .is-fly .fly-stage {
        margin: 0 8px;
        border-radius: 26px;
    }

    .is-fly .fly-hud {
        padding: 20px 18px;
    }

    .fly-bottom {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .fly-count em {
        display: none;
    }

    .fly-card {
        padding: 22px;
    }

    .fly-card h3 {
        font-size: 26px;
    }
}

/* solo (odd last) card in the featured bento always spans the row */
.link-card.solo {
    width: calc(100% - 2em);
}

@media (max-width: 660px) {

    .link-card.wide.solo,
    .link-card.wide.solo:nth-child(even) {
        width: calc(100% - 2em);
    }
}