/* Home page: the work card. Compact layout (phone, tablet) is sized in cqw from the card's own width, so the
   same markup fits 328px and 900px; the wide layout (>= 932px) uses fixed sizes for the 1040x620 card. */
@media(max-width:931px),(max-height:560px) {
    .d-only {
        display: none !important
    }
}

.card-page main {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 40px
}

.mono {
    margin: 0;
    font: 500 max(11px, 3.1cqw)/1.3 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brass-text)
}

html[dir=rtl] .mono {
    letter-spacing: 0;
    text-transform: none
}

.mono.accent {
    color: var(--brass)
}

/* The card */
.wc {
    position: relative;
    perspective: 1600px
}

.wc-sides {
    position: relative;
    aspect-ratio: 358/226;
    overflow: hidden;
    container-type: inline-size;
    touch-action: pan-y;
    border-radius: 20px;
    background: var(--cream);
    color: var(--ink);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
    transition: transform .2s ease-in, opacity .15s ease, background-color .2s ease
}

.wc:not([data-side=card]) .wc-sides {
    background: var(--ink);
    color: var(--text);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4), inset 0 0 0 1px var(--line)
}

.wc.flip-out .wc-sides {
    transform: rotateY(var(--fd))
}

.wc.flip-in .wc-sides {
    transform: rotateY(calc(var(--fd) * -1));
    transition: none
}

.wc.flip-in .wc-sides,
.wc .wc-sides {
    transition-timing-function: ease-in
}

.wc.fade-out .wc-sides {
    opacity: 0
}

.wc-sides [hidden] {
    display: none !important
}

.wc-star {
    position: absolute;
    top: -13cqw;
    inset-inline-end: -13cqw;
    width: 44cqw;
    height: 44cqw;
    color: var(--brass);
    opacity: .25;
    pointer-events: none
}

.wc-side {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 2cqw;
    padding: 5cqw;
    margin: 0
}

.wc-side ul,
.wc-side dl {
    margin: 0;
    padding: 0;
    list-style: none
}

/* Card side */
.side-card-main {
    display: flex;
    flex-direction: column;
    gap: 2.2cqw;
    height: 100%
}

.wc-side h1 {
    margin: 0;
    font: 700 8.4cqw/1 var(--display);
    letter-spacing: -.02em;
    color: var(--ink)
}

html[dir=rtl] .wc-side h1 {
    letter-spacing: 0;
    line-height: 1.25
}

.pitch {
    margin: 0;
    max-width: 76cqw;
    font-size: max(11px, 3.9cqw);
    line-height: 1.4;
    color: #2E3E45
}

.wc-side .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4cqw;
    margin: auto 0 0;
    padding: 0;
    padding-inline-end: 13cqw;
    list-style: none
}

.chips li {
    padding: 1.1cqw 2.2cqw;
    border-radius: 999px;
    background: #EADFCB;
    color: #4A3412;
    font-size: max(11px, 3.1cqw);
    font-weight: 500
}

/* Impact */
.stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.7cqw
}

.stats li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .4cqw;
    padding: 2cqw;
    border-radius: 2.8cqw;
    background: var(--soft)
}

.stats strong {
    font: 700 5.6cqw/1 var(--display);
    color: var(--cream)
}

html[dir=rtl] .stats strong {
    direction: ltr;
    text-align: right
}

.stat-label-s {
    font-size: max(11px, 3.1cqw);
    line-height: 1.25;
    color: var(--muted)
}

.stat-label,
.stats small,
.do-list span,
.stack-do .mono,
.stack-tech .mono:nth-of-type(2),
.about-main .mono {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap
}

/* Stack */
.stack-do,
.stack-tech {
    display: flex;
    flex-direction: column;
    gap: 1.6cqw
}

.do-list {
    font-size: max(11px, 3.2cqw);
    line-height: 1.35;
    color: var(--text)
}

.do-list li {
    display: inline
}

.do-list li:not(:last-child)::after {
    content: ' · '
}

.do-list strong {
    font-weight: 500
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1cqw
}

.tech-chips li {
    padding: .7cqw 1.7cqw;
    border-radius: 1.7cqw;
    background: var(--soft);
    color: var(--text);
    font-size: max(11px, 3.1cqw);
    font-weight: 500
}

