body[data-page="vibe-coding"] {
    background: #ffffff;
    color: #111111;
}

/* Keep /vibe-coding on one document scroll only (no nested scroll containers). */
html body[data-page="vibe-coding"] {
    height: auto !important;
    overflow-y: auto !important;
}

body[data-page="vibe-coding"].nav-mobile-open {
    overflow: hidden !important;
}

/* Removed black block caused by `header.vibe-catalog-head` inheriting
   `css/style.css` global `header { background: var(--bg-dark-1); position: absolute; }`. */
body[data-page="vibe-coding"] header.vibe-catalog-head {
    position: static !important;
    left: auto !important;
    z-index: auto !important;
    background: transparent !important;
}

.vibe-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.vibe-section-head .subtitle {
    margin-bottom: 8px;
}

.vibe-section-head h2 {
    margin-bottom: 0;
}

.vibe-home-section {
    background: #ffffff;
}

.vibe-home-shell {
    border-top: 0;
    padding-top: 0;
}

.vibe-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.vibe-home-tabs {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 24px 0 24px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    scrollbar-width: none;
}

.vibe-home-tabs::-webkit-scrollbar {
    display: none;
}

.vibe-home-tabs[hidden] {
    display: none !important;
}

.vibe-home-tab {
    position: relative;
    border: 0;
    background: transparent;
    color: rgba(0, 0, 0, 0.58);
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 14px 18px 12px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.085em;
    text-transform: uppercase;
    flex: 0 0 auto;
    transition:
        color 180ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vibe-home-tab::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 2px;
    background: #111111;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vibe-home-tab:hover,
.vibe-home-tab:focus-visible {
    color: #111111;
    opacity: 1;
    outline: none;
}

.vibe-home-tab.is-active {
    color: #111111;
    opacity: 1;
}

.vibe-home-tab.is-active::after {
    transform: scaleX(1);
}

.vibe-home-grid .vibe-card-col {
    display: flex;
    min-width: 0;
}

.vibe-home-grid .vibe-catalog-empty-wrap {
    grid-column: 1 / -1;
}

/* "Show all N projects" and the way to the AI Engineering page sit centred
   under the grid, side by side, like Product Work's toggle (they stack when a
   phone is too narrow for both). */
.vibe-home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* the pill's own display would otherwise beat the hidden attribute */
.vibe-home-actions [hidden] {
    display: none !important;
}

/* The page link reads as the way on: filled in ink, its arrow leaning forward
   on hover and focus. */
.vibe-home-actions .vibe-home-actions__page {
    gap: 8px;
    border-color: var(--ink, #0a0a0a);
    background: var(--ink, #0a0a0a);
    color: #ffffff;
}

.vibe-home-actions .vibe-home-actions__page:hover,
.vibe-home-actions .vibe-home-actions__page:focus-visible {
    border-color: var(--ink, #0a0a0a);
    color: #ffffff;
}

.vibe-home-actions .vibe-home-actions__page:focus-visible {
    outline: 2px solid var(--ink, #0a0a0a);
    outline-offset: 3px;
}

.vibe-home-actions__arrow {
    flex: none;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vibe-home-actions__page:hover .vibe-home-actions__arrow,
.vibe-home-actions__page:focus-visible .vibe-home-actions__arrow {
    transform: translateX(3px);
}

/* stacked on a phone, the two pills share one width */
@media (max-width: 479px) {
    .vibe-home-actions > .home-projects__toggle {
        min-width: 232px;
    }
}

html[data-motion="reduced"] .vibe-home-actions__arrow {
    transition: none;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .vibe-home-actions__arrow {
        transition: none;
        transform: none;
    }
}

/* cards past the first six wait for "Show all" */
.vibe-home-grid .vibe-card-col[hidden] {
    display: none;
}

.vibe-home-actions[hidden] {
    display: none !important;
}

.vibe-home-ready .vibe-home-grid .vibe-card-col {
    animation: vibe-card-in 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--vibe-card-delay, 0ms);
}

body[data-page="vibe-coding"] .site-nav__link.is-active {
    color: #111111 !important;
    transform: none;
}

/* This page's own nav item carries one line: the bar below. The site-wide
   scroll-spy underline and the hover sweep (css/micro-interactions.css)
   would stack a second and a third line on the same label. */
body[data-page="vibe-coding"] .site-nav__primary .site-nav__link.is-active .nav-label,
html:not([data-motion="reduced"]) body[data-page="vibe-coding"] .site-nav__primary .site-nav__link.is-active .nav-label {
    position: relative;
    text-decoration: none;
    background-image: none;
}

body[data-page="vibe-coding"] .site-nav__primary .site-nav__link.is-active .nav-label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 2px;
    background: #111111;
}

body[data-page="vibe-coding"] .site-nav__dropdown-menu,
body[data-page="vibe-coding"] .site-nav__mobile-dialog,
body[data-page="vibe-coding"] .site-nav__mobile-social-menu,
body[data-page="vibe-coding"] .vibe-catalog-main .form-control,
body[data-page="vibe-coding"] .vibe-catalog-main .form-select,
body[data-page="vibe-coding"] .vibe-catalog-main .vibe-card,
body[data-page="vibe-coding"] .vibe-catalog-main .vibe-catalog-empty {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.vibe-catalog-main {
    /* The grid renders from script: the footer waits below the fold instead of jumping. */
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(4px, 0.6vw, 8px) 0 clamp(64px, 9vw, 112px);
    background: #ffffff;
}

body[data-page="vibe-coding"] .vibe-catalog-main .container {
    max-width: 1240px;
    padding-inline: clamp(18px, 2.4vw, 28px);
}

body[data-page="vibe-coding"] #content,
body[data-page="vibe-coding"] #wrapper,
body[data-page="vibe-coding"] .hero-home,
body[data-page="vibe-coding"] .hero-cover,
body[data-page="vibe-coding"] .site-nav-shell,
body[data-page="vibe-coding"] .vibe-catalog-main,
body[data-page="vibe-coding"] .vibe-catalog-shell,
body[data-page="vibe-coding"] .vibe-catalog-body {
    height: auto;
    min-height: 0;
    overflow: visible;
}

body[data-page="vibe-coding"] .site-nav__mobile-panel[hidden] {
    display: none !important;
}

.vibe-catalog-shell {
    margin-top: clamp(8px, 1vw, 14px);
    border-bottom: 1px solid #e6e6e6;
}

.vibe-catalog-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e6e6e6;
    background: transparent;
}

.vibe-catalog-chapter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.vibe-kicker,
.vibe-kicker-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.58);
}

.vibe-catalog-body {
    padding: clamp(16px, 1.6vw, 22px) 0 clamp(28px, 4.8vw, 56px);
}

.vibe-catalog-title-wrap.rido-topic-divider__header {
    margin-bottom: clamp(22px, 3vw, 34px);
    padding-top: clamp(18px, 2.2vw, 28px);
    text-align: center;
}

.vibe-title {
    margin: 0 0 12px;
    text-transform: none;
    letter-spacing: -0.025em;
    line-height: 1.05;
    font-size: clamp(48px, 8vw, 100px);
    text-wrap: balance;
}

.vibe-lead {
    margin: 0 auto;
    max-width: 560px;
    color: rgba(0, 0, 0, 0.66);
    font-size: 16px;
    line-height: 1.6;
}

.vibe-hero-visual {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    margin: 0 0 24px;
}

.vibe-visual-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--hairline, rgba(10, 10, 10, 0.14));
    background: #f5f5f5;
}

