/* ===================================================================
   EpixtonixYT. · Portfolio
   Fonts: Fraunces (Serif) · Archivo (Sans) · JetBrains Mono (Mono)
   =================================================================== */

:root {
    /* Dark (ink) surfaces */
    --ink: #0d0e11;
    --ink-2: #121419;
    --surface: #16181f;
    --surface-2: #1b1e26;
    --line: #262a34;
    --line-soft: #1b1e25;

    /* Light (paper) surfaces */
    --paper: #f2eee4;
    --paper-deep: #e9e3d6;
    --paper-ink: #17181c;
    --paper-muted: #6f6b61;
    --paper-line: #d6cfbd;

    /* Text */
    --text: #ecebe6;
    --muted: #8f9097;
    --faint: #5f626b;

    /* Accent */
    --accent: #ff4a2c;
    --accent-deep: #d63a1f;

    --serif: "Fraunces", "Georgia", serif;
    --sans: "Archivo", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;

    --radius: 8px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--ink);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: rgba(255, 74, 44, 0.18);
    -webkit-text-size-adjust: 100%;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: min(1120px, 90%); margin: 0 auto; }

.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }

.accent-dot { color: var(--accent); }

/* ---- Kicker / labels ---- */
.kicker {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 18px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--solid {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 26px rgba(255, 74, 44, 0.28);
}
.btn--solid:hover { background: var(--accent-deep); transform: translateY(-2px); }

.btn--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}
.btn--ghost:hover { border-color: var(--muted); transform: translateY(-2px); }

.btn--ghost-dark {
    background: transparent;
    border-color: var(--paper-line);
    color: var(--paper-ink);
}
.btn--ghost-dark:hover { border-color: var(--paper-muted); transform: translateY(-2px); }

.btn--small { padding: 11px 18px; font-size: 0.88rem; }

.btn--tiny {
    padding: 8px 14px;
    font-size: 0.8rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text);
}
.btn--tiny:hover { border-color: var(--muted); }

/* ===================================================================
   Top bar
   =================================================================== */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}

.topbar.scrolled {
    background: rgba(13, 14, 17, 0.5);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Liquid glass layers */
.topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s var(--ease);
    background:
        radial-gradient(120% 220% at 10% -20%, rgba(255, 74, 44, 0.14), transparent 46%),
        radial-gradient(140% 240% at 92% 130%, rgba(255, 210, 61, 0.1), transparent 48%),
        radial-gradient(70% 160% at 60% 170%, rgba(255, 255, 255, 0.08), transparent 55%);
    background-size: 180% 220%;
    animation: liquid-flow 16s ease-in-out infinite alternate;
}

.topbar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s var(--ease);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.topbar.scrolled::before { opacity: 1; }
.topbar.scrolled::after { opacity: 0.85; }

@keyframes liquid-flow {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 60% 45%; }
    100% { background-position: 18% 90%; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .topbar.scrolled { background: rgba(13, 14, 17, 0.94); }
}

.topbar__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.topbar__brand {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.topbar__nav a {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    border-radius: var(--radius);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.topbar__nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.topbar__nav--accent { color: var(--accent) !important; }
.topbar__nav--accent:hover { color: var(--accent) !important; background: rgba(255, 74, 44, 0.1) !important; }

/* ===================================================================
   Noise texture
   =================================================================== */
.noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================================================================
   Hero
   =================================================================== */
.hero {
    position: relative;
    padding: 168px 0 120px;
    overflow: hidden;
    background:
        radial-gradient(760px 420px at 100% 0%, rgba(255, 74, 44, 0.1), transparent 65%),
        radial-gradient(600px 420px at 0% 100%, rgba(255, 255, 255, 0.03), transparent 60%),
        var(--ink);
}

.hero::after {
    content: "";
    position: absolute;
    right: -220px;
    top: -220px;
    width: 560px;
    height: 560px;
    border: 1px solid var(--line);
    border-radius: 50%;
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 64px;
    align-items: start;
}

.hero__title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.6rem, 11vw, 6.4rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 34px;
    text-wrap: balance;
}

.hero__intro {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 46ch;
    margin-bottom: 30px;
}
.hero__intro strong { color: var(--text); }

.hero__quote {
    border-left: 2px solid var(--accent);
    padding: 4px 0 4px 22px;
    margin-bottom: 34px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.12rem;
    line-height: 1.5;
    color: var(--text);
    max-width: 46ch;
}
.hero__quote cite {
    display: block;
    margin-top: 8px;
    font-family: var(--mono);
    font-style: normal;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faint);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    list-style: none;
    font-size: 0.74rem;
    color: var(--faint);
    letter-spacing: 0.05em;
}
.hero__meta li + li::before {
    content: "·";
    margin: 0 18px;
    color: var(--accent);
}