.tech-chips li.is-ai {
    background: transparent;
    border: 1px solid var(--brass);
    color: var(--brass-soft)
}

.tech-chips img {
    display: none
}

/* Apps */
.apps-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1cqw;
    align-items: center
}

.app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8cqw;
    width: 100%;
    min-height: 44px;
    padding: .6cqw;
    border: 0;
    border-radius: 3cqw;
    background: transparent;
    color: var(--cream);
    font: inherit;
    cursor: pointer
}

.app-btn:hover {
    background: var(--soft)
}

.app-btn img {
    width: 13cqw;
    height: 13cqw;
    border-radius: 3cqw
}

.app-name {
    font: 600 max(11px, 3.1cqw)/1.2 var(--font);
    text-align: center
}

/* About / Info */
.wc-side h2 {
    margin: 0;
    font: 500 max(11px, 3.3cqw)/1.3 var(--display);
    color: var(--cream)
}

.about-main {
    display: flex;
    flex-direction: column;
    gap: 2cqw
}

.about-text {
    margin: 0;
    font-size: max(11px, 3.1cqw);
    line-height: 1.4;
    color: var(--muted)
}

.facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.6cqw 3cqw
}

.facts dt {
    font: 500 max(11px, 3cqw)/1.4 var(--mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brass)
}

html[dir=rtl] .facts dt {
    letter-spacing: 0;
    text-transform: none
}

.facts dd {
    margin: 0;
    font-size: max(11px, 3.3cqw);
    line-height: 1.4;
    color: var(--text)
}

.reco {
    margin-top: 1cqw
}

/* Flip button (phone: inside the card corner) */
.flip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--brass-text);
    font: 600 14px/1 var(--font);
    cursor: pointer
}

.wc:not([data-side=card]) .flip-btn {
    color: var(--brass-soft)
}

.wc-sides > .flip-btn {
    position: absolute;
    inset-inline-end: 6px;
    bottom: 6px;
    z-index: 2
}

/* Tabs (phone: pill bar below the card) */
.wc-nav {
    margin-top: 16px
}

.wc-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: #173540
}

.wc-tabs button {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: 600 13px/1.1 var(--font);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.wc-tabs button[aria-selected=true] {
    background: var(--brass);
    color: var(--ink)
}

.wc-hint {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--muted)
}

/* Phone contact buttons */
.wc-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px
}

.contact-grid,
.contact-actions {
    display: grid;
    gap: 8px
}

.contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.contact-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 56px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600
}

.ico-in {
    font-weight: 700
}

.btn-cream {
    border-radius: 14px;
    background: var(--cream);
    border-color: var(--cream);
    color: var(--ink)
}

.btn-cream:hover {
    background: #fff;
    border-color: #fff
}

.contact-actions .btn {
    min-height: 52px;
    border-radius: 14px;
    padding: 0 8px;
    font-size: 14px
}

.btn-ink {
    border-radius: 14px;
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream)
}

.btn-ink:hover {
    background: #2E3E45;
    border-color: #2E3E45;
    color: #fff
}

.btn-outline-ink {
    border-radius: 14px;
    background: #FBF7F0;
    border-color: #DCCFB8;
    color: var(--ink)
}

.btn-outline-ink:hover {
    background: #fff;
    border-color: var(--brass-text)
}

.btn-outline-light {
    background: transparent;
    border-color: var(--line);
    color: var(--text)
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .06);
    border-color: var(--brass);
    color: var(--brass-soft)
}

/* Links under the card */
.wc-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 20px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--muted)
}

.wc-links a,
.link-btn,
.wc-links > span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted)
}

.wc-links a:hover,
.link-btn:hover {
    color: var(--brass-soft)
}

.link-btn {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer
}

