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

body {
    margin: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #fff;
    background-color: #0e0e0e;
    overflow-x: hidden;
    word-break: break-word;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

h1,
p {
    margin-top: 0;
}

/* Background: looping glitch video under a fade-to-black gradient */
.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #0e0e0e;
}

.background-video,
.background-color {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.background-video {
    object-fit: cover;
}

.background-color {
    background-image: linear-gradient(180deg, rgba(14, 14, 14, 0) 0%, #0e0e0e 100%);
}

/* Layout: one column on mobile, intro + contact side by side from 1024px */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 32px;
    padding-left: 32px;
}

@media (min-width: 620px) {
    .container { max-width: 540px; padding-right: 0; padding-left: 0; }
}
@media (min-width: 828px) {
    .container { max-width: 720px; }
}
@media (min-width: 1024px) {
    .container { max-width: 864px; }
}
@media (min-width: 1200px) {
    .container { max-width: 1170px; }
}

.cntrd {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
}

.cntrd > * {
    flex-shrink: 0;
    width: 100%;
}

.intro {
    padding-top: 32px;
}

.contact {
    padding-bottom: 32px;
}

@media (min-width: 1024px) {
    .intro {
        flex: 0 0 auto;
        width: 58.33333333%;
    }
    .contact {
        flex: 1 0 0%;
        margin-left: 8.33333333%;
    }
}

/* Typography */
.hello {
    font-weight: 900;
    font-size: 3.2em;
    line-height: 1.1;
    margin-block-end: 0.5em;
}

.from {
    font-weight: 300;
    font-size: 2.2em;
    line-height: 1.3;
    margin-block-end: 0;
}

hr {
    height: 0;
    margin: 2em 0;
    border: 0;
    border-top: 1px solid #fff;
}

.about {
    margin-bottom: 1.8em;
    font-weight: 300;
    font-size: 1.2em;
    line-height: 1.5;
}

/* Button: inverts on hover; the ball is a square (echoes the glitch rectangles) that jitters now and then, constantly on hover */
.btn {
    display: inline-block;
    width: 100%;
    padding: 15px 40px;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #0e0e0e;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    background-color: #fff;
    cursor: pointer;
    user-select: none;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.btn:hover,
.btn:focus-visible {
    color: #fff;
    background-color: transparent;
    box-shadow: inset 0 0 0 1px #fff;
}

.btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.btn-ball {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 20px;
    vertical-align: middle;
    background-color: currentColor;
    animation: jitter-idle 3s steps(1, end) infinite;
}

.btn:hover .btn-ball,
.btn:focus-visible .btn-ball {
    animation: jitter .3s steps(1, end) infinite;
}

@keyframes jitter {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

@keyframes jitter-idle {
    0%, 12%, 100% { transform: translate(0, 0); }
    2% { transform: translate(-1px, 1px); }
    4% { transform: translate(1px, -1px); }
    6% { transform: translate(-1px, -1px); }
    8% { transform: translate(1px, 1px); }
    10% { transform: translate(-1px, 0); }
}

/* Fade-in on load, no JS needed */
.fade-in {
    animation: fade-in 900ms ease both;
}

.fade-in-delay {
    animation-delay: 150ms;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .btn-ball,
    .btn:hover .btn-ball,
    .btn:focus-visible .btn-ball {
        animation: none;
    }
    .background-video {
        display: none;
    }
}
