* { box-sizing: border-box; }

html, body {
    height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

@font-face {
    font-family: "IBM Bold";
    src: url("/fonts/IBMPlexSans-Bold.ttf") format("truetype");
}
@font-face {
    font-family: "IBM Medium";
    src: url("/fonts/IBMPlexSans-Medium.ttf") format("truetype");
}

body {
    -webkit-user-select: none;
    user-select: none;
    margin: 0;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ─── Views ───────────────────────────────────────────────────────────────── */

#mobile-view  { display: block; }
#desktop-view { display: none; }

@media (min-width: 420px) and (pointer: fine) {
    #mobile-view  { display: none; }
    #desktop-view { display: block; }
}

#mobile-view {
    position: fixed;
    inset: 0;
}

.mobile-name {
    position: fixed;
    inset: 0;
    bottom: 12dvh;
    display: flex;
    align-items: left;
    justify-content: center;
    padding: 30px;
    writing-mode: sideways-lr;
    white-space: nowrap;
    font-size: clamp(2rem, 10dvh, 9rem);
    font-weight: 700;
    color: red;
    font-family: "IBM Bold";
}

.mobile-copyright {
    position: fixed;
    bottom: 10px;
    right: 14px;
    font-size: 20px;
    font-family: "IBM Medium";
    line-height: 1;
    text-transform: lowercase;
}

/* ─── Desktop ─────────────────────────────────────────────────────────────── */

.container {
    position: fixed;
    inset: 0;
    display: flex;
    gap: 6px;
    padding: 10px;
    overflow: hidden;
}

.column {
    flex: none;
    width: 240px;
    min-width: 0;
    will-change: transform;
}

.name-column {
    width: 120px;
    position: relative;
    z-index: 9999;
    overflow: visible;
}

.content-card {
    background: #fff;
    margin-bottom: 6px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.small  { height: 114px; }
.medium { height: 174px; }
.large  { height: 294px; }

.content-card .overtitle {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    line-height: 1;
    font-family: "IBM Bold";
    overflow-wrap: anywhere;
    word-break: break-word;
}

.content-card p {
    margin: 0;
    font-size: 20px;
    line-height: 1;
    text-transform: lowercase;
    font-family: "IBM Medium";
    text-align: left;
    hyphens: none;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.copy-email, .copy-phone, .open-link, .open-doc {
    cursor: pointer;
    color: red;
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    font-family: "IBM Bold";
    display: inline-block;
    text-align: left;
    margin-top: 0.35em;
}

.name-card, .sign-card {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -1px;
    font-weight: 700;
    color: red;
    font-family: "IBM Bold";
    writing-mode: sideways-lr;
    white-space: nowrap;
    overflow: visible;
    will-change: transform;
    pointer-events: none;
}

.name-card {
    padding: 30px;
    font-size: 9rem;
}

.sign-card {
    height: 250px;
    font-size: 11rem;
}

.gap { display: block; height: 0.3em; }

.content-card p a {
    cursor: pointer;
    color: red;
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    font-family: "IBM Bold";
    display: inline;
    text-align: inherit;
    margin-top: 0;
}

/* ─── MA page ───────────────────────────────────────────────────────────── */

.ma-page {
    overflow: auto;
}

.ma-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 340px));
    gap: 20px;
    place-content: center;
    place-items: stretch;
    padding: 10px;
}

.ma-text-card,
.ma-pdf-card {
    height: 490px;
    margin-bottom: 0;
}

.ma-text-card {
    padding: 0px;
}

.ma-text-card .overtitle {
    margin-bottom: 0;
}

.ma-pdf-card .overtitle {
    margin-bottom: 0px;
}

.ma-text-card p {
    font-size: 20px;
    line-height: 1;
}

.ma-text-card p a {
    font-size: 16px;
    font-family: "IBM Bold";
    text-transform: uppercase;
}

.ma-pdf-card {
    position: relative;
    padding: 0px;
}

.ma-text-card .overtitle,
.ma-text-card p,
.ma-pdf-card .overtitle {
    position: relative;
    z-index: 4;
}

.ma-pdf-frame {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #fff;
    width: 100%;
    aspect-ratio: 210 / 297;
    overflow-y: auto;
    overflow-x: hidden;
    border: 0;
    margin-top: 1px;
    z-index: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ma-pdf-frame::-webkit-scrollbar {
    display: none;
}

.ma-pdf-pages {
    display: none;
    width: 100%;
    background: #fff;
}

.ma-pdf-page {
    width: 100%;
    background: #fff;
    margin-bottom: 10px;
    overflow: hidden;
}

.ma-pdf-page:last-child {
    margin-bottom: 0;
}

.ma-pdf-page canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
}

.ma-pdf-fallback {
    display: block;
    margin: 12px;
    font-size: 14px;
    font-family: "IBM Medium";
    text-transform: lowercase;
    color: #000000;
    line-height: 1.2;
}

.ma-pdf-fallback a {
    color: red;
    font-family: "IBM Bold";
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
}

.ma-pdf-frame.pdf-ready .ma-pdf-pages {
    display: block;
}

.ma-pdf-frame.pdf-ready .ma-pdf-fallback {
    display: none;
}

.ma-pdf-frame.pdf-unavailable .ma-pdf-pages {
    display: none;
}

.ma-pdf-frame.pdf-unavailable .ma-pdf-fallback {
    display: block;
}

@media (max-width: 780px) {
    .ma-layout {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .ma-text-card,
    .ma-pdf-card {
        height: auto;
        min-height: 320px;
    }

    .ma-pdf-frame {
        min-height: 420px;
        aspect-ratio: auto;
    }
}