@font-face {
    font-family: 'GROBOLD';
    src: url('../fonts/GROBOLD.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ChantalBold';
    src: url('../fonts/ChantalBold.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HiraMaruPro';
    src: url('../fonts/HiraMaruPro-W4.woff2') format('woff2'),
        url('../fonts/HiraMaruPro-W4.woff') format('woff'),
        url('../fonts/HiraMaruPro-W4.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Walrus';
    src: url('../fonts/Walrus-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Komadori';
    src: url('../fonts/komadori-mini.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
}

.text-ghostPink {
    color: #ea6da4;
}

.text-ghostBlue {
    color: #bce9ff;
}

.text-ghostBlack {
    color: #050505;
}

.text-ghostCream {
    color: #f9f3ff;
}

.text-white\/45 {
    color: rgba(255, 255, 255, 0.45);
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.bg-ghostPink {
    background-color: #ea6da4;
}

.bg-ghostBlue {
    background-color: #bce9ff;
}

.bg-ghostBlack {
    background-color: #050505;
}

.bg-ghostCream {
    background-color: #f9f3ff;
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-black\/45 {
    background-color: rgba(0, 0, 0, 0.45);
}

.border-ghostPink {
    border-color: #ea6da4;
}

.border-ghostBlue {
    border-color: #bce9ff;
}

.border-ghostBlack {
    border-color: #050505;
}

.border-ghostCream {
    border-color: #f9f3ff;
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/15 {
    border-color: rgba(255, 255, 255, 0.15);
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

html,
body {
    height: 100%;
    margin: 0;
    background: #050505;
}

body {
    font-family: 'HiraMaruPro', sans-serif;
    overscroll-behavior: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Walrus', sans-serif;
}

.font-display,
.font-walrus {
    font-family: 'Walrus', sans-serif;
}

.font-body,
.font-hiramarupro {
    font-family: 'HiraMaruPro', sans-serif;
}

.font-accent,
.font-chantalbold {
    font-family: 'ChantalBold', sans-serif;
}

.font-label,
.font-grobold {
    font-family: 'GROBOLD', sans-serif;
}

.font-komadori {
    font-family: 'Komadori', sans-serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-shell {
    perspective: 1500px;
    perspective-origin: center center;
}

.page-stage {
    transform-origin: left center;
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
    will-change: transform;
}

body.menu-open .page-stage {
    filter: saturate(0.85);
    transform: translateZ(-1800px) translateX(-50%) rotateY(45deg);
    border: 24px solid #ea6da4;
}

.ghost-section {
    visibility: hidden;
    opacity: 0;
    transform: translateY(0);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0.4s;
}

.ghost-section.section--is-active,
.ghost-section.section--is-prepped {
    visibility: visible;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0s;
}

.ghost-section.section--is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 10;
}

.ghost-section.section--is-prepped {
    opacity: 0;
    z-index: 9;
}

.ghost-section.section--enter-from-below {
    transform: translateY(45px);
}

.ghost-section.section--enter-from-above {
    transform: translateY(-45px);
}

.ghost-section.section--is-leaving-up,
.ghost-section.section--is-leaving-down {
    visibility: visible;
    opacity: 0;
    z-index: 11;
}

.ghost-section.section--is-leaving-up {
    transform: translateY(-45px);
}

.ghost-section.section--is-leaving-down {
    transform: translateY(45px);
}

.menu-overlay {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.menu-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.menu-link {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    transform: translateX(350px) translateZ(-1000px);
    opacity: 0;
    transition: transform 0.45s ease, opacity 0.45s ease, color 0.3s ease;
    transition-delay: calc(var(--item-index) * 0.04s);
}

.menu-overlay.is-open .menu-link {
    transform: translateX(0) translateZ(0);
    opacity: 1;
}

.menu-link__pill {
    position: absolute;
    inset: 0.2rem;
    border-radius: 9999px;
    background: rgba(234, 109, 164, 0.9);
    opacity: 0;
    transform: scaleX(0.85);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-link.is-active .menu-link__pill,
.menu-link:hover .menu-link__pill {
    opacity: 1;
    transform: scaleX(1);
}

.menu-link.is-active,
.menu-link:hover {
    color: #050505;
}

.menu-toggle__lines {
    position: relative;
    display: block;
    width: 1.8rem;
    height: 1.35rem;
}

.menu-toggle__lines span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.menu-toggle__lines span:nth-child(1) {
    top: 0;
}

.menu-toggle__lines span:nth-child(2) {
    top: calc(50% - 1.5px);
}

.menu-toggle__lines span:nth-child(3) {
    top: calc(100% - 3px);
}

body.menu-open .menu-toggle__lines span:nth-child(1) {
    top: calc(50% - 1.5px);
    transform: rotate(45deg);
}

body.menu-open .menu-toggle__lines span:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-toggle__lines span:nth-child(3) {
    top: calc(50% - 1.5px);
    transform: rotate(-45deg);
}

.side-nav__button {
    display: grid;
    grid-template-columns: auto auto 0fr;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    padding: 0;
    text-transform: uppercase;
}

.side-nav__number {
    font-size: 0.65rem;
    letter-spacing: 0.32em;
}

.side-nav__dot {
    position: relative;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.side-nav__dot::before {
    content: '';
    position: absolute;
    top: -1.45rem;
    left: 50%;
    width: 1px;
    height: 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-50%);
}

.side-nav__button:first-child .side-nav__dot::before {
    display: none;
}

.side-nav__label {
    overflow: hidden;
    max-width: 0;
    white-space: nowrap;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

.side-nav__button.is-active,
.side-nav__button:hover {
    color: #ea6da4;
}

.side-nav__button.is-active .side-nav__dot,
.side-nav__button:hover .side-nav__dot {
    background: #ea6da4;
    border-color: #ea6da4;
    transform: scale(1.15);
}

.side-nav__button.is-active .side-nav__label,
.side-nav__button:hover .side-nav__label {
    max-width: 7rem;
    opacity: 1;
}

.character-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 5rem;
    min-width: 3.8rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    filter: grayscale(0.2);
    opacity: 0.66;
    transform: translateY(0) scale(0.94);
    transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.character-thumb.is-selected,
.character-thumb:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-0.3rem) scale(1);
}

.social-pill {
    border: 0;
    background: transparent;
    color: #ea6da4;
    cursor: pointer;
    font-family: 'ChantalBold', sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
    letter-spacing: 0.06em;
    padding: 0;
    text-align: left;
    transition: color 0.25s ease, transform 0.25s ease;
}

.social-pill:hover {
    color: #ffffff;
    transform: translateX(0.25rem);
}

.ghost-footer {
    background-color: #050505;
}

.ghost-footer__backdrop {
    background-image:
        url('../images/footer_background.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ghost-footer__character-wrap {
    display: block;
    transform-origin: center bottom;
    will-change: transform;
    animation: ghost-footer-bounce 2.6s ease-in-out infinite;
    animation-delay: var(--bounce-delay, 0s);
}

.ghost-footer__character {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform;
    animation: ghost-footer-flip 10s ease-in-out infinite;
    animation-delay: var(--flip-delay, 0s);
}

.ghost-footer__character-wrap:nth-child(1) {
    --bounce-delay: 0s;
    --flip-delay: 0s;
}

.ghost-footer__character-wrap:nth-child(2) {
    --bounce-delay: 0.4s;
    --flip-delay: 3s;
}

.ghost-footer__character-wrap:nth-child(3) {
    --bounce-delay: 0.3s;
    --flip-delay: 4s;
}

.ghost-footer__character-wrap:nth-child(4) {
    --bounce-delay: 0.6s;
    --flip-delay: 6s;
}

.ghost-footer__character-wrap:nth-child(5) {
    --bounce-delay: 0.1s;
    --flip-delay: 7s;
}

@keyframes ghost-footer-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    18% {
        transform: translateY(-8px);
    }

    34% {
        transform: translateY(0);
    }

    48% {
        transform: translateY(-4px);
    }

    62% {
        transform: translateY(0);
    }
}

@keyframes ghost-footer-flip {

    0%,
    8%,
    100% {
        transform: scaleX(1);
    }

    12% {
        transform: scaleX(-1);
    }

    16% {
        transform: scaleX(1);
    }
}

.hero-family {
    filter: drop-shadow(0 18px 70px rgba(0, 0, 0, 0.45));
}

.ghost-feed-card {
    min-height: 0;
}

.hero-title-shell {
    position: relative;
    width: min(100%, 42rem);
}

.hero-title__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-title-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.hero-title-line {
    display: block;
    height: auto;
    overflow: visible;
}

.hero-title-line--1 {
    width: 100%;
}

.hero-title-line--2 {
    width: 97.4%;
}

.hero-title-line--3 {
    width: 66.9%;
}

.hero-title-line--4 {
    width: 47.4%;
}

.hero-title-path {
    fill: rgba(255, 255, 255, 0);
    stroke: #ffffff;
    stroke-width: 10px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
    paint-order: stroke fill markers;
    stroke-opacity: 0;
    stroke-dasharray: var(--path-length, 1);
    stroke-dashoffset: var(--path-length, 1);
}

.hero-title-lines.is-waiting .hero-title-path {
    fill: #ffffff;
    stroke: transparent;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
}

.hero-title-lines.is-animating .hero-title-path {
    animation:
        hero-title-draw 3s cubic-bezier(0.22, 1, 0.36, 1) forwards var(--line-delay),
        hero-title-fill 2.5s ease forwards calc(var(--line-delay) + 2.02s),
        hero-title-stroke-fade 2.4s ease forwards calc(var(--line-delay) + 2.24s);
    /* hero-title-draw 2.15s cubic-bezier(0.22, 1, 0.36, 1) forwards var(--line-delay),
hero-title-fill 0.4s ease forwards calc(var(--line-delay) + 2.02s),
hero-title-stroke-fade 0.28s ease forwards calc(var(--line-delay) + 2.24s); */
}

@keyframes hero-title-draw {
    from {
        stroke-dashoffset: var(--path-length, 1);
        stroke-opacity: 0;
    }

    to {
        stroke-dashoffset: 0;
        stroke-opacity: 1;
    }
}

@keyframes hero-title-fill {
    to {
        fill: #ffffff;
    }
}

@keyframes hero-title-stroke-fade {
    to {
        stroke-opacity: 0;
    }
}

@media (max-width: 1023px) {
    body.menu-open .page-stage {
        transform: translateZ(-1200px) translateX(-38%) rotateY(32deg);
    }
}

@media (max-width: 767px) {
    .hero-title-shell {
        width: min(100%, 26rem);
    }

    .hero-title-lines {
        gap: 0.25rem;
    }

    .side-nav__number,
    .side-nav__label {
        display: none;
    }

    .side-nav__button {
        grid-template-columns: auto;
    }

    .side-nav__dot::before {
        top: -1rem;
        height: 0.85rem;
    }

    .character-thumb {
        min-width: auto;
    }
}