.vibe-visual-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.vibe-visual-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vibe-catalog-tabs {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 24px 0 24px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    scrollbar-width: none;
}

.vibe-catalog-tabs::-webkit-scrollbar {
    display: none;
}

.vibe-catalog-tab {
    position: relative;
    border: 0;
    background: transparent;
    color: rgba(0, 0, 0, 0.58);
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 14px 18px 12px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.085em;
    text-transform: uppercase;
    flex: 0 0 auto;
    transition:
        color 180ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vibe-catalog-tab::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 2px;
    background: #111111;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vibe-catalog-tab:hover,
.vibe-catalog-tab:focus-visible {
    color: #111111;
    opacity: 1;
    outline: none;
}

.vibe-catalog-tab.is-active {
    color: #111111;
    opacity: 1;
}

.vibe-catalog-tab.is-active::after {
    transform: scaleX(1);
}

.article-tabs-shell {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: stretch;
    min-height: 54px;
    padding: 0 4px;
    overflow: hidden;
    background: transparent;
}

.article-tabs-shell::before,
.article-tabs-shell::after {
    content: none;
}

.article-tabs__scroll {
    width: 34px;
    border: 0;
    background: transparent;
    color: rgba(0, 0, 0, 0.46);
    display: inline-grid;
    place-items: center;
    padding: 0;
    font-size: 17px;
    line-height: 1;
    transition: color 220ms cubic-bezier(0.16, 1, 0.3, 1), background-color 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.article-tabs__scroll.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.article-tabs__scroll--prev {
    justify-self: start;
}

.article-tabs__scroll--next {
    justify-self: end;
}

.article-tabs__scroll:hover,
.article-tabs__scroll:focus-visible {
    color: #111111;
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.article-tabs__scroll[disabled] {
    opacity: 0.28;
    cursor: default;
    pointer-events: none;
}

.article-tabs {
    display: flex !important;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 0 6px;
    min-height: 54px;
    background: transparent;
    scrollbar-width: none;
    scroll-behavior: auto;
}

.article-tabs::-webkit-scrollbar {
    display: none;
}

.article-tab {
    position: relative;
    border: 0;
    background: transparent;
    color: rgba(0, 0, 0, 0.58);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 14px 14px 11px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
    transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.article-tab::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    background: #111111;
    transform: scaleX(0);
    transform-origin: center center;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.article-tab:hover,
.article-tab:focus-visible {
    color: #111111;
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.article-tab.is-active {
    color: #111111;
    background: rgba(0, 0, 0, 0.08);
}

.article-tab.is-active::after {
    transform: scaleX(1);
}

.article-tab__label {
    line-height: 1.05;
}

.article-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8em;
    color: rgba(0, 0, 0, 0.66);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
}

.article-tab.is-active .article-tab__label {
    font-weight: 900;
}

.article-tab.is-active .article-tab__count {
    color: #ffffff;
    background: #111111;
}

/* Search, count and sort: the shared filter bar (css/filter-bar.css). */
.filter-bar.vibe-catalog-filter {
    margin: 0 0 clamp(28px, 3.2vw, 40px);
}

.vibe-catalog-grid {
    width: 100%;
}

body[data-page="vibe-coding"] .vibe-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.vibe-card-col {
    display: flex;
    min-width: 0;
}

body[data-page="vibe-coding"] .vibe-catalog-grid .vibe-card-col {
    width: 100%;
}

body[data-page="vibe-coding"] .vibe-catalog-grid .vibe-catalog-empty-wrap {
    grid-column: 1 / -1;
}

/* ==================================================
   VIBE CARD
   ==================================================
   Top to bottom: a full-bleed cover; the project's square app icon sitting
   on the seam (two thirds on the cover, aligned to the text column); date +
   status; the type label ("Full Product / Design System"); title; a two-line
   description; the CTA on a hairline. One card for both grids (home rail +
   /vibe-coding/). The geometry lives in the custom properties so the icon,
   the seam rule and the meta row stay locked together at every size.
   ================================================== */
.vibe-card {
    --vc-pad: 16px;        /* body gutter, and the icon's left edge */
    --vc-icon: 60px;       /* icon tile, white ring included */
    --vc-icon-ring: 3px;
    --vc-icon-rise: 40px;  /* how much of the tile sits on the cover */
    --vc-seam: 12px;       /* cover edge to the body's top rule */
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vibe-card:hover,
.vibe-card:focus-visible {
    transform: translateY(-3px);
    border-color: #111111;
    background: #ffffff;
}

.vibe-card:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.vibe-card__media {
    padding: 0;
}

/* The card's own border frames three sides of the cover; a hairline closes
   the fourth, and the inner light hairline matches every other media cell. */
.vibe-card__media-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid var(--hairline, rgba(10, 10, 10, 0.14));
    background: #f5f5f5;
}

.vibe-card__media-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.vibe-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1);
    transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vibe-card:hover .vibe-card__image,
.vibe-card:focus-visible .vibe-card__image {
    transform: scale(1.02);
}

.vibe-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin: var(--vc-seam) var(--vc-pad) 0;
    /* clears the part of the icon that hangs below the rule, plus a gap */
    padding: calc(var(--vc-icon) - var(--vc-icon-rise) - var(--vc-seam) - 1px + 10px) 0 20px;
    border-top: 1px solid #ececec;
}

/* App icon: a square tile in a white ring, lifted onto the cover. */
.vibe-card__icon {
    position: absolute;
    top: calc(-1 * (var(--vc-icon-rise) + var(--vc-seam) + 1px));
    left: 0;
    z-index: 3;
    box-sizing: border-box;
    width: var(--vc-icon);
    height: var(--vc-icon);
    padding: var(--vc-icon-ring);
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.1);
}

.vibe-card__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* A moving icon stacks an extra layer on the still, inside the white ring:
   an animated twin that plays once and rests on the still (iconMotion), or a
   second frame that flaps on arrival and holds on hover (iconFrame). The
   catalogue script decides when; see js/vibe-coding-catalog.js. */
.vibe-card__icon .vibe-card__icon-live,
.vibe-card__icon .vibe-card__icon-frame {
    position: absolute;
    top: var(--vc-icon-ring);
    left: var(--vc-icon-ring);
    width: calc(100% - 2 * var(--vc-icon-ring));
    height: calc(100% - 2 * var(--vc-icon-ring));
}

.vibe-card__icon .vibe-card__icon-live {
    visibility: hidden;
}

.vibe-card__icon.is-live .vibe-card__icon-live {
    visibility: visible;
}

.vibe-card__icon.is-live .vibe-card__icon-still {
    visibility: hidden;
}

.vibe-card__icon .vibe-card__icon-frame {
    opacity: 0;
}

.vibe-card__icon.is-talking .vibe-card__icon-frame {
    animation: vibe-icon-flap 380ms steps(1, end) infinite;
}

@keyframes vibe-icon-flap {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@media (hover: hover) {
    .vibe-card:hover .vibe-card__icon-frame,
    .vibe-card:focus-visible .vibe-card__icon-frame {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vibe-card__icon.is-talking .vibe-card__icon-frame {
        animation: none;
    }
}

html[data-motion="reduced"] .vibe-card__icon.is-talking .vibe-card__icon-frame {
    animation: none;
}

/* Pixel art keeps its hard edges when scaled. */
.vibe-card__icon--pixel img {
    image-rendering: pixelated;
}

/* No icon yet: a monogram tile on the project accent (ink by default). */
.vibe-card__icon--mono > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--vibe-icon-bg, #0a0a0a);
    color: #ffffff;
    font-family: var(--title-font);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.vibe-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vibe-card__date {
    color: rgba(0, 0, 0, 0.54);
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.vibe-card__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 7px 3px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vibe-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.vibe-card__taxonomy {
    display: flex;
    margin: 0 0 12px;
}

/* Type label: the outlined twin of the filled status chip. Several labels
   share one chip, slash separated, and wrap inside it if they must. */
.vibe-card__label {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 23px;
    padding: 5px 8px 4px;
    border: 1px solid #111111;
    color: #111111;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vibe-card__title {
    margin: 0 0 8px;
    color: #111111;
    font-family: var(--title-font);
    font-size: clamp(18px, 1.3vw, 21px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vibe-card__description {
    margin: 0;
    color: rgba(0, 0, 0, 0.66);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vibe-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
}

.vibe-card__cta-label {
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vibe-card__cta-arrow {
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    stroke-width: 1.85;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vibe-card:hover .vibe-card__cta-arrow,
.vibe-card:focus-visible .vibe-card__cta-arrow {
    transform: translate(2px, -2px);
}

.vibe-catalog-empty {
    background: #fafafa;
    border: 1px dashed #c7c7c7;
    color: #5c5c5c;
    margin: 0;
    padding: 18px;
}

body[data-page="vibe-coding"] [data-vibe-catalog].vibe-ready .vibe-catalog-head[data-vibe-hero-reveal],
body[data-page="vibe-coding"] [data-vibe-catalog].vibe-ready .vibe-catalog-title-wrap[data-vibe-hero-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-page="vibe-coding"] [data-vibe-catalog].vibe-ready .vibe-card-col {
    animation: vibe-card-in 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--vibe-card-delay, 0ms);
}

@keyframes vibe-card-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1023px) {
    .vibe-hero-visual {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    body[data-page="vibe-coding"] .vibe-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .vibe-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .article-tabs-shell {
        grid-template-columns: minmax(0, 1fr);
        min-height: 52px;
        padding: 0 8px;
    }

    .article-tabs__scroll {
        display: none;
    }

    .article-tabs {
        min-height: 52px;
        padding: 0 2px;
        gap: 5px;
    }

    .article-tab {
        min-height: 52px;
        padding: 14px 12px 11px;
        font-size: 11px;
    }

    .article-tab::after {
        left: 12px;
        right: 12px;
    }

    body[data-page="vibe-coding"] .vibe-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {
    body[data-page="vibe-coding"] .vibe-catalog-main .container {
        padding-inline: var(--site-shell-pad-mobile);
    }

    .vibe-home-shell {
        padding-top: 0;
    }

    .vibe-home-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vibe-home-tabs {
        margin: 20px 0;
        width: calc(100% + 2rem);
        margin-left: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .vibe-home-tab {
        min-height: 48px;
        padding: 13px 14px 11px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .vibe-home-tab::after {
        left: 14px;
        right: 14px;
    }

    .vibe-home-actions {
        margin-top: 20px;
    }

    .vibe-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .vibe-catalog-main {
        padding-top: 16px;
    }

    .vibe-catalog-shell {
        margin-top: 16px;
    }

    .vibe-catalog-head {
        display: none;
    }

    .vibe-catalog-body {
        padding-top: 14px;
    }

    .vibe-catalog-title-wrap {
        padding-top: 14px;
    }

    .vibe-title {
        line-height: 1.08;
    }

    .vibe-hero-visual {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }

    .article-tabs {
        min-height: 50px;
        padding: 0 2px;
    }

    .article-tab {
        min-height: 50px;
        padding: 13px 10px 10px;
        font-size: 10px;
    }

    .vibe-catalog-tabs {
        margin: 20px 0 18px;
    }

    .vibe-catalog-tab {
        min-height: 46px;
        padding: 12px 14px 10px;
        font-size: 10px;
    }

    .vibe-catalog-tab::after {
        left: 14px;
        right: 14px;
    }

    body[data-page="vibe-coding"] .vibe-catalog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vibe-card__description {
        -webkit-line-clamp: 3;
    }

}

@media (prefers-reduced-motion: reduce) {
    body[data-page="vibe-coding"] [data-vibe-hero] .hero-wordmark,
    body[data-page="vibe-coding"] [data-vibe-hero] .hero-nav,
    body[data-page="vibe-coding"] [data-vibe-catalog] .vibe-catalog-head,
    body[data-page="vibe-coding"] [data-vibe-catalog] .vibe-catalog-title-wrap,
    body[data-page="vibe-coding"] [data-vibe-catalog] .vibe-card-col,
    body[data-page="vibe-coding"] .vibe-card,
    body[data-page="vibe-coding"] .vibe-card__image,
    body[data-page="vibe-coding"] .vibe-card__cta-arrow {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    body[data-page="vibe-coding"] .site-nav__primary .site-nav__link.is-active .nav-label::after {
        transition: none !important;
    }
}

/* ==================================================
   CARD CTA: the card opens the project's own page (same tab), so its
   footer reads "View project" with an inline arrow that nudges along its
   own axis instead of the external ↗ diagonal. Specificity beats the
   diagonal nudge in css/micro-interactions.css.
   ================================================== */
.vibe-card:hover .vibe-card__cta-arrow.vibe-card__cta-arrow--inline,
.vibe-card:focus-visible .vibe-card__cta-arrow.vibe-card__cta-arrow--inline,
html:not([data-motion="reduced"]) .vibe-card:hover .vibe-card__cta-arrow.vibe-card__cta-arrow--inline,
html:not([data-motion="reduced"]) .vibe-card:focus-visible .vibe-card__cta-arrow.vibe-card__cta-arrow--inline {
    transform: translate(4px, 0);
}

/* ==================================================
   CARD HOVER: the cover comes alive, the icon answers
   ==================================================
   Cards with a `coverVideo` layer a short silent loop over the cover image.
   js/vibe-coding-catalog.js loads it on the first hover or keyboard focus
   (fine pointers only, never under reduced motion or Save-Data) and pauses it
   when the pointer leaves. The clip is shown only once it is really playing,
   so a warming-up video never flashes black over the cover. */
.vibe-card__video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* The loop shows once it is really playing (js/vibe-coding-catalog.js waits
   for a full buffer and the cover's curtain), so the cover never blinks. */
.vibe-card__video.is-playing {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    html:not([data-motion="reduced"]) .vibe-card:hover .vibe-card__video,
    html:not([data-motion="reduced"]) .vibe-card:focus-visible .vibe-card__video {
        transform: scale(1.02);
    }

    /* The app icon lifts and tilts like a sticker being picked up. */
    html:not([data-motion="reduced"]) .vibe-card__icon {
        transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    html:not([data-motion="reduced"]) .vibe-card:hover .vibe-card__icon,
    html:not([data-motion="reduced"]) .vibe-card:focus-visible .vibe-card__icon {
        transform: translateY(-6px) rotate(-6deg);
        box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.1), 0 10px 22px rgba(10, 10, 10, 0.16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vibe-card__video {
        display: none;
    }
}

html[data-motion="reduced"] .vibe-card__video {
    display: none;
}

/* ==================================================
   CARD TO PROJECT: the cover morphs into the hero
   ==================================================
   Cross-document view transitions (css/view-transitions.css opts the site
   in and cross-fades the rest of the page). A click names the card's cover
   "vp-hero" (js/vibe-coding-catalog.js); the project page's hero carries
   the same name (css/vibe-project.css), so the frame travels from the card
   to the hero, and back again on the way home. These rules style whichever
   page is arriving, which is why they live here and on project pages.
   No cross-fade: the old picture wipes away top to bottom while the frame
   grows, revealing the new one underneath. */
::view-transition-group(vp-hero) {
    animation-duration: 640ms;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(vp-hero),
::view-transition-new(vp-hero) {
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
    animation: none;
}

::view-transition-old(vp-hero) {
    z-index: 1;
    animation: vp-hero-wipe 520ms cubic-bezier(0.65, 0, 0.35, 1) 60ms both;
}

@keyframes vp-hero-wipe {
    from { clip-path: inset(0 0 0 0); }
    to { clip-path: inset(100% 0 0 0); }
}

/* The back bar above carries the hairline now; the title's own divider line
   would sit right under it (2026-10-31). */
body[data-page="vibe-coding"] .vibe-catalog-title-wrap.rido-topic-divider__header {
    border-top: 0;
}
