:root {
    --background: #050506;
    --accent-blue: #70b7ff;
    --glow: rgb(74 151 255 / 34%);
    --font: 'Outfit', 'Avenir Next', 'Segoe UI', sans-serif;
    --text: #f5f5f7;
    --muted: #919197;
    --border: rgb(139 178 230 / 14%);
    --ease: cubic-bezier(.4, 0, .2, 1);
    --surface: linear-gradient(150deg, rgb(18 18 20 / 92%), rgb(7 7 9 / 94%));
    --hover-gradient: linear-gradient(125deg, rgb(89 145 255 / 26%), rgb(170 215 255 / 13%), rgb(73 119 237 / 25%));
}

* { box-sizing: border-box; }

body {
    min-width: 280px;
    min-height: 100svh;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a, input[type='range'] { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, input { outline-offset: 6px; }
:focus-visible { outline: 2px solid var(--accent-blue); }
::selection { background: var(--glow); color: white; }
[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Keep the original photo recognizable beneath a dark vignette. */
.background, .background-overlay {
    position: fixed;
    pointer-events: none;
}

.background {
    z-index: -2;
    inset: -5%;
    background: url('../images/speed-ishowspeed.jpg') center / cover;
    filter: blur(6px) saturate(.45) brightness(.46);
}

.background-overlay {
    z-index: -1;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgb(0 0 0 / 28%), rgb(0 0 0 / 70%));
}

.enter-screen {
    position: fixed;
    z-index: 20;
    inset: 0;
    background: rgb(0 0 0 / 40%);
    transition: opacity 320ms ease, visibility 320ms;
}

.enter-button {
    display: grid;
    width: 100%;
    height: 100%;
    padding: 24px;
    border: 0;
    background: transparent;
    place-content: center;
    justify-items: center;
}

.enter-button:focus-visible { outline-offset: -12px; }

.enter-text {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    letter-spacing: -.045em;
    animation: breathe 7s ease-in-out infinite;
    transition: opacity 220ms ease, transform 240ms var(--ease), text-shadow 220ms;
}

.enter-button:hover .enter-text, .enter-button:focus-visible .enter-text {
    transform: translateY(-4px) scale(1.06);
    text-shadow: 0 0 18px rgb(140 190 255 / 50%), 0 0 45px var(--glow);
}

.enter-button:active .enter-text { transform: scale(.96); }

.loading-line {
    position: absolute;
    top: calc(50% + 44px);
    width: 52px;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgb(255 255 255 / 10%);
    opacity: 0;
    transition: opacity 180ms;
}

.loading-line::after {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent-blue);
    content: '';
    transform: scaleX(0);
    transform-origin: left;
}

.is-loading .enter-text { animation: none; opacity: .55; transform: translateY(-3px); }
.is-loading .loading-line { opacity: 1; }
.is-loading .loading-line::after { animation: load 750ms ease forwards; }
.enter-screen.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.noscript-message { position: absolute; right: 20px; bottom: 20px; left: 20px; text-align: center; color: var(--muted); }

.site {
    display: grid;
    min-height: 100svh;
    padding: 60px 24px 190px;
    place-items: center;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 550ms ease, transform 650ms var(--ease);
}

.is-entered .site { opacity: 1; transform: translateY(0); }

.profile-card {
    position: relative;
    display: flex;
    width: min(100%, 400px);
    padding: 43px 32px 24px;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 28px 90px rgb(0 0 0 / 60%), inset 0 1px 0 rgb(255 255 255 / 3%);
    text-align: center;
    transition: border-color 200ms ease, transform 240ms var(--ease);
}

/* SVG dashes travel around the actual perimeter at a steady speed. */
.outline-trace {
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    overflow: visible;
    pointer-events: none;
}

.outline-trace rect {
    x: 1px;
    y: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    rx: var(--outline-radius, 23px);
    fill: none;
    stroke: var(--accent-blue);
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    animation: outline-travel var(--outline-duration, 18s) linear infinite;
}

.outline-blue-glow, .outline-pink-glow { stroke-width: 4px; stroke-dasharray: 14 86; opacity: .85; }
.outline-blue-glow { stroke: #00bfff; filter: drop-shadow(0 0 6px #00bfff) drop-shadow(0 0 14px #0077ff); }
.outline-trace .outline-pink-glow { stroke: #ffd329; filter: drop-shadow(0 0 6px #ffd329) drop-shadow(0 0 14px #ffad19); animation-delay: -9s !important; }
.outline-trace .outline-blue, .outline-trace .outline-pink { stroke: #fff; stroke-width: 1.5px; stroke-dasharray: 14 86; }
.outline-trace .outline-pink { animation-delay: -9s !important; }
.social-link .outline-trace { --outline-radius: 17px; --outline-duration: 18s; opacity: .65; transition: opacity 220ms var(--ease); }
.social-link:hover .outline-trace, .social-link:focus-visible .outline-trace { opacity: .9; }
.social-link:nth-child(2) .outline-trace rect { animation-delay: -4s; }
.social-link:nth-child(3) .outline-trace rect { animation-delay: -8s; }

.avatar-wrap { position: relative; padding: 5px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 50%; }
.avatar-wrap::after { position: absolute; inset: -1px; border: 1px solid transparent; border-top-color: rgb(154 195 255 / 50%); border-bottom-color: rgb(120 173 255 / 18%); border-radius: inherit; content: ''; }
.avatar { display: block; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgb(120 173 255 / 7%); transition: transform 260ms var(--ease); }
.avatar-wrap:hover .avatar { transform: scale(1.035); }
.profile-heading { width: 100%; margin-top: 23px; }
h1 { display: flex; min-height: 45px; margin: 0; align-items: center; justify-content: center; font-size: 38px; font-weight: 700; line-height: 1.16; letter-spacing: -.045em; }
.typing-caret { width: 3px; height: .95em; margin-left: 5px; border-radius: 2px; background: #f5f5f7; animation: caret-blink 1.4s ease-in-out infinite; }
.bio { margin: 7px 0 0; color: #a6a6b0; font-size: 15px; font-weight: 400; line-height: 1.5; letter-spacing: .01em; }
.divider { width: 40px; height: 1px; margin: 27px 0 19px; background: linear-gradient(90deg, transparent, var(--accent-blue), transparent); background-size: 200% 100%; }
.is-entered .divider { animation: reveal 550ms var(--ease) var(--delay) forwards; }
.social-links { display: flex; align-items: center; justify-content: center; gap: 16px; }

.social-link {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 52px;
    height: 52px;
    border: 1px solid transparent;
    border-radius: 18px;
    place-items: center;
    transition: transform 240ms var(--ease), border-color 200ms, box-shadow 220ms;
}

.social-link::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: var(--hover-gradient);
    background-size: 250% 250%;
    content: '';
    opacity: 0;
    transform: scale(.9);
    transition: opacity 180ms, transform 220ms var(--ease);
}

.social-link:nth-child(2) { --phase: -1.2s; }
.social-link:nth-child(3) { --phase: -2.4s; }

.social-link img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    
}

.social-link:hover, .social-link:focus-visible { transform: translateY(-5px) scale(1.12); border-color: rgb(159 202 255 / 35%); box-shadow: 0 10px 26px rgb(90 149 255 / 22%), 0 0 38px rgb(100 163 255 / 17%), inset 0 1px rgb(255 255 255 / 14%); }
.social-link:nth-child(2):hover { transform: translateY(-5px) scale(1.12); }
.social-link:hover::before, .social-link:focus-visible::before { opacity: 1; transform: scale(1); }
.social-link:hover img, .social-link:focus-visible img { filter: brightness(0) invert(1); }
.social-link:active { transform: translateY(-2px) scale(.94); }

.tooltip {
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    z-index: 2;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #111114;
    color: #dddde2;
    font-size: 10px;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -3px);
    transition: opacity 220ms ease, transform 240ms var(--ease);
}

.social-link:hover .tooltip, .social-link:focus-visible .tooltip { opacity: 1; transform: translate(-50%, 0); }
.view-counter { display: flex; align-items: center; gap: 6px; color: #797980; font-size: 11px; font-variant-numeric: tabular-nums; }
.view-counter svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.view-counter span { font-variant-numeric: tabular-nums; }
.profile-footer { display: flex; margin-top: 26px; align-items: center; justify-content: center; gap: 16px; }
.motion-toggle { min-height: 36px; padding: 0 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #ffd329; font-size: 11px; transition: color 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease); }
.motion-toggle:hover, .motion-toggle:focus-visible { border-color: rgb(255 211 41 / 28%); color: #ffd329; background: rgb(255 211 41 / 5%); }
.reveal { opacity: 0; transform: translateY(10px); }
.is-entered .reveal { animation: reveal 550ms var(--ease) var(--delay, 0ms) forwards; }

/* Persistent horizontal player, with all controls directly available. */
.music-widget {
    position: fixed;
    z-index: 10;
    right: 24px;
    bottom: max(28px, env(safe-area-inset-bottom));
    left: 24px;
    width: min(800px, calc(100% - 48px));
    margin: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 400ms 80ms ease, transform 420ms 80ms var(--ease);
}

.is-entered .music-widget { visibility: visible; opacity: 1; transform: translateY(0); }

.music-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px 150px;
    align-items: center;
    gap: 26px;
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    --outline-radius: 19px;
    box-shadow: 0 16px 55px rgb(0 0 0 / 50%), inset 0 1px rgb(255 255 255 / 4%);
    transition: box-shadow 200ms, border-color 200ms;
}

.music-panel .outline-trace { --outline-duration: 18s; }
.music-panel:hover { box-shadow: 0 20px 60px rgb(0 0 0 / 60%), 0 0 32px rgb(91 153 255 / 8%); border-color: rgb(139 178 230 / 28%); }
.player-main { min-width: 0; }
.track-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.track { min-width: 0; }
.track h2 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -.015em;  }
.track p { margin: 3px 0 0; color: #aaaab4; font-size: 12px;  }
.equalizer { display: flex; height: 18px; align-items: center; gap: 3px; }
.equalizer i { width: 2px; height: 100%; border-radius: 3px; background: var(--accent-blue); opacity: .7; transform: scaleY(.25); animation: equalize 550ms ease-in-out infinite alternate; animation-play-state: paused; }
.equalizer i:nth-child(2) { animation-delay: -500ms; }
.equalizer i:nth-child(3) { animation-delay: -250ms; }
.equalizer i:nth-child(4) { animation-delay: -650ms; }
.is-playing .equalizer i { animation-play-state: running; }

.play-button {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 50%;
    background: #f4f4f6;

    color: #11131a;
    place-items: center;
    transition: transform 220ms var(--ease), box-shadow 200ms;
}

.play-button::before { position: absolute; inset: -6px; border: 1px solid rgb(120 173 255 / 15%); border-radius: inherit; content: ''; pointer-events: none; animation: none; }
.play-button svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.play-symbol, .pause-symbol { position: absolute; display: grid; place-items: center; transition: opacity 220ms var(--ease), transform 240ms var(--ease); }
.pause-symbol { opacity: 0; transform: scale(.75); }
.is-playing .play-symbol { opacity: 0; transform: scale(.75); }
.is-playing .pause-symbol { opacity: 1; transform: scale(1); }
.play-button:hover, .play-button:focus-visible { transform: translateY(-3px) scale(1.1); box-shadow: 0 8px 22px rgb(89 145 255 / 28%), 0 0 32px rgb(120 173 255 / 35%); }
.play-button:active { transform: scale(.9); }
.progress { display: flex; margin-top: 9px; align-items: center; gap: 10px; color: #a5a7b2; font-size: 11px; font-variant-numeric: tabular-nums; }
.progress span { flex-shrink: 0; }
.progress .seek { min-width: 0; }
.volume-controls { display: flex; align-items: center; gap: 9px; color: #a5a7b2; }
.speaker { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: none; }
.volume-value { min-width: 28px; font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.playback-message { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Native range semantics, custom tracks and thumbs in Chromium/Safari/Firefox. */
.slider {
    --fill: 0%;
    --slider-color: var(--accent-blue);
    display: block;
    width: 100%;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;

}

.volume { --slider-color: #d2d2d7; flex: 1; min-width: 0; }

.slider::-webkit-slider-runnable-track { height: 3px; border-radius: 9px; background: linear-gradient(to right, var(--slider-color) var(--fill), #303036 var(--fill)); }
.slider::-moz-range-track { height: 3px; border-radius: 9px; background: linear-gradient(to right, var(--slider-color) var(--fill), #303036 var(--fill)); }
.slider::-webkit-slider-thumb { width: 10px; height: 10px; margin-top: -3.5px; border: 0; border-radius: 50%; background: white; opacity: .7; -webkit-appearance: none; transition: opacity 100ms, box-shadow 120ms, transform 120ms var(--ease); }
.slider::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: white; opacity: .7; transition: opacity 100ms, box-shadow 120ms, transform 120ms var(--ease); }
.slider:hover::-webkit-slider-thumb, .slider:focus-visible::-webkit-slider-thumb, .slider:active::-webkit-slider-thumb { opacity: 1; transform: scale(1.3); box-shadow: 0 0 14px rgb(120 173 255 / 65%); }
.slider:hover::-moz-range-thumb, .slider:focus-visible::-moz-range-thumb, .slider:active::-moz-range-thumb { opacity: 1; transform: scale(1.3); box-shadow: 0 0 14px rgb(120 173 255 / 65%); }
.slider:disabled { opacity: .4; cursor: default; }

@media (hover: hover) and (pointer: fine) {
    .profile-card:hover { transform: translateY(-2px); border-color: rgb(139 178 230 / 23%); }
}

@media (max-width: 620px) {
    .site { padding: 44px 20px 240px; }
    .profile-card { max-width: 360px; padding: 35px 24px 22px; }
    h1 { font-size: 36px; }
    .music-widget { right: 16px; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: calc(100% - 32px); }
    .music-panel { grid-template-columns: minmax(0, 1fr) 44px; gap: 12px 16px; padding: 20px; border-radius: 18px; --outline-radius: 17px; }
    .play-button { width: 44px; height: 44px; }
    .track h2 { font-size: 14px; }
    .volume-controls { grid-column: 1 / -1; width: 100%; max-width: 180px; justify-self: end; }
    .equalizer { display: none; }
}

@media (max-height: 700px) {
    .site { min-height: auto; padding-top: 36px; }
    .music-widget { position: relative; right: auto; left: auto; bottom: auto; margin: -160px auto 24px; }
}

@media (max-height: 700px) and (max-width: 620px) {
    .music-widget { margin-top: -205px; }
}

@media (hover: none), (pointer: coarse) {
    .slider { height: 32px; }
    .slider::-webkit-slider-thumb { opacity: 1; }
    .slider::-moz-range-thumb { opacity: 1; }
}

@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .58; } }
@keyframes load { to { transform: scaleX(1); } }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }



@keyframes outline-travel { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }








@keyframes equalize { from { transform: scaleY(.25); } to { transform: scaleY(1); } }


@keyframes caret-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="reduced"] .outline-trace { display: none; }
html[data-motion="reduced"] :is(.site, .reveal, .music-widget, .music-panel) { transform: none; }
html[data-motion="reduced"] .is-entered .reveal { opacity: 1; }
html[data-motion="reduced"] :is(.profile-card:hover, .social-link:hover, .social-link:focus-visible, .social-link:nth-child(2):hover, .play-button:hover, .play-button:focus-visible, .avatar-wrap:hover .avatar, .enter-button:hover .enter-text, .enter-button:focus-visible .enter-text) { transform: none; }
html[data-motion="reduced"] .typing-caret { display: none; }
html[data-motion="reduced"] .is-loading .enter-text { transform: none; }
html[data-motion="reduced"] .is-loading .loading-line::after { transform: scaleX(1); }
