:root {
    color-scheme: dark;
    --canvas: #050505;
    --ink: #f4f4f5;
    --muted: #a1a1aa;
    --dim: #71717a;
    --faint: #52525b;
    --line: #27272a;
    --accent: #3b82f6;
    --ok: #10b981;
    --glow: #080a10;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;

    background:
        radial-gradient(circle at 15% 20%,
            rgba(70, 100, 255, 0.16),
            transparent 30%),
        radial-gradient(circle at 85% 75%,
            rgba(170, 70, 255, 0.12),
            transparent 30%),
        var(--glow);
}

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

button {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

::selection {
    background: color-mix(in srgb, var(--accent) 30%, transparent);
}

.site {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: clamp(22px, 3.5vw, 56px) clamp(22px, 4.6vw, 76px) clamp(22px, 3vw, 44px);
}

.top,
.bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.top,
main,
.bottom {
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mark {
    width: 32px;
    height: 32px;
    flex: none;
    background: var(--ink);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.brand:hover .mark {
    transform: rotate(90deg);
}

.mark::before {
    content: "";
    width: 14px;
    height: 14px;
    background: var(--canvas);
}

.brand-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: uppercase;
    line-height: 1;
}

.brand-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
}

.dot {
    position: relative;
    width: 6px;
    height: 6px;
    flex: none;
}

.dot::before,
.dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--ok);
}

.dot::before {
    animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
    opacity: .75;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.languages {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 22px);
    direction: ltr;
}

.languages button {
    position: relative;
    border: 0;
    background: none;
    padding: 5px 0;
    color: var(--dim);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    transition: color .2s ease;
}

.languages button:hover,
.languages button[aria-pressed="true"] {
    color: var(--ink);
}

.languages button[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: var(--ink);
}

main {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-block: 20px;
}

.edition {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dim);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin: 0 0 clamp(16px, 3vh, 36px);
}

.edition::before {
    content: "";
    width: 31px;
    height: 1px;
    background: var(--accent);
    flex: none;
}

h1 {
    max-width: 100%;
    margin: 0;
    /* font-size: clamp(52px, 8.2vw, 140px); */
    /* font-weight: 900; */
    /* line-height: .88; */
    /* letter-spacing: -.04em; */
    text-transform: uppercase;
    text-wrap: balance;

    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 730;
    letter-spacing: -0.03em;
    line-height: 0.95;

    background: linear-gradient(110deg,
            #f5f6fa 0%,
            #dce2ff 50%,
            #3c3c3c 100%);

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    filter: drop-shadow(0 0 50px rgba(214, 212, 255, 0.5));
}

.statement {
    max-width: min(640px, 100%);
    overflow-wrap: anywhere;
    margin: clamp(22px, 4vh, 44px) 0 0;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--muted);
    text-wrap: balance;
}

.statement .lead {
    color: var(--ink);
}

.services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    max-width: 100%;
    margin: clamp(20px, 3.6vh, 42px) 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.services .svc {
    color: var(--accent);
}

.services .sep {
    color: var(--faint);
}

.bottom {
    border-top: 1px solid var(--line);
    padding-top: clamp(17px, 2.4vw, 29px);
}

.descriptor {
    max-width: 360px;
    margin: 0;
    color: var(--dim);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.links {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 44px);
    flex: none;
}

.links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
    white-space: nowrap;
    transition: color .2s ease;
}

.links a::after {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--line);
    transition: width .3s ease, background .3s ease;
}

.links a:hover {
    color: var(--ink);
}

.links a:hover::after {
    width: 40px;
    background: var(--accent);
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise .8s cubic-bezier(.22, 1, .36, 1) forwards;
}

.reveal:nth-child(1) {
    animation-delay: .05s;
}

.reveal:nth-child(2) {
    animation-delay: .15s;
}

.reveal:nth-child(3) {
    animation-delay: .25s;
}

.reveal:nth-child(4) {
    animation-delay: .35s;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[dir="rtl"] main {
    align-items: flex-start;
}

[dir="rtl"] .top,
[dir="rtl"] .bottom {
    flex-direction: row;
}

[dir="rtl"] .brand,
[dir="rtl"] .links {
    direction: rtl;
}

[dir="rtl"] h1,
[dir="rtl"] .statement {
    letter-spacing: 0;
}

[dir="rtl"] .edition,
[dir="rtl"] .services,
[dir="rtl"] .descriptor,
[dir="rtl"] .links a,
[dir="rtl"] .brand-status {
    letter-spacing: 0;
}

@media (max-width: 700px) {
    .site {
        padding: 24px 22px 22px;
    }

    .top {
        align-items: flex-start;
    }

    .brand {
        gap: 10px;
    }

    .mark {
        width: 26px;
        height: 26px;
    }

    .mark::before {
        width: 11px;
        height: 11px;
    }

    .brand-name {
        font-size: 11px;
    }

    .brand-status {
        font-size: 9px;
        margin-top: 4px;
    }

    .languages {
        gap: 9px;
        flex: none;
        padding-top: 4px;
    }

    .languages button {
        font-size: 10px;
    }

    .edition {
        font-size: 9px;
        margin-bottom: 18px;
    }

    h1 {
        font-size: clamp(40px, 11.5vw, 72px);
    }

    .statement {
        font-size: clamp(17px, 4.6vw, 22px);
        margin-top: 24px;
    }

    .services {
        font-size: 10px;
        gap: 5px 5px;
        margin-top: 24px;
        padding-top: 13px;
    }

    .bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding-top: 18px;
    }

    [dir="rtl"] .bottom {
        flex-direction: column;
    }

    .links {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 380px) {
    .site {
        padding-inline: 16px;
    }

    .languages {
        gap: 7px;
    }

    h1 {
        font-size: 38px;
    }

    .statement {
        font-size: 16px;
    }

    .services {
        font-size: 9px;
    }
}

@media (max-height: 690px) {
    .site {
        padding-top: 16px;
        padding-bottom: 15px;
    }

    .edition {
        margin-bottom: 12px;
    }

    .statement {
        margin-top: 16px;
    }

    .services {
        margin-top: 16px;
        padding-top: 12px;
    }

    .bottom {
        padding-top: 12px;
        gap: 10px;
    }

    h1 {
        font-size: clamp(38px, 10vh, 80px);
    }

    .statement {
        font-size: clamp(15px, 3.4vh, 20px);
    }
}

@media (max-height: 490px) {
    .site {
        padding-block: 10px;
    }

    .edition {
        margin-bottom: 7px;
    }

    .statement {
        margin-top: 10px;
    }

    .services {
        margin-top: 10px;
    }

    h1 {
        font-size: 32px;
    }

    .statement {
        font-size: 14px;
    }

    .bottom {
        padding-top: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .glow-blob {
        animation: none;
        opacity: .8;
    }

    .veil {
        animation: none;
        opacity: .8;
    }

    .ember {
        animation: none;
        opacity: 0;
    }
}