/* ---- Hero side: cover + tracker ---- */
.hero__side { display: flex; flex-direction: column; gap: 18px; }

.cover {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.cover img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.86;
    object-fit: cover;
}

.cover__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
    padding: 5px 10px;
}

/* ---- Tracker ---- */
.tracker {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 20px 22px;
}

.tracker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 14px;
}

.tracker__live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.tracker__live i { font-size: 0.5rem; animation: blink 1.8s infinite; }

.tracker__actions {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

/* ===================================================================
   Sections
   =================================================================== */
.section { position: relative; padding: 120px 0; }

.section--paper {
    background: var(--paper);
    color: var(--paper-ink);
}

.section-head {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 56px;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 36px;
}
.section--paper .section-head { border-bottom-color: var(--paper-line); }

.section-head__title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.1rem, 4.6vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.section-head__note {
    font-size: 1rem;
    color: var(--muted);
    max-width: 40ch;
    justify-self: end;
    text-align: right;
}
.section--paper .section-head__note { color: var(--paper-muted); }

/* ===================================================================
   Über mich
   =================================================================== */
.about {
    background: var(--ink-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.about__grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 64px;
    align-items: center;
}

.about__photo {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.about__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.7);
    transform-origin: center 20%;
    filter: saturate(0.9) contrast(1.02);
}

.about__copy p {
    color: var(--muted);
    margin-top: 16px;
    font-size: 1.02rem;
    max-width: 52ch;
}

.about__title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

/* ===================================================================
   Releases (paper section)
   =================================================================== */
.featured {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 72px;
}

.featured__art {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid #23262e;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--surface);
}

.featured__art img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.featured__tag {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 12px;
}

.featured__name { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 14px; }

.featured__desc { color: var(--paper-muted); max-width: 46ch; margin-bottom: 26px; }

.featured__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Songliste (live von Apple Music) ---- */
.songlist {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 44px;
}

.songlist__note {
    color: var(--paper-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 8px 4px;
}

.song {
    display: grid;
    grid-template-columns: 56px 32px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    color: var(--paper-ink);
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.song:hover {
    background: var(--paper-deep);
    border-color: var(--paper-line);
}

.song__art {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--paper-line);
}

.song__num { font-size: 0.66rem; color: #a39b88; }

.song__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.song__name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.06rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s var(--ease);
}

.song__info:hover .song__name { color: var(--accent-deep); }

.song__meta { font-size: 0.72rem; color: var(--paper-muted); }

.song__play {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--paper-line);
    border-radius: 50%;
    background: transparent;
    color: var(--paper-ink);
    font-size: 0.68rem;
    padding-left: 1px;
    cursor: pointer;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.song__play:hover { color: var(--accent); border-color: var(--accent); }
.song__play:active { transform: scale(0.9); }
.song__play i.fa-pause { color: var(--accent); }
.song__play--empty { visibility: hidden; }

.song__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.song__btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--paper-line);
    border-radius: 8px;
    background: transparent;
    color: var(--paper-muted);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.song__btn:hover { color: var(--accent); border-color: var(--accent); }
.song__btn:active { transform: scale(0.92); }
.song__btn--spotify:hover { color: #1ed760; border-color: #1ed760; }

/* ---- Lautstärke (neben Play) ---- */
.song__vol {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--paper-muted);
    font-size: 0.72rem;
}

.song__vol-input {
    -webkit-appearance: none;
    appearance: none;
    width: 70px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--accent) 0%,
        var(--accent) var(--fill, 100%),
        var(--paper-line) var(--fill, 100%)
    );
    outline: none;
    cursor: pointer;
}

.song__vol-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--paper-line);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s var(--ease);
}

.song__vol-input::-webkit-slider-thumb:hover { transform: scale(1.2); }

.song__vol-input::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--paper-line);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ---- Marquee ---- */
.marquee {
    margin-top: 80px;
    overflow: hidden;
    border-top: 1px solid var(--paper-line);
    border-bottom: 1px solid var(--paper-line);
    padding: 14px 0;
    white-space: nowrap;
}
.marquee span {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--paper-muted);
    animation: slide 26s linear infinite;
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===================================================================
   Projects
   =================================================================== */
