@font-face {
    font-family: 'RosaLines';
    src: url('/RosaLines.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #fff;
    color: #000;
    line-height: 1.3;
    min-height: 100vh;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

/* ── Layout ── */

main {
    width: 100%;
}

main.no-scroll {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-container {
    height: 100vh;
    padding: 10px;
    margin-bottom: 40px;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    position: relative;
    height: 100%;
    aspect-ratio: auto;
    transform-style: preserve-3d;
    animation: hero-spin 16s linear infinite;
}

.hero-face {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    backface-visibility: hidden;
}

.hero-face img {
    height: 100%;
    width: auto;
    display: block;
}

.hero-back {
    transform: translateX(-50%) rotateY(180deg);
}

@keyframes hero-spin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

@media (hover: hover) and (pointer: fine) {
    .hero-card,
    .hero-face,
    .hero-face img {
        cursor: grab;
    }
    body.is-dragging,
    body.is-dragging * {
        cursor: grabbing !important;
    }
}

/* ── Splash ── */

.splash {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}

.splash-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.splash-label {
    font-size: 20px;
    letter-spacing: 0.05em;
    max-width: 40ch;
    text-align: center;
    line-height: 1.3;
}

.splash-form {
    display: flex;
    position: relative;
}

.splash-form input[type="email"] {
    font-family: inherit;
    font-size: 20px;
    border: 1px solid #000;
    outline: none;
    padding: 6px 10px;
    width: 280px;
    background: transparent;
    letter-spacing: 0.05em;
}

.splash-form input[type="email"]::placeholder {
    color: #aaa;
}

.splash-form button {
    font-family: inherit;
    font-size: 20px;
    font-weight: normal;
    background: none;
    border: 1px solid #000;
    border-left: none;
    cursor: pointer;
    padding: 6px 14px;
    letter-spacing: 0.05em;
}

.splash-form button:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .splash-form {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .splash-form input[type="email"] {
        width: 100%;
        border-radius: 0;
        -webkit-appearance: none;
    }
    .splash-form button {
        border-left: 1px solid #000;
        border-radius: 0;
        -webkit-appearance: none;
        color: #000;
        width: 100%;
    }
}

.splash-footer {
    font-size: 20px;
    letter-spacing: 0.05em;
    line-height: 1.3;
    max-width: 60ch;
    text-align: center;
}

/* ── Sections ── */

#sections > .section-wrap {
    position: relative;
    padding: 40px 20px;
    image-rendering: pixelated;
}

#sections > .section-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: #000;
}

#sections > .section-wrap:first-child {
    padding-top: 0;
}

#sections > .section-wrap:first-child::before {
    display: none;
}

#sections > .section-wrap:last-child {
    padding-bottom: 40px;
}


/* ── Text Section ── */

.text-section {
    max-width: 100ch;
    margin: 0 auto;
}

.text-section p {
    font-size: 20px;
    letter-spacing: 0.05em;
    line-height: 1.4;
    margin: 0 0 1.5em;
}

.text-section p:has(.section-btn),
.text-section .section-btns {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    text-align: center;
}

.text-section p:last-child {
    margin-bottom: 0;
}


.text-section a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.section-btn,
.text-section a.section-btn {
    display: inline-block;
    padding: 20px 24px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.05em;
    margin: 12px 6px;
    transition: background 0.15s, color 0.15s;
}

.section-btn:hover,
.text-section a.section-btn:hover {
    background: #000;
    color: #fff;
}

.title {
    text-align: center;
    letter-spacing: 0.05em;
    font-size: 20px;
    line-height: 1;
    margin: 0 0 1.5em;
}

/* ── List Section ── */

.crowdfunding {
    max-width: 100ch;
    margin: 0 auto;
}

.crowdfunding p {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 1.5em;
    letter-spacing: 0.05em;
}


.crowdfunding .list-item {
    padding: 10px 0;
    padding-left: 90px;
    position: relative;
    border-top: 1px solid #000;
}

.crowdfunding .list-item:last-child {
    border-bottom: 1px solid #000;
    margin-bottom: 40px;
}

.crowdfunding .list-item::before {
    content: attr(data-price);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0.05em;
}

.crowdfunding .item-title {
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0.05em;
    margin: 0;
}

.crowdfunding .item-desc {
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0.05em;
    padding-left: 1.5em;
}

/* ── Project supporters ── */

.supporters-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.supporters-label {
    text-align: center;
    font-size: 20px;
    letter-spacing: 0.05em;
    padding: 0 20px 40px;
}

.project-supporters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 20px;
    column-gap: 0;
    font-size: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.project-supporters svg {
    display: block;
}

.supporter-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.supporter-svg {
    width: 100%;
    height: auto;
}

.supporter-name {
    font-size: 14px;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.2;
    overflow-wrap: break-word;
    width: 100%;
    margin-top: -10px;
}

/* ── Banner (WeMakeIt) ── */

.banner-section {
    display: block;
    text-decoration: none;
    color: #000;
    text-align: center;
    padding: 40px 20px;
}