/* Sheets (share, app detail) */
.sheet {
    width: min(430px, 100%);
    max-width: none;
    max-height: calc(100dvh - 24px);
    margin: auto auto 0;
    padding: 12px 20px calc(22px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 28px 28px 0 0;
    background: var(--cream);
    color: var(--ink);
    overflow: auto
}

.sheet::backdrop {
    background: rgba(10, 23, 28, .72)
}

@media(prefers-reduced-motion:no-preference) {
    .sheet[open] {
        animation: sheet-up .25s ease-out
    }

    @keyframes sheet-up {
        from {
            transform: translateY(40px);
            opacity: 0
        }
    }
}

.sheet-grip {
    width: 40px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #CFC1A8
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px
}

.sheet h2 {
    margin: 0;
    font: 700 22px/1.2 var(--display);
    color: var(--ink)
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border: 0;
    border-radius: 999px;
    background: #EADFCB;
    color: var(--ink);
    cursor: pointer
}

.qr-row {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #DCCFB8;
    border-radius: 18px;
    background: #FBF7F0
}

.qr-row img {
    flex: none;
    border-radius: 12px
}

.qr-row strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px
}

.qr-row span {
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted-cream)
}

.sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.sheet-actions .btn {
    min-height: 52px
}

.sheet-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
}

.sheet-pair .btn {
    padding: 0 8px;
    font-size: 14px
}

.sheet-pair .btn-brass {
    border-radius: 14px
}

.sheet-status {
    min-height: 1.2em;
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted-cream)
}

.app-id {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0
}

.app-id img {
    border-radius: 14px
}

.app-id .mono {
    display: block
}

.app-shot {
    display: block;
    width: 100%;
    max-height: 38dvh;
    object-fit: cover;
    object-position: top;
    margin-bottom: 14px;
    border-radius: 16px;
    border: 1px solid #DCCFB8
}

.app-copy p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #2E3E45
}

.app-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
}

.app-actions .btn {
    border-radius: 14px;
    font-size: 14px
}

.app-actions [hidden] {
    display: none
}

/* Phone, landscape: card fills the height, tabs in a column beside it */
@media(max-height:520px) and (orientation:landscape) {
    .card-page main {
        width: calc(100% - 32px)
    }

    .site-header {
        min-height: 52px;
        padding-block: 6px
    }

    .wc {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        justify-content: center
    }

    .wc-sides {
        order: 2;
        height: calc(100dvh - 52px - 24px);
        min-height: 250px;
        width: auto;
        max-width: 100%
    }

    .wc-nav {
        order: 1;
        margin-top: 0
    }

    .wc-tabs {
        grid-auto-flow: row;
        border-radius: 22px;
        width: 96px
    }

    .wc-hint {
        display: none
    }
}

