/* STACKING ------------------------------------------ */
.ticker,
.info-section,
.content-section,
.stats-section,
.about-section,
.contact-section {
    position: relative;
    z-index: 5;
}

/* INDEX UTILITIES ------------------------------------------ */
.section-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 88px;
    padding-bottom: 40px;
    gap: 16px;
}
.section-cta {
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--c-txt-muted);
    border-bottom: 1px solid var(--c-dark-muted);
    padding-bottom: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--basicTransition);
}
.section-cta:hover {
    color: var(--c-light);
    border-color: var(--c-gray);
}

/* HERO ------------------------------------------ */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.hero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.08) 65%),
        linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.0) 55%);
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 96px;
    color: var(--c-light);
}
.hero-eyebrow {
    font-size: 0.68rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 20px;
}
.hero-content h1 {
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--c-light);
    margin-bottom: 40px;
    max-width: 680px;
    text-transform: uppercase;
}
.hero-featured {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-left: 2px solid var(--c-primary-light);
    padding-left: 20px;
    max-width: 440px;
}
.hero-featured-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 2px;
    font-weight: 500;
}
.hero-featured-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--c-light);
    margin: 0;
    line-height: 1.25;
    text-transform: none;
}
.hero-featured-sub {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}
.hero-featured-link {
    margin-top: 16px;
    align-self: flex-start;
    display: inline-block;
    background-color: var(--c-primary-light);
    color: var(--c-dark) !important;
    padding: 11px 26px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: var(--basicTransition);
}
.hero-featured-link:hover {
    background-color: var(--c-light);
    transform: translateY(-2px);
}
.hero-scroll {
    position: absolute;
    bottom: 36px;
    right: 40px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.58rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.hero-scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.28), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1) translateY(0); }
    50%       { opacity: 1;   transform: scaleY(0.6) translateY(8px); }
}

/* TICKER ------------------------------------------ */
.ticker {
    overflow: hidden;
    background-color: var(--c-dark-soft);
    border-top: 1px solid var(--c-dark-muted);
    border-bottom: 1px solid var(--c-dark-muted);
    padding: 13px 0;
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
    width: max-content;
    animation: tickerScroll 32s linear infinite;
}
.ticker-track span {
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-gray);
    flex-shrink: 0;
}
.ticker-track em {
    font-style: normal;
    color: var(--c-primary-light);
    flex-shrink: 0;
    font-size: 0.5rem;
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* INFO ------------------------------------------ */
.info-section {
    background-color: var(--c-dark);
    padding-bottom: 88px;
}
.info-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
/* Card */
.info-card {
    display: flex;
    flex-direction: column;
    background-color: var(--c-dark-soft);
    border: 1px solid var(--c-dark-muted);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--c-light);
    transition: var(--basicTransition);
}
.info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55);
}
.info-card-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.info-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--basicTransition);
    filter: brightness(0.82);
}
.info-card:hover .info-card-img img {
    transform: scale(1.05);
    filter: brightness(1);
}
.info-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 26px 26px;
    flex: 1;
}
.info-card-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-primary-light);
    font-weight: 500;
}
.info-card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--c-light);
    margin: 0;
    line-height: 1.3;
    text-transform: none;
}
.info-card-body p {
    font-size: 0.875rem;
    color: var(--c-txt-muted);
    margin: 0;
    flex: 1;
    line-height: 1.6;
}
.info-card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-primary-light);
    margin-top: 6px;
    transition: var(--basicTransition);
    letter-spacing: 0.02em;
}

/* CONTENT (Projects) ------------------------------------------ */
.content-section {
    background-image:url(/img/bg-mp.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding-bottom: 88px;
}
.content-scroll-wrap {
    position: relative;
}
.content-scroll-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(to left, var(--c-dark), transparent);
    pointer-events: none;
    z-index: 1;
}
.content-collection {
    display: flex;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 24px 24px;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.content-collection::-webkit-scrollbar { display: none; }
/* Card */
.content-card {
    flex: 0 0 auto;
    width: 280px;
    height: 380px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    scroll-snap-align: start;
    transition: var(--basicTransition);
}
.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}
.content-card-img {
    position: absolute;
    inset: 0;
}
.content-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--basicTransition);
}
.content-card:hover .content-card-img img {
    transform: scale(1.06);
    filter: brightness(0.7);
}
.content-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}
.content-card-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 7px;
    color: var(--c-light);
    line-height: 1.3;
    text-transform: none;
}
.content-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.content-card-tags span {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(4px);
    font-weight: 500;
}

