/* Seif Mohammed portfolio — dark studio theme, reference: webforge6 Hanna */

:root {
    --pf-bg: #07080f;
    --pf-ink: #f2f0eb;
    --pf-mute: #9aa0ae;
    --pf-mag: #ff4ecd;
    --pf-violet: #b78cff;
    --pf-cyan: #4dd8e6;
    --pf-card: rgba(255, 255, 255, 0.04);
    --pf-line: rgba(255, 255, 255, 0.09);
    --pf-light: #f3efe8;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--pf-bg);
    color: var(--pf-ink);
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

.pf-page {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 4px 64px;
    overflow: hidden;
}

/* ---------- top bar ---------- */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(7, 8, 15, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-logo {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--pf-ink);
}

.topbar-logo span {
    color: var(--pf-mag);
}

.topbar-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.topbar-links a {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--pf-mute);
    transition: color 0.15s ease;
}

.topbar-links a:hover,
.topbar-links a.on {
    color: var(--pf-ink);
}

.topbar-cta {
    background: var(--pf-mag);
    color: #14060f !important;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(255, 78, 205, 0.45);
}

@media (max-width: 560px) {
    .topbar { padding: 12px 12px; }
    .topbar-links { gap: 10px; }
    .topbar-links a { font-size: 9.5px; letter-spacing: 0.06em; }
    .topbar-links a[data-nav="about"] { display: none; }
    .topbar-cta { padding: 7px 12px; }
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 84px 14px 30px;
}

.pf-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    pointer-events: none;
}

.pf-orb-mag {
    width: 320px;
    height: 320px;
    background: rgba(255, 78, 205, 0.18);
    top: -40px;
    right: -60px;
}

.pf-orb-violet {
    width: 260px;
    height: 260px;
    background: rgba(183, 140, 255, 0.16);
    bottom: 0;
    left: -60px;
}

.hero-stage {
    position: relative;
}

.hero-title {
    margin: 0;
    line-height: 0.94;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    transition: transform 0.18s ease-out;
    will-change: transform;
}

.hero-line {
    display: block;
    font-weight: 900;
    font-size: clamp(52px, 13vw, 120px);
    color: var(--pf-ink);
    text-shadow: 0 0 44px rgba(255, 255, 255, 0.12);
}

.hero-line-big {
    font-size: clamp(88px, 24vw, 220px);
    color: transparent;
    -webkit-text-stroke: 2.5px var(--pf-ink);
    text-shadow: 0 0 60px rgba(255, 78, 205, 0.25);
}

.hero-side {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.7;
    color: var(--pf-mute);
    margin: 26px 0 0;
}

.hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 22px;
}

.hero-sub {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--pf-mute);
    margin: 0;
    max-width: 460px;
}

.btn-mag {
    display: inline-block;
    align-self: flex-start;
    background: var(--pf-mag);
    color: #14060f;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 13px 26px;
    border-radius: 999px;
    box-shadow: 0 0 26px rgba(255, 78, 205, 0.5), 0 10px 26px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-mag:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(255, 78, 205, 0.7), 0 14px 30px rgba(0, 0, 0, 0.55);
}

/* character overlaps the big type, reference-style */
.char-stage {
    position: relative;
    z-index: 2;
    width: min(240px, 62vw);
    margin: -34px 6px 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media (min-width: 860px) {
    .char-stage {
        position: absolute;
        right: 0;
        top: 50%;
        margin: 0;
        transform: translateY(-56%);
        width: 300px;
    }
    .hero-line-big {
        -webkit-text-stroke-width: 3px;
    }
}

.char-ring {
    position: absolute;
    inset: -14px -14px auto -14px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(255, 78, 205, 0.55);
    box-shadow:
        0 0 24px rgba(255, 78, 205, 0.35),
        inset 0 0 32px rgba(255, 78, 205, 0.12);
    animation: charRing 3.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes charRing {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.035); opacity: 0.55; }
}

.char-head {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(242, 240, 235, 0.16);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.6),
        0 0 0 8px rgba(255, 255, 255, 0.03);
    transition: transform 0.18s ease-out;
    transform-style: preserve-3d;
    background: radial-gradient(circle at 50% 30%, #232742, #0b0e16 70%);
    animation: charFloat 5s ease-in-out infinite;
}

@keyframes charFloat {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -10px; }
}

