.contact-hub {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgb(228 228 231);
    background: #fff;
}

.dark .contact-hub {
    border-color: rgb(63 63 70);
    background: rgb(24 24 27);
}

.contact-hub__body {
    display: grid;
    gap: 2rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .contact-hub__body {
        padding: 2.5rem;
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .contact-hub__body {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        align-items: center;
        padding: 3rem;
        gap: 2.5rem;
    }
}

.contact-hub__main {
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .contact-hub__main {
        grid-column: span 7;
    }
}

.contact-hub__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(113 113 122);
}

.dark .contact-hub__label {
    color: rgb(161 161 170);
}

.contact-hub__title {
    margin-top: 1rem;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: rgb(24 24 27);
}

.dark .contact-hub__title {
    color: rgb(250 250 250);
}

.contact-hub__desc {
    margin-top: 0.75rem;
    max-width: 28rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgb(113 113 122);
}

@media (min-width: 768px) {
    .contact-hub__desc {
        font-size: 1rem;
    }
}

.dark .contact-hub__desc {
    color: rgb(161 161 170);
}

.contact-hub__actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.contact-hub__btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background: rgb(24 24 27);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-hub__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.dark .contact-hub__btn-primary {
    color: rgb(24 24 27);
    background: #fff;
}

.contact-hub__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 0.375rem;
    border: 1px solid rgb(212 212 216);
    background: transparent;
    color: rgb(24 24 27);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-hub__btn-secondary:hover {
    background: rgb(244 244 245);
    border-color: rgb(161 161 170);
}

.dark .contact-hub__btn-secondary {
    border-color: rgb(63 63 70);
    color: rgb(250 250 250);
}

.dark .contact-hub__btn-secondary:hover {
    background: rgb(39 39 42);
}

