/* gamelicensor.com — bureaucratic sublime */

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

html, body {
    background: #FAFAFA;
    color: #1A1A1A;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

.document {
    width: 100%;
}

/* ---------------- Section base ---------------- */

.section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 4rem 1.5rem;
}

.section--threshold .threshold__inner,
.section--mandate .mandate__inner,
.section--criteria .criteria__inner,
.section--seal .seal__inner {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

/* ---------------- Section 0 — The Threshold ---------------- */

.threshold__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.threshold__domain {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.12em;
    color: #1A1A1A;
    line-height: 1;
}

.threshold__rule {
    width: 200px;
    height: 1px;
    background: #1A1A1A;
    transition: width 400ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.threshold__rule--expanded {
    width: 100%;
    max-width: 640px;
}

.threshold__enter {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    letter-spacing: 0.08em;
    color: #6B6B6B;
    text-decoration: none;
    cursor: crosshair;
    display: inline-block;
    transition: transform 400ms cubic-bezier(0.25, 0.1, 0.25, 1.0),
                color 400ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.threshold__enter:hover {
    transform: scale(1.05);
    color: #000000;
}

/* ---------------- Section 1 — The Mandate ---------------- */

.mandate__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 480px;
    gap: 2.5rem;
}

.mandate__rule {
    border: none;
    width: 100%;
    height: 1px;
    background: #D4D4D4;
}

.mandate__text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    line-height: 1.75;
    letter-spacing: 0.02em;
    color: #1A1A1A;
    text-align: left;
}

.mandate__text .char {
    opacity: 0;
    display: inline-block;
    white-space: pre;
    transition: opacity 220ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.mandate__text .char--visible {
    opacity: 1;
}

/* ---------------- Section 2 — The Criteria ---------------- */

.section--criteria {
    min-height: 100vh;
    align-items: center;
}

.criteria__inner {
    text-align: left;
}

.criteria__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.criterion {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 600ms cubic-bezier(0.25, 0.1, 0.25, 1.0),
                transform 600ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
    cursor: crosshair;
}

.criterion::after {
    content: '';
    position: absolute;
    left: 22px;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #D4D4D4;
    width: 0;
    transition: width 600ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.criterion--visible {
    opacity: 1;
    transform: translateX(0);
}

.criterion--visible::after {
    width: calc(100% - 22px);
}

.criterion:hover {
    transform: translateX(0) scale(1.02);
}

.criterion:hover .chevron {
    transform: rotate(90deg);
}

.criterion__text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: #1A1A1A;
    flex: 1;
}

/* The Chevron */
.chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #1A1A1A;
    border-right: 0;
    margin-top: 0.5em;
    transition: transform 300ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
    transform-origin: 25% 50%;
    flex-shrink: 0;
}

/* ---------------- Section 3 — The Seal ---------------- */

.seal__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.seal {
    width: 160px;
    height: 160px;
    background: #F0F0F0;
    border: 1px solid #D4D4D4;
    clip-path: polygon(
        30% 0%,
        70% 0%,
        100% 30%,
        100% 70%,
        70% 100%,
        30% 100%,
        0% 70%,
        0% 30%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
    transition: transform 400ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.seal:hover {
    transform: scale(1.05);
}

.seal--pulse {
    animation: pulse-attention 1.5s ease-in-out 1;
}

@keyframes pulse-attention {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 #E8E8E8;
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 20px transparent;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 transparent;
    }
}

.seal__mark {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 0.04em;
    color: #1A1A1A;
}

.seal__date {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: #6B6B6B;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 640px) {
    .threshold__rule--expanded {
        max-width: 90vw;
    }

    .seal {
        width: 128px;
        height: 128px;
    }

    .seal__mark {
        font-size: 2rem;
    }
}