/* placeholder stylized character (final animated 3D character in the works) */
.ch-hair {
    position: absolute;
    top: 4%;
    left: 10%;
    width: 80%;
    height: 26%;
    background: linear-gradient(160deg, #3d2b1f, #1d130b);
    border-radius: 52% 48% 44% 46%;
    box-shadow: inset 0 -10px 16px rgba(0, 0, 0, 0.5);
}

.ch-face {
    position: absolute;
    inset: 0;
}

.ch-brow {
    position: absolute;
    top: 42%;
    width: 11%;
    height: 2.6%;
    background: rgba(242, 240, 235, 0.85);
    border-radius: 999px;
}

.ch-eye {
    position: absolute;
    top: 50%;
    width: 10.5%;
    aspect-ratio: 1.1;
    transform: translate(-50%, -50%);
    background: #fdfdfb;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.35);
    animation: chBlink 4.6s ease-in-out infinite;
}

@keyframes chBlink {
    0%, 46%, 50%, 100% { transform: translate(-50%, -50%) scaleY(1); }
    48% { transform: translate(-50%, -50%) scaleY(0.08); }
}

.ch-pupil {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46%;
    aspect-ratio: 1;
    background: radial-gradient(circle at 38% 34%, #4a4a4a 0%, #101010 62%);
    border-radius: 50%;
    transition: transform 0.1s ease-out;
}

.ch-glasses {
    position: absolute;
    top: 45%;
    left: 15%;
    width: 70%;
    height: 11%;
    background: linear-gradient(rgba(242, 240, 235, 0.75), rgba(242, 240, 235, 0.75)) center 20% / 14% 3px no-repeat;
    pointer-events: none;
}

.ch-glasses::before,
.ch-glasses::after {
    content: '';
    position: absolute;
    top: 0;
    width: 34%;
    height: 100%;
    border: 3px solid rgba(242, 240, 235, 0.75);
    border-radius: 12px;
}

.ch-glasses::before { left: 0; }
.ch-glasses::after { right: 0; }

.ch-mouth {
    position: absolute;
    left: 50%;
    top: 64%;
    width: 17%;
    height: 8%;
    transform: translateX(-50%);
    border: 3px solid rgba(242, 240, 235, 0.9);
    border-top: none;
    border-left-color: transparent;
    border-right-color: transparent;
    border-radius: 0 0 999px 999px;
    transition: all 0.35s ease;
}

.char-head.m-laugh .ch-mouth {
    height: 11%;
    background: rgba(242, 240, 235, 0.9);
    border-radius: 0 0 999px 999px;
}

.char-head.m-sad .ch-mouth {
    border-radius: 999px 999px 0 0;
    border-top: 3px solid rgba(242, 240, 235, 0.9);
    border-bottom: none;
    top: 66%;
}

.char-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pf-card);
    border: 1px solid var(--pf-line);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pf-ink);
    backdrop-filter: blur(6px);
    text-align: center;
}

.char-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pf-mag);
    box-shadow: 0 0 8px var(--pf-mag);
    animation: charDot 1.6s ease-in-out infinite;
}

@keyframes charDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.char-wip {
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--pf-mute);
    opacity: 0.75;
    text-align: center;
}

/* ---------- marquee ---------- */

.pf-marquee {
    border-top: 1px solid var(--pf-line);
    border-bottom: 1px solid var(--pf-line);
    overflow: hidden;
    padding: 12px 0;
    margin: 10px 0 8px;
    background: rgba(255, 78, 205, 0.03);
}

.pf-marquee-track {
    display: flex;
    width: max-content;
    animation: pfMarquee 22s linear infinite;
}

.pf-marquee-track > span {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    padding-right: 26px;
}

.pf-marquee-word {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: var(--pf-ink);
    opacity: 0.8;
}

.pf-marquee-star {
    color: var(--pf-mag);
    font-size: 13px;
}

@keyframes pfMarquee {
    to { transform: translateX(-50%); }
}

/* ---------- big section titles ---------- */

.big-title {
    font-size: clamp(42px, 10vw, 92px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0 0 18px;
    color: var(--pf-ink);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.10);
}

.big-title-dark {
    color: #12101a;
    text-shadow: none;
}

.sec-blurb {
    font-size: 14px;
    color: var(--pf-mute);
    margin: 0 0 20px;
    max-width: 560px;
}

/* ---------- about ---------- */

.about {
    position: relative;
    padding: 72px 14px;
    text-align: center;
}

.about-text {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--pf-mute);
    max-width: 620px;
    margin: 0 auto 16px;
}