/* STATS ------------------------------------------ */
.stats-section {
    background-color: var(--c-dark-soft);
    border-top: 1px solid var(--c-dark-muted);
    border-bottom: 1px solid var(--c-dark-muted);
}
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 64px;
    padding-bottom: 64px;
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 40px;
    border-right: 1px solid var(--c-dark-muted);
}
.stat:first-child { padding-left: 0; }
.stat:last-child  { border-right: none; }
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--c-light);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-number sup {
    font-size: 1.2rem;
    color: var(--c-primary-light);
    vertical-align: super;
    font-weight: 600;
}
.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-txt-muted);
    font-weight: 400;
    line-height: 1.4;
}

/* ABOUT ------------------------------------------ */
.about-section {
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 0;
    align-items: stretch;
    min-height: 520px;
}
.about-img-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
.about-img {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%);
}
.about-info {
    background-color: var(--c-light);
    padding: 4rem 4rem 4rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.about-section .section-label {
    color: var(--c-primary-dark);
}
.about-info h2 {
    color: var(--c-dark);
    font-size: 2.2rem;
    margin: 0;
    line-height: 1.1;
}
.about-role {
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-primary-dark) !important;
    margin-bottom: 4px !important;
    font-weight: 600;
}
.about-info p {
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.65;
    max-width: 520px;
}
.about-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.about-pill {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(19, 150, 138, 0.4);
    color: var(--c-primary-dark);
    letter-spacing: 0.04em;
}
.about-cta {
    margin-top: 8px;
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-primary-dark);
    border-bottom: 1px solid rgba(19, 150, 138, 0.4);
    padding-bottom: 2px;
    transition: var(--basicTransition);
}
.about-cta:hover {
    color: var(--c-dark);
    border-color: var(--c-dark);
}

/* CONTACT ------------------------------------------ */
.contact-section {
    background-color: var(--c-dark);
    border-top: 1px solid var(--c-dark-muted);
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding-top: 88px;
    padding-bottom: 88px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--c-light);
}
.contact-info h2 {
    font-size: 3rem;
    color: var(--c-light);
    margin: 0;
    line-height: 1.05;
}
.contact-info p {
    color: var(--c-txt-muted);
    max-width: 380px;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.65;
}
.contact-button a {
    display: inline-block;
    background-color: var(--c-primary-light);
    color: var(--c-dark) !important;
    padding: 14px 36px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    transition: var(--basicTransition);
}
.contact-button a:hover {
    background-color: var(--c-light);
    transform: translateY(-2px);
}
.contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}
.contact-links-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-txt-muted);
    margin-bottom: 0;
    font-weight: 500;
}
.contact-link-block {
    display: flex;
    gap: 16px;
}
.contact-link-img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--c-dark-muted);
    background-color: var(--c-dark-soft);
    opacity: 0.65;
    transition: var(--basicTransition);
}
.contact-link-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    padding: 11px;
    filter: invert(1);
}
.contact-link-img:hover {
    opacity: 1;
    border-color: var(--c-primary-light);
    background-color: var(--c-primary-dark);
    transform: translateY(-3px);
}

/* RESPONSIVE ------------------------------------------ */
@media (max-width: 768px) {
    /* Section intros */
    .section-intro {
        padding-top: 60px;
        padding-bottom: 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Hero */
    .hero-content {
        padding-bottom: 72px;
    }
    .hero-content h1 {
        font-size: 2.4rem;
        margin-bottom: 28px;
    }
    .hero-featured-title {
        font-size: 1.1rem;
    }
    .hero-scroll { display: none; }

    /* Ticker */
    .ticker-track { animation-duration: 18s; }

    /* Info */
    .info-section { padding-bottom: 60px; }
    .info-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Projects */
    .content-section { padding-bottom: 60px; }
    .content-card {
        width: 72vw;
        height: 260px;
    }

    /* Stats */
    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .stat {
        padding: 0;
        border-right: none;
    }
    .stat-number { font-size: 2.4rem; }

    /* About */
    .about-container { grid-template-columns: 1fr; }
    .about-img-panel { padding: 2.5rem 2rem 1rem; }
    .about-img { width: 180px; height: 180px; }
    .about-info {
        padding: 2rem;
    }
    .about-info h2 { font-size: 1.7rem; }

    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 56px;
        padding-bottom: 56px;
    }
    .contact-info h2 { font-size: 2.2rem; }
}