a.banner-inner,
a.banner-title {
    text-decoration: none;
    color: #000;
}

.banner-inner {
    --banner-stroke: 1px;
    width: 100%;
    max-width: 800px;
    height: 50vh;
    border: var(--banner-stroke) solid #000;
    color: #000;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: clip;
    overflow-y: visible;
    padding: 0;
    gap: 0;
}

.banner-inner svg line,
.banner-inner svg circle,
.banner-inner svg polyline,
.banner-inner svg path {
    stroke: currentColor;
    stroke-width: var(--banner-stroke);
    vector-effect: non-scaling-stroke;
}

.banner-parade {
    width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    flex: 1;
    display: flex;
    align-items: center;
    margin-top: -40px;
}

.banner-track {
    display: flex;
    align-items: flex-end;
    height: 100%;
    gap: 40px;
    animation: banner-scroll linear infinite;
    animation-duration: calc(var(--count) * 3s);
    will-change: transform;
    -webkit-font-smoothing: antialiased;
}

.banner-figure {
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 200px;
    animation: figure-wobble 2s ease-in-out infinite alternate;
}

.banner-figure:nth-child(even) {
    animation-delay: -1s;
}

.banner-figure:nth-child(3n) {
    animation-duration: 2.5s;
}

.banner-figure:nth-child(5n) {
    animation-duration: 1.8s;
}

@keyframes figure-wobble {
    from { transform: rotate(-8deg); }
    to { transform: rotate(8deg); }
}

.figure-heart {
    transform-box: fill-box;
    transform-origin: center center;
    animation: heart-beat 1.2s ease-in-out infinite;
}

.banner-figure:nth-child(even) .figure-heart {
    animation-delay: -0.6s;
}

.banner-figure:nth-child(3n) .figure-heart {
    animation-delay: -0.3s;
}

@keyframes heart-beat {
    0%   { transform: scale(1); }
    8%   { transform: scale(1.3); }
    16%  { transform: scale(1); }
    25%  { transform: scale(1.2); }
    33%  { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes banner-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.banner-figure-name {
    font-family: 'RosaLines', 'Times New Roman', Times, serif;
    font-size: 48px;
    letter-spacing: 0.8px;
    text-align: center;
    line-height: 0.9;
    -webkit-text-stroke: 0.5px currentColor;
    overflow-wrap: break-word;
    width: 100%;
    position: absolute;
    top: 80%;
    left: 0;
}

.banner-message {
    font-size: 20px;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.4;
    padding: 16px 20px 8px;
}

.banner-stats {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 20px;
    letter-spacing: 0.05em;
    padding: 8px 20px 16px;
}

.banner-title {
    display: block;
    font-size: 20px;
    letter-spacing: 0.05em;
    padding: 20px 0 0;
    line-height: 1.5;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.banner-wrap {
    text-align: center;
}

/* ── Footer ── */

#footer {
    border-top: 1px solid #000;
    padding: 40px 20px 50px;
    line-height: 1.3;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    display: flex;
    flex-shrink: 0;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.footer-right .footer-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-text {
    text-align: left;
}

.footer-credit {
    font-size: 20px;
    letter-spacing: 0.05em;
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    align-self: flex-start;
}

@media (max-width: 768px) {
    #footer {
        flex-direction: column;
        align-items: center;
    }
    .footer-right {
        align-items: center;
        gap: 20px;
    }
    .footer-credit {
        align-self: center;
    }
    .footer-text {
        text-align: center;
    }
}


.footer-text p {
    font-size: 20px;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.footer-text a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

/* ── Supporter logo ── */

.supporter-logo {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    mix-blend-mode: exclusion;
    filter: invert(1);
    text-decoration: none;
}

.supporter-logo img {
    display: block;
    width: 184px;
    height: auto;
}

@media (max-width: 768px) {
    .supporter-logo {
        display: none;
    }
}

.inline-logo {
    display: inline-block;
    mix-blend-mode: exclusion;
}

/* ── Tablet ── */

@media (max-width: 1420px) {
    main.no-scroll {
        padding: 10px;
        overflow: hidden;
    }

    .hero-container {
        height: 50vh;
    }

    #footer {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .footer-content {
        justify-content: flex-start;
        flex: none;
    }

}


/* ── Phone ── */

@media (max-width: 768px) {
    main.no-scroll {
        height: auto;
        overflow: visible;
    }

    .text-section p,
    .footer-text p,
    .footer-links a,
    .crowdfunding p,
    .crowdfunding .item-title,
    .crowdfunding .item-desc,
    .crowdfunding .list-item::before,
    .title,
    .supporters-label {
        font-size: 20px;
    }

    .project-supporters svg text {
        font-size: 14px;
    }

    #footer {
        min-height: 0;
        padding-bottom: 40px;
    }

    .text-section .section-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }

    .section-btn,
    .text-section a.section-btn {
        width: 100%;
        text-align: center;
    }

    .banner-figure-name {
        font-size: 34px;
    }

    .banner-figure {
        width: 120px;
    }

}