.about .btn-mag {
    margin-top: 14px;
}

.ic-float {
    position: absolute;
    font-size: 30px;
    opacity: 0.85;
    filter: drop-shadow(0 0 12px rgba(255, 78, 205, 0.6));
    animation: charFloat 6s ease-in-out infinite;
}

.ic-moon { top: 16%; left: 8%; }
.ic-smile { bottom: 14%; right: 9%; animation-delay: 1.4s; }

/* ---------- services (light, numbered, reference style) ---------- */

.services {
    background: var(--pf-light);
    color: #12101a;
    border-radius: 30px;
    padding: 56px 22px 40px;
    margin: 30px 4px;
}

.svc-list {
    display: flex;
    flex-direction: column;
}

.svc-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 22px 4px;
    border-bottom: 1px solid rgba(18, 16, 26, 0.12);
}

.svc-row:last-child {
    border-bottom: none;
}

.svc-num {
    font-size: clamp(40px, 9vw, 68px);
    font-weight: 900;
    line-height: 1;
    color: var(--pf-mag);
    min-width: 84px;
    text-shadow: 0 0 26px rgba(255, 78, 205, 0.25);
}

.svc-body h3 {
    margin: 0 0 6px;
    font-size: clamp(17px, 4.4vw, 22px);
    font-weight: 900;
    letter-spacing: 0.04em;
}

.svc-body p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(18, 16, 26, 0.62);
    max-width: 520px;
}

/* ---------- work ---------- */

.worksec {
    padding: 58px 8px 6px;
    scroll-margin-top: 70px;
}

.pf-nav {
    position: sticky;
    top: 52px;
    z-index: 90;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 2px;
    margin: 0 0 18px;
    background: rgba(7, 8, 15, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pf-line);
    scrollbar-width: none;
}

.pf-nav::-webkit-scrollbar { display: none; }

.pf-nav-chip {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--pf-mute);
    background: var(--pf-card);
    border: 1px solid var(--pf-line);
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.pf-nav-chip.on {
    color: #14060f;
    background: var(--pf-mag);
    border-color: var(--pf-mag);
}

.pf-project {
    margin-bottom: 44px;
    scroll-margin-top: 110px;
}

.pf-project-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.pf-proj-num {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--pf-mag);
}

.pf-chip {
    display: inline-block;
    background: var(--pf-accent, var(--pf-mag));
    color: #14060f;
    font-weight: 800;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.pf-count {
    font-size: 12px;
    color: var(--pf-mute);
}

.pf-proj-note {
    font-size: 13.5px;
    color: var(--pf-mute);
    margin: 0 0 14px;
}

/* ---------- video grid ---------- */

.pf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 720px) {
    .pf-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1020px) {
    .pf-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pf-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pf-facade {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    padding: 0;
    border: 1px solid var(--pf-line);
    border-radius: 16px;
    overflow: hidden;
    background: #0b0e16;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pf-facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.pf-facade:hover,
.pf-facade:focus-visible {
    transform: translateY(-4px);
    border-color: var(--pf-accent, var(--pf-mag));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--pf-accent, var(--pf-mag));
    outline: none;
}

.pf-facade:hover img {
    transform: scale(1.04);
}

.pf-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pf-accent, var(--pf-mag));
    color: #14060f;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 78, 205, 0.25);
    transition: transform 0.2s ease;
}

.pf-facade:hover .pf-play {
    transform: translate(-50%, -50%) scale(1.1);
}

.pf-embed {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    background: #000;
    border: 1px solid var(--pf-accent, var(--pf-mag));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.pf-title {
    font-size: 12.5px;
    color: var(--pf-mute);
    line-height: 1.35;
}

/* ---------- doc cards ---------- */

.doc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 700px) {
    .doc-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1020px) {
    .doc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.doc-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--pf-card);
    border: 1px solid var(--pf-line);
    border-radius: 18px;
    padding: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.doc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 78, 205, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.doc-thumb {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #0b0e16;
}

.doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0b0e16;
}

.doc-thumb-plain {
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-ic {
    font-size: 40px;
    filter: drop-shadow(0 0 14px rgba(255, 78, 205, 0.5));
}

.doc-type {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pf-mag);
}

.doc-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--pf-ink);
}

.doc-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--pf-mute);
}

/* ---------- contact ---------- */

.pf-sec {
    position: relative;
    padding: 58px 8px 6px;
    scroll-margin-top: 70px;
}