.contact-hub__meta {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

.contact-hub__meta a {
    color: rgb(82 82 91);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-hub__meta a:hover {
    color: rgb(24 24 27);
}

.dark .contact-hub__meta a {
    color: rgb(161 161 170);
}

.dark .contact-hub__meta a:hover {
    color: rgb(250 250 250);
}

.contact-hub__meta-sep {
    color: rgb(212 212 216);
}

.dark .contact-hub__meta-sep {
    color: rgb(63 63 70);
}

.contact-hub__visual {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    max-width: 16rem;
    margin-inline: auto;
}

@media (min-width: 1024px) {
    .contact-hub__visual {
        grid-column: span 5;
        max-width: 20rem;
        margin-left: auto;
        margin-right: 1.5rem;
    }
}

.contact-hub__visual-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid rgb(228 228 231);
    background:
        radial-gradient(ellipse 80% 70% at 50% 50%, rgba(244, 244, 245, 0.9) 0%, transparent 70%),
        linear-gradient(rgba(24, 24, 27, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 24, 27, 0.04) 1px, transparent 1px),
        #fafafa;
    background-size: 100% 100%, 18px 18px, 18px 18px, 100% 100%;
    overflow: hidden;
}

.dark .contact-hub__visual-inner {
    border-color: rgb(63 63 70);
    background:
        radial-gradient(ellipse 80% 70% at 50% 50%, rgba(39, 39, 42, 0.8) 0%, transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        rgb(9 9 11);
    background-size: 100% 100%, 18px 18px, 18px 18px, 100% 100%;
}

.contact-hub__visual-inner--tetris {
    align-items: stretch;
    justify-content: stretch;
    background: #fafafa;
}

.dark .contact-hub__visual-inner--tetris {
    background: rgb(9 9 11);
}

.contact-hub-tetris {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0.5rem;
    outline: none;
    overflow: hidden;
    box-sizing: border-box;
}

.contact-hub-tetris--with-hint {
    grid-template-rows: minmax(0, 1fr) auto;
    row-gap: 0.375rem;
}

.contact-hub-tetris:focus-visible {
    box-shadow: inset 0 0 0 2px rgb(24 24 27);
    border-radius: 0.5rem;
}

.dark .contact-hub-tetris:focus-visible {
    box-shadow: inset 0 0 0 2px rgb(250 250 250);
}

.contact-hub-tetris__stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.contact-hub-tetris__score {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 1;
    padding: 0.15rem 0.4rem;
    font-size: 0.6875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    color: rgb(24 24 27);
    border-radius: 0.25rem;
    background: rgba(250, 250, 250, 0.88);
    pointer-events: none;
}

.dark .contact-hub-tetris__score {
    color: rgb(250 250 250);
    background: rgba(9, 9, 11, 0.82);
}

.contact-hub-tetris__score[hidden] {
    display: none;
}

.contact-hub-tetris__cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background: rgba(250, 250, 250, 0.72);
    backdrop-filter: blur(2px);
}

.dark .contact-hub-tetris__cover {
    background: rgba(9, 9, 11, 0.75);
}

.contact-hub-tetris__cover[hidden] {
    display: none;
}

.contact-hub-tetris__start {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgb(24 24 27);
    border-radius: 0.375rem;
    background: #fff;
    color: rgb(24 24 27);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-hub-tetris__start:hover {
    background: rgb(24 24 27);
    color: #fff;
}

.dark .contact-hub-tetris__start {
    border-color: rgb(250 250 250);
    background: rgb(24 24 27);
    color: rgb(250 250 250);
}

.dark .contact-hub-tetris__start:hover {
    background: rgb(250 250 250);
    color: rgb(24 24 27);
}

.contact-hub-tetris__canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.375rem;
    cursor: grab;
    touch-action: none;
}

.contact-hub-tetris__canvas:active {
    cursor: grabbing;
}

.contact-hub-tetris__hint {
    margin: 0;
    padding: 0;
    font-size: 0.625rem;
    line-height: 1.3;
    text-align: center;
    color: rgb(161 161 170);
}

.contact-hub-tetris__hint[hidden] {
    display: none;
}

.dark .contact-hub-tetris__hint {
    color: rgb(113 113 122);
}

.contact-hub__strip {
    display: flex;
    align-items: stretch;
    border-top: 1px solid rgb(228 228 231);
}

.dark .contact-hub__strip {
    border-top-color: rgb(63 63 70);
}

.contact-hub__strip-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-right: 1px solid rgb(228 228 231);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgb(113 113 122);
}

@media (min-width: 768px) {
    .contact-hub__strip-label {
        padding: 1.125rem 1.75rem;
    }
}

.dark .contact-hub__strip-label {
    border-right-color: rgb(63 63 70);
    color: rgb(161 161 170);
}

.contact-hub__marquee-wrap {
    position: relative;
    flex: 1;
    overflow: hidden;
    padding: 1rem 0;
}

.contact-hub__marquee-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 2.5rem;
    pointer-events: none;
}

@media (min-width: 768px) {
    .contact-hub__marquee-fade {
        width: 4rem;
    }
}

.contact-hub__marquee-fade--left {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.contact-hub__marquee-fade--right {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.dark .contact-hub__marquee-fade--left {
    background: linear-gradient(to right, rgb(24 24 27), transparent);
}

.dark .contact-hub__marquee-fade--right {
    background: linear-gradient(to left, rgb(24 24 27), transparent);
}

.contact-hub__marquee {
    display: flex;
    width: max-content;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: contact-hub-marquee 50s linear infinite;
}

.contact-hub__marquee:hover {
    animation-play-state: paused;
}

.contact-hub__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    padding: 0 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid rgb(228 228 231);
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(113 113 122);
    white-space: nowrap;
    flex-shrink: 0;
}

.dark .contact-hub__pill {
    border-color: rgb(63 63 70);
    background: rgba(9, 9, 11, 0.5);
    color: rgb(161 161 170);
}

@keyframes contact-hub-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-hub__marquee {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        padding: 0 1rem;
        justify-content: center;
    }

    .contact-hub__marquee > [aria-hidden='true'] {
        display: none;
    }

    .contact-hub__marquee-fade {
        display: none;
    }
}