/* Wide: the 1040x620 card with tabs in its bottom strip */
@media(min-width:932px) and (min-height:561px) {
    .m-only {
        display: none !important
    }

    .card-page main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: calc(100vh - 64px);
        padding-top: 0
    }

    .wc {
        display: flex;
        flex-direction: column;
        aspect-ratio: 1040/620;
        border-radius: 28px;
        background: var(--cream);
        color: var(--ink);
        box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
        overflow: hidden;
        transition: transform .2s ease-in, opacity .15s ease, background-color .2s ease
    }

    .wc:not([data-side=card]) {
        background: var(--ink);
        color: var(--text);
        box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line)
    }

    .wc.flip-out {
        transform: perspective(1600px) rotateY(var(--fd))
    }

    .wc.flip-in {
        transform: perspective(1600px) rotateY(calc(var(--fd) * -1));
        transition: none
    }

    .wc.fade-out {
        opacity: 0
    }

    .wc .wc-sides,
    .wc:not([data-side=card]) .wc-sides,
    .wc.flip-out .wc-sides,
    .wc.flip-in .wc-sides {
        flex: 1;
        min-height: 0;
        aspect-ratio: auto;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        overflow: visible
    }

    .wc-star {
        top: -80px;
        inset-inline-end: -80px;
        width: 300px;
        height: 300px;
        opacity: .22
    }

    .wc-side {
        padding: 44px 56px 28px;
        gap: 22px
    }

    .mono {
        font-size: 12px;
        letter-spacing: .14em
    }

    /* card */
    .wc-side#side-card {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 48px;
        padding: 48px 56px 32px
    }

    .side-card-main {
        gap: 18px;
        height: auto
    }

    .wc-side h1 {
        font-size: 60px
    }

    html[dir=rtl] .wc-side h1 {
        line-height: 1.2
    }

    .pitch {
        max-width: 460px;
        font-size: 20px;
        line-height: 1.45
    }

    .wc-side .chips {
        margin-top: 6px;
        gap: 8px;
        padding: 0
    }

    .chips li {
        padding: 7px 12px;
        font-size: 13px
    }

    .chips li.d-only {
        display: block
    }

    .side-card-contact {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center
    }

    .contact-row {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 56px;
        padding: 0 16px;
        border: 1px solid #DCCFB8;
        border-radius: 14px;
        background: #FBF7F0;
        color: var(--ink);
        font-size: 15px;
        font-weight: 500
    }

    .contact-row:hover {
        border-color: var(--brass-text)
    }

    .contact-row > span:not(.ico-box):not(.ico-in) {
        flex: 1
    }

    .contact-row small {
        font-size: 13px;
        color: var(--muted-cream);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .contact-row .ico-box,
    .contact-row .ico-in {
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        flex: none;
        border-radius: 8px;
        background: var(--ink);
        color: var(--cream);
        font-size: 13px
    }

    .contact-row svg {
        width: 16px;
        height: 16px
    }

    .side-card-contact .btn {
        min-height: 52px;
        margin-top: 6px;
        border-radius: 14px
    }

    /* impact */
    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        align-content: start
    }

    .stats li {
        justify-content: flex-start;
        gap: 6px;
        padding: 20px;
        border-radius: 16px
    }

    .stats strong {
        font-size: 38px
    }

    .stat-label,
    .stats small {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal
    }

    .stat-label {
        font-size: 15px;
        font-weight: 500;
        color: var(--text)
    }

    .stats small {
        font-size: 13px;
        color: var(--muted)
    }

    .stat-label-s {
        display: none
    }

    /* stack */
    .wc-side#side-stack {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
        align-content: start
    }

    .stack-do,
    .stack-tech {
        gap: 12px
    }

    .stack-do .mono,
    .stack-tech .mono:nth-of-type(2),
    .about-main .mono,
    .do-list span {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal
    }

    .do-list {
        font-size: inherit
    }

    .do-list li {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--line)
    }

    .do-list li:not(:last-child)::after {
        content: none
    }

    .do-list strong {
        font: 500 19px/1.3 var(--display);
        color: var(--cream)
    }

    .do-list span {
        font-size: 14px;
        color: var(--muted)
    }

    .stack-do {
        gap: 10px
    }

    .tech-chips {
        gap: 8px
    }

    .tech-chips li {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 7px 11px;
        border-radius: 10px;
        font-size: 14px
    }

    .tech-chips img {
        display: block
    }

    .stack-tech .mono:nth-of-type(2) {
        margin-top: 4px
    }

    /* apps */
    .apps-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px
    }

    .apps-note {
        margin: 0;
        font-size: 13px;
        color: var(--muted)
    }

    .apps-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 12px;
        align-items: stretch;
        flex: none
    }

    .apps-grid li {
        display: flex
    }

    .app-btn {
        gap: 10px;
        padding: 18px 10px;
        border-radius: 18px;
        background: var(--soft);
        justify-content: flex-start
    }

    .app-btn:hover {
        background: #2A4551
    }

    .app-tag.d-only {
        display: block;
        margin: 0;
        font-size: 11px;
        color: var(--muted)
    }

    .app-btn img {
        width: 72px;
        height: 72px;
        border-radius: 16px
    }

    .app-name {
        font: 500 16px/1.2 var(--display)
    }

    .app-line.d-only {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 12.5px;
        line-height: 1.4;
        color: var(--muted);
        text-align: center
    }

    /* about */
    .wc-side#side-about {
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 48px;
        align-content: start
    }

    .about-main {
        gap: 16px
    }

    .wc-side h2 {
        font-size: 26px;
        line-height: 1.25
    }

    .about-text {
        font-size: 16px
    }

    .about-aside {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        align-self: center
    }

    .about-aside .facts {
        gap: 14px 20px
    }

    .facts dt {
        font-size: 12px
    }

    .facts dd {
        font-size: 15px
    }

    /* tabs inside the card's bottom strip */
    .wc-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 84px;
        margin: 0;
        padding: 0 56px;
        border-top: 1px solid #E2D5BE
    }

    .wc:not([data-side=card]) .wc-nav {
        border-top-color: var(--line)
    }

    .wc-tabs {
        display: flex;
        gap: 6px;
        padding: 0;
        background: none;
        border-radius: 0
    }

    .wc-tabs button {
        padding: 0 18px;
        border: 1px solid #DCCFB8;
        color: var(--ink);
        font-size: 14px
    }

    .wc:not([data-side=card]) .wc-tabs button {
        border-color: var(--line);
        color: var(--text)
    }

    .wc-tabs button[aria-selected=true],
    .wc:not([data-side=card]) .wc-tabs button[aria-selected=true] {
        border-color: var(--brass);
        background: var(--brass);
        color: var(--ink)
    }

    .flip-btn.d-only {
        display: inline-flex;
        padding: 0 16px
    }

    .wc-tabs [data-compact-only] {
        display: none
    }

    .wc-hint {
        display: none
    }

    .wc-links .d-only {
        display: inline-flex
    }

    .sheet {
        margin: auto;
        border-radius: 28px
    }
}