.pf-contact {
    position: relative;
    border: 1px solid var(--pf-line);
    border-radius: 26px;
    padding: 44px 24px 40px;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 78, 205, 0.10), transparent 70%),
        var(--pf-card);
    overflow: hidden;
}

.pf-sec-num {
    position: absolute;
    top: -34px;
    left: -10px;
    font-size: clamp(110px, 20vw, 190px);
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.07);
    pointer-events: none;
    user-select: none;
}

.pf-sec-num-contact {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.pf-contact-big {
    position: relative;
    font-size: clamp(38px, 9vw, 72px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    color: var(--pf-ink);
    text-shadow:
        2px 2px 0 rgba(255, 78, 205, 0.55),
        4px 4px 0 rgba(255, 78, 205, 0.28),
        8px 10px 26px rgba(0, 0, 0, 0.6);
}

.pf-contact-sub {
    position: relative;
    font-size: 14px;
    color: var(--pf-mute);
    margin: 0 0 26px;
}

.pf-contact-links {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

@media (min-width: 640px) {
    .pf-contact-links {
        flex-direction: row;
        justify-content: center;
    }
}

.pf-btn {
    display: inline-block;
    background: var(--pf-mag);
    color: #14060f;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 999px;
    box-shadow: 0 0 22px rgba(255, 78, 205, 0.4), 0 16px 34px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pf-btn:hover {
    transform: translateY(2px);
    box-shadow: 0 0 14px rgba(255, 78, 205, 0.4), 0 10px 22px rgba(0, 0, 0, 0.5);
}

.pf-foot {
    text-align: center;
    font-size: 11.5px;
    color: rgba(154, 160, 174, 0.6);
    margin-top: 26px;
    letter-spacing: 0.08em;
}

/* ---------- intro ---------- */

#intro {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #07080f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.65s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: transform;
}

#intro.done {
    transform: translateY(-102%);
}

.in-inner {
    text-align: center;
}

.in-row-1 {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.in-row-1 span {
    display: inline-block;
    font-weight: 900;
    font-size: clamp(64px, 17vw, 120px);
    line-height: 1;
    color: var(--pf-ink);
    opacity: 0;
    transform: translateY(46px) rotate(8deg);
    filter: blur(10px);
    animation: inPop 0.62s cubic-bezier(0.2, 1.4, 0.35, 1) forwards;
}

.in-row-1 span:nth-child(1) { animation-delay: 0.06s; }
.in-row-1 span:nth-child(2) { animation-delay: 0.13s; }
.in-row-1 span:nth-child(3) { animation-delay: 0.20s; }
.in-row-1 span:nth-child(4) { animation-delay: 0.27s; }
.in-row-1 span:nth-child(5) { animation-delay: 0.34s; }
.in-row-1 span:nth-child(6) { animation-delay: 0.41s; }
.in-row-1 span:nth-child(7) { animation-delay: 0.48s; }

@keyframes inPop {
    to { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); }
}

.in-row-2 {
    font-weight: 900;
    font-size: clamp(40px, 11vw, 84px);
    letter-spacing: 0.12em;
    margin-top: 4px;
    color: transparent;
    -webkit-text-stroke: 2px var(--pf-mag);
    text-shadow: 0 0 40px rgba(255, 78, 205, 0.35);
    opacity: 0;
    transform: translateY(18px);
    animation: inFade 0.5s ease 0.68s forwards;
}

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

.in-bar {
    height: 3px;
    width: min(280px, 60vw);
    margin: 18px auto 12px;
    background: linear-gradient(90deg, var(--pf-mag), var(--pf-violet));
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    animation: inBar 0.55s cubic-bezier(0.7, 0, 0.2, 1) 0.9s forwards;
}

@keyframes inBar {
    to { transform: scaleX(1); }
}

.in-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--pf-mute);
    opacity: 0;
    animation: inFade 0.5s ease 1.1s forwards;
}

.in-skip {
    position: absolute;
    bottom: max(28px, env(safe-area-inset-bottom));
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(154, 160, 174, 0.6);
}

@media (prefers-reduced-motion: reduce) {
    .in-row-1 span, .in-row-2, .in-bar, .in-tag { animation-duration: 0.01s; animation-delay: 0s; }
    #intro { transition-duration: 0.15s; }
    .pf-marquee-track { animation: none; }
}

/* 3D character canvas */
.char-canvas {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}