.projects {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
}

.project {
    position: relative;
    background: var(--surface);
    padding: 30px 28px 26px;
    display: flex;
    flex-direction: column;
    transition: background 0.25s var(--ease);
}
.project:hover { background: var(--surface-2); }

.project__index {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.7rem;
    color: var(--faint);
    letter-spacing: 0.12em;
}

.project__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    color: var(--accent);
    margin-bottom: 22px;
    font-size: 1.05rem;
}

.project__name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.22rem;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.project p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }

.project__link {
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.project__link i { transition: transform 0.2s var(--ease); }
.project__link:hover i { transform: translateX(4px); }
.project__link:hover { text-decoration: underline; text-underline-offset: 4px; }

.project__status {
    margin-top: auto;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ===================================================================
   Channels
   =================================================================== */
.channels {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
}

.channels__group-title {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--paper-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.channel {
    display: grid;
    grid-template-columns: 40px 1fr auto 20px;
    align-items: center;
    gap: 12px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--paper-line);
    transition: padding-left 0.2s var(--ease), background 0.2s var(--ease);
}
.channel:hover { padding-left: 10px; background: rgba(23, 24, 28, 0.04); }

.channel__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--paper-line);
    color: var(--paper-ink);
    font-size: 1.05rem;
}

.channel__name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }

.channel__handle { font-size: 0.74rem; color: var(--paper-muted); }