.reco-open {
    align-self: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: max(12px, 3.3cqw)
}

.reco-open small {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brass);
    color: var(--ink);
    font: 600 12px/1 var(--font)
}

.reco-sheet {
    width: min(640px, 100%)
}

.reco-sheet .reco-title {
    margin: 0 0 14px;
    font: 500 18px/1.3 var(--display);
    color: var(--ink)
}

.reco-sheet .reco-grid {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.reco-sheet .reco-card {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #DCCFB8;
    border-radius: 16px;
    background: #FBF7F0
}

.reco-sheet blockquote {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #2E3E45
}

.reco-sheet figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: var(--muted-cream)
}

.reco-sheet figcaption strong {
    color: var(--ink)
}

.reco-sheet figcaption a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--brass-text);
    font-weight: 600;
    text-decoration: underline
}

@media(max-width:380px) {
    .wc-tabs button {
        font-size: 12px;
        padding: 0 1px
    }
}

@media(min-width:932px) and (min-height:561px) {
    .reco-open {
        font-size: 15px
    }
}

/* App status badge: a small label under the name */
.app-status {
    font: 500 max(11px, 2.6cqw)/1.2 var(--font);
    color: var(--muted)
}

.app-status.is-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-inline-end: 5px;
    border-radius: 50%;
    background: #7FD3A0;
    vertical-align: 1px
}

/* First-visit peek: a short tilt that hints the card flips */
@media(prefers-reduced-motion:no-preference) {
    .wc.peek .wc-sides {
        animation: card-peek .9s ease-in-out
    }

    @keyframes card-peek {
        40% {
            transform: rotateY(-12deg)
        }
    }
}

/* Copy email button inside the desktop contact row */
.mail-wrap {
    position: relative
}

.copy-mail {
    display: none
}

@media(min-width:932px) and (min-height:561px) {
    .wc.peek {
        animation: card-peek-wide .9s ease-in-out
    }

    .wc.peek .wc-sides {
        animation: none
    }

    @keyframes card-peek-wide {
        40% {
            transform: perspective(1600px) rotateY(-8deg)
        }
    }

    .mail-wrap .contact-row {
        padding-inline-end: 60px
    }

    .copy-mail {
        position: absolute;
        top: 6px;
        inset-inline-end: 6px;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--ink);
        cursor: pointer
    }

    .copy-mail:hover {
        background: #EADFCB
    }

    .copy-mail .i-done,
    .copy-mail.is-done .i-copy {
        display: none
    }

    .copy-mail.is-done .i-done {
        display: block;
        color: #2E6B4A
    }

    .app-status {
        font-size: 12px
    }
}

/* 404 page: a small cream card */
.nf-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 640px;
    margin: 48px auto 16px;
    padding: 40px;
    border-radius: 24px;
    background: var(--cream);
    color: var(--ink);
    container-type: inline-size;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4)
}

.nf-card h1 {
    margin: 0;
    font: 700 clamp(28px, 6vw, 44px)/1.1 var(--display)
}

.nf-text {
    margin: 0 0 8px;
    color: #2E3E45;
    font-size: 17px;
    line-height: 1.5
}

.nf-card .mono {
    font-size: 12px
}

.nf-contact {
    max-width: 640px;
    margin: 0 auto
}
