* { 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 Regular";
    src: url("/fonts/IBMPlexSans-Regular.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: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
}

body.blank-page {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-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;
}

.desktop-branding {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
}

.desktop-name {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: clamp(2rem, 10dvh, 9rem);
    font-weight: 700;
    color: red;
    font-family: "IBM Bold";
    writing-mode: sideways-lr;
}

.desktop-copyright {
    position: fixed;
    bottom: 10px;
    right: 14px;
    display: inline-flex;
    align-items: baseline;
    overflow: hidden;
    white-space: nowrap;
    font-size: 20px;
    font-family: "IBM Medium";
    line-height: 1;
    text-transform: lowercase;
    text-align: left;
    pointer-events: none;
    transform: translateX(0);
    will-change: transform;
}

.copyright-mark {
    flex: none;
}

.copyright-rest {
    display: inline-block;
    max-width: 1000px;
    overflow: hidden;
    white-space: nowrap;
    transform: translateX(0);
    opacity: 1;
    will-change: transform, max-width, opacity;
}

.desktop-branding.copyright-compact .copyright-rest {
    max-width: 0;
    opacity: 0;
    transform: translateX(-0.7em);
}

.desktop-branding.copyright-compact .desktop-copyright {
    transform: translateX(-0.28em);
}

.copyright-measure {
    position: absolute;
    visibility: hidden;
    white-space: nowrap;
    pointer-events: none;
    left: 0;
    top: 0;
    opacity: 0;
}

.desktop-branding.copyright-entering .copyright-rest,
.desktop-branding.copyright-leaving .copyright-rest {
    animation-duration: 360ms;
    animation-fill-mode: both;
    animation-timing-function: linear;
}

.desktop-branding.copyright-entering .desktop-copyright,
.desktop-branding.copyright-leaving .desktop-copyright {
    animation-duration: 360ms;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.desktop-branding.copyright-leaving .copyright-rest {
    animation-name: copyright-out;
}

.desktop-branding.copyright-entering .copyright-rest {
    animation-name: copyright-in;
}

.desktop-branding.copyright-leaving .desktop-copyright {
    animation-name: copyright-shift-out;
}

.desktop-branding.copyright-entering .desktop-copyright {
    animation-name: copyright-shift-in;
}

@keyframes copyright-out {
    0% {
        transform: translateX(0);
        max-width: 1000px;
        opacity: 1;
    }
    40% {
        transform: translateX(-0.14em);
    }
    75% {
        transform: translateX(-0.48em);
        opacity: 0.72;
    }
    100% {
        transform: translateX(-0.7em);
        max-width: 0;
        opacity: 0;
    }
}

@keyframes copyright-in {
    0% {
        transform: translateX(-0.7em);
        max-width: 0;
        opacity: 0;
    }
    58% {
        transform: translateX(0.12em);
        max-width: 1000px;
        opacity: 1;
    }
    78% {
        transform: translateX(-0.04em);
    }
    100% {
        transform: translateX(0);
        max-width: 1000px;
        opacity: 1;
    }
}

@keyframes copyright-shift-out {
    0% {
        transform: translateX(0);
    }
    45% {
        transform: translateX(-0.12em);
    }
    100% {
        transform: translateX(-0.28em);
    }
}

@keyframes copyright-shift-in {
    0% {
        transform: translateX(-0.28em);
    }
    60% {
        transform: translateX(0.08em);
    }
    100% {
        transform: translateX(0);
    }
}

.cards-stage {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 140px 110px;
    pointer-events: none;
}

.cards-wrap {
    width: min(100%, 1200px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 45px 20px;
    pointer-events: auto;
}

.feature-card {
    flex: 0 0 240px;
    width: 240px;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.feature-card img {
    padding: 20px 40px 30px 40px;
    display: block;
    width: 100%;
    aspect-ratio: 6 / 3;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;

    /*filter: grayscale(100%);*/
}
/* .feature-card img:hover {
    filter: grayscale(0%);
} */


.feature-card h2 {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: baseline;
    font-family: "IBM Bold";
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
}

.feature-card h2 .feature-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    padding-left: 0px;
}

.feature-card h2 .feature-title-year {
    position: absolute;
    top: 0px;
    left: 0px;
    writing-mode: sideways-lr;
    text-orientation: mixed;
    transform-origin: top left;
    letter-spacing: 0.08em;
    line-height: 1;
    display: block;
    white-space: nowrap;
    text-align: right;
    font-size: 14px;
}

.feature-card p {
    margin: 0;
    font-family: "IBM Medium";
    font-size: 20px;
    line-height: 1;
    text-transform: lowercase;
    color: #000;
    overflow-wrap: anywhere;

    hyphens: none;
    text-align: left;
}

.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;
    padding-left: 136px;
    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;
}

@media (max-width: 520px) {
    .cards-stage {
        display: none;
    }
}

/* ─── 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;
    }
}