.channel__arrow {
    color: var(--paper-muted);
    font-size: 0.8rem;
    transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.channel:hover .channel__arrow { color: var(--accent-deep); transform: translate(2px, -2px); }

/* ---- CTA strip ---- */
.cta-strip {
    margin-top: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    background: var(--paper-deep);
    border: 1px solid var(--paper-line);
    border-radius: var(--radius);
    padding: 30px 34px;
}
.cta-strip .kicker { margin-bottom: 8px; }
.cta-strip__title { font-size: 1.6rem; font-weight: 900; margin-bottom: 6px; }
.cta-strip p:not(.kicker) { color: var(--paper-muted); font-size: 0.95rem; }

/* ===================================================================
   Footer
   =================================================================== */
.footer {
    background: var(--ink-2);
    border-top: 1px solid var(--line-soft);
    padding: 40px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__brand { font-weight: 700; font-size: 0.98rem; }
.footer__meta { font-size: 0.72rem; color: var(--faint); letter-spacing: 0.04em; }
.footer__copy { font-size: 0.72rem; color: var(--faint); }

/* ===================================================================
   Reveal
   =================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================================================================
   Custom scrollbar
   =================================================================== */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2c3140, #3a4050);
    border: 3px solid var(--ink);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #454c5f, var(--accent));
}

html {
    scrollbar-width: thin;
    scrollbar-color: #3a4050 var(--ink);
}

/* ===================================================================
   Checkpoint rail
   =================================================================== */
.rail {
    position: fixed;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.rail__track,
.rail__progress {
    position: absolute;
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 1px;
    transform: translateX(-50%);
    pointer-events: none;
}

.rail__track { background: var(--line); }

.rail__progress {
    background: linear-gradient(180deg, var(--accent), #ffb29f);
    height: 0;
    transition: height 0.15s linear;
}

.rail__item {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
}

.rail__dot {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ink);
    border: 1px solid var(--muted);
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
        box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.rail__item:hover .rail__dot,
.rail__item.active .rail__dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 74, 44, 0.18);
}

.rail__item.active .rail__dot { transform: scale(1.25); }

.rail__label {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 5px 11px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.rail__item:hover .rail__label {
    opacity: 1;
    transform: translateY(-50%);
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
    .hero { padding: 140px 0 80px; }
    .hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .hero__side { max-width: 520px; }

    .about__grid { grid-template-columns: 1fr; gap: 40px; }
    .about__photo { max-width: 420px; }

    .section-head { grid-template-columns: 1fr; gap: 18px; }
    .section-head__note { text-align: left; justify-self: start; }

    .projects { grid-template-columns: repeat(2, 1fr); }
    .channels { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
    .container { width: 90%; }

    .topbar__inner { height: 56px; }
    .topbar__brand { font-size: 1rem; }
    .topbar__nav a:not(.topbar__nav--accent) { display: none; }
    .topbar__nav--accent { padding: 6px 10px; font-size: 0.8rem; }

    .hero { padding: 92px 0 44px; }
    .hero__title { font-size: clamp(2.2rem, 12vw, 4.8rem); margin-bottom: 20px; }
    .hero__intro { font-size: 1rem; margin-bottom: 20px; max-width: 42ch; }
    .hero__quote { font-size: 1rem; padding: 2px 0 2px 16px; margin-bottom: 22px; }
    .hero__actions { margin-bottom: 26px; }
    .hero__meta { font-size: 0.7rem; }
    .hero__side { gap: 14px; max-width: 480px; }

    .tracker { padding: 16px 18px; }
    .tracker__actions { margin-bottom: 2px; }

    .section { padding: 62px 0; }
    .section-head { margin-bottom: 36px; padding-bottom: 22px; }
    .section-head__title { font-size: clamp(1.75rem, 7.5vw, 2.6rem); }
    .section-head__note { font-size: 0.95rem; }

    .about__grid { gap: 28px; }
    .about__photo { max-width: 100%; }
    .about__photo img { aspect-ratio: 16 / 9; }
    .about__copy p { font-size: 0.96rem; margin-top: 12px; }

    .featured { grid-template-columns: 1fr; gap: 22px; margin-bottom: 44px; }
    .featured__art { max-width: 260px; }
    .featured__name { font-size: 1.7rem; margin-bottom: 8px; }
    .featured__desc { font-size: 0.94rem; margin-bottom: 18px; }
    .marquee { margin-top: 52px; padding: 10px 0; }

    .projects { grid-template-columns: 1fr; }
    .project { padding: 20px; }
    .project__icon { width: 38px; height: 38px; margin-bottom: 18px; }
    .project__name { font-size: 1.12rem; margin-bottom: 8px; }
    .project p { font-size: 0.9rem; margin-bottom: 14px; }
    .project__index { top: 18px; right: 18px; }

    .channels { gap: 32px; }

    .cta-strip { padding: 22px 20px; }

    /* Bottom checkpoint nav */
    .rail {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        flex-direction: row;
        align-items: stretch;
        justify-content: space-around;
        gap: 0;
        width: 100%;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(13, 14, 17, 0.88);
        backdrop-filter: blur(18px) saturate(140%);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }
    .rail__track,
    .rail__progress { display: none; }
    .rail__item {
        width: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 3px 8px;
    }
    .rail__dot { width: 7px; height: 7px; }
    .rail__label {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: none;
        background: none;
        border: none;
        padding: 0;
        font-size: 0.56rem;
        letter-spacing: 0.03em;
        color: var(--muted);
        transition: color 0.2s var(--ease);
    }
    .rail__item:hover .rail__label { transform: none; }
    .rail__item.active .rail__label { color: var(--accent); }
    .rail__item.active .rail__dot { box-shadow: 0 0 0 3px rgba(255, 74, 44, 0.2); }

    .footer { padding: 28px 0 74px; }
}

@media (max-width: 480px) {
    html { font-size: 93.75%; }

    .section { padding: 48px 0; }
    .section-head { margin-bottom: 28px; padding-bottom: 16px; }

    .hero { padding: 80px 0 36px; }
    .hero__meta li + li::before { margin: 0 12px; }

    .hero__actions { flex-direction: column; }
    .hero__actions .btn,
    .featured__links .btn,
    .cta-strip .btn {
        width: 100%;
        justify-content: center;
    }

    .tracker__actions { flex-wrap: wrap; }

    .featured { gap: 16px; margin-bottom: 32px; }
    .featured__art { max-width: 100%; }

    .songlist { margin-top: 32px; gap: 2px; }
    .song {
        grid-template-columns: 44px 1fr auto;
        gap: 10px;
        padding: 8px 6px;
    }
    .song__art { width: 44px; height: 44px; }
    .song__num { display: none; }
    .song__name { font-size: 0.98rem; }
    .song__meta { font-size: 0.66rem; }
    .song__actions { gap: 6px; }
    .song__btn { width: 32px; height: 32px; }
    .song__play { width: 32px; height: 32px; }
    .song__vol-input { width: 52px; }

    .channel {
        grid-template-columns: 36px 1fr;
        row-gap: 2px;
        padding: 12px 2px;
    }
    .channel__icon { grid-row: 1 / span 2; width: 36px; height: 36px; }
    .channel__name { font-size: 1.02rem; }
    .channel__handle { grid-column: 2; font-size: 0.66rem; align-self: start; }
    .channel__arrow { display: none; }

    .cta-strip { flex-direction: column; align-items: flex-start; }

    .footer__inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}