/* Landing + About refinements */

.hero-copy {
    align-self: center;
}

.hero h1 {
    margin-bottom: 0;
}

.hero-contact-row {
    margin-top: 34px;
}

.email-chip {
    display: inline-flex;
    align-items: stretch;
    min-height: 48px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.email-chip:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(0, 201, 255, 0.055);
}

.email-address {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: #bcd0d7;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.76rem;
    text-decoration: none;
}

.copy-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 46px;
    padding: 0 11px;
    border: 0;
    border-left: 1px solid var(--line);
    color: #708b95;
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease;
}

.copy-email:hover,
.copy-email.is-copied {
    color: var(--accent);
    background: rgba(0, 201, 255, 0.06);
}

.copy-email svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.copy-label {
    font-size: 0.66rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.portrait-frame img {
    object-position: center 26%;
}

.portrait-tag-top {
    top: 26px;
    left: -28px;
    color: #eaf8fb;
    background: rgba(5, 11, 18, 0.88);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 201, 255, 0.06);
}

/* About is intentionally denser than the other sections so the section title
   and photo story read together in the first viewport after navigation. */
.about-section {
    padding-top: 54px;
}

.about-section .section-heading {
    row-gap: 16px;
    margin-bottom: 24px;
}

.about-lead strong {
    color: #fff;
    font-weight: 680;
}

.about-lead .identity-highlight {
    color: transparent;
    background: linear-gradient(105deg, #ffffff 0%, #c9f3ff 48%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.about-facts div:last-child strong {
    color: var(--accent-soft);
}

.carousel-slide img {
    object-position: center;
}

.contact-email-row {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    margin-top: 26px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.contact-email-address {
    padding: 12px 14px;
    color: var(--accent-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    text-decoration: none;
}

.copy-email-contact {
    min-height: 42px;
}

/* Scroll-driven motion is intentionally scoped to the two sections that have
   been finalized so far. Later sections keep their existing behavior. */
.hero .motion-reveal,
.about-section .motion-reveal {
    --motion-delay: 0ms;
    opacity: 0 !important;
    filter: blur(4px);
    will-change: opacity, transform, filter;
    transition:
        opacity 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--motion-delay),
        transform 720ms cubic-bezier(0.22, 1, 0.36, 1) var(--motion-delay),
        filter 620ms ease var(--motion-delay);
}

.hero .motion-reveal[data-motion="up"],
.about-section .motion-reveal[data-motion="up"] {
    transform: translate3d(0, 30px, 0);
}

.hero .motion-reveal[data-motion="right"],
.about-section .motion-reveal[data-motion="right"] {
    transform: translate3d(42px, 14px, 0) scale(0.985);
}

.hero .motion-reveal[data-motion="left"],
.about-section .motion-reveal[data-motion="left"] {
    transform: translate3d(-42px, 14px, 0) scale(0.985);
}

.hero .motion-reveal.is-visible,
.about-section .motion-reveal.is-visible {
    opacity: 1 !important;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

/* A small internal stagger makes the opening feel assembled rather than
   moving as one large block. */
.hero-copy.motion-reveal h1,
.hero-copy.motion-reveal .hero-contact-row {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-copy.motion-reveal .hero-contact-row {
    transition-delay: 110ms;
}

.hero-copy.motion-reveal.is-visible h1,
.hero-copy.motion-reveal.is-visible .hero-contact-row {
    opacity: 1;
    transform: translateY(0);
}

.about-copy.motion-reveal > .about-lead,
.about-copy.motion-reveal > .about-lead + p,
.about-copy.motion-reveal .about-facts > div {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about-copy.motion-reveal > .about-lead + p {
    transition-delay: 80ms;
}

.about-copy.motion-reveal .about-facts > div:nth-child(1) {
    transition-delay: 150ms;
}

.about-copy.motion-reveal .about-facts > div:nth-child(2) {
    transition-delay: 210ms;
}

.about-copy.motion-reveal .about-facts > div:nth-child(3) {
    transition-delay: 270ms;
}

.about-copy.motion-reveal.is-visible > .about-lead,
.about-copy.motion-reveal.is-visible > .about-lead + p,
.about-copy.motion-reveal.is-visible .about-facts > div {
    opacity: 1;
    transform: translateY(0);
}

.carousel.motion-reveal .carousel-track {
    transform: scale(1.018);
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel.motion-reveal.is-visible .carousel-track {
    transform: scale(1);
}

@media (max-width: 760px) {
    .portrait-tag-top {
        left: -8px;
        top: 16px;
    }

    .email-chip {
        width: 100%;
    }

    .email-address {
        flex: 1;
        justify-content: center;
    }

    .about-section {
        padding-top: 42px;
    }

    .about-section .section-heading {
        margin-bottom: 20px;
    }

    .hero .motion-reveal[data-motion="right"],
    .about-section .motion-reveal[data-motion="right"] {
        transform: translate3d(24px, 12px, 0) scale(0.99);
    }

    .hero .motion-reveal[data-motion="left"],
    .about-section .motion-reveal[data-motion="left"] {
        transform: translate3d(-24px, 12px, 0) scale(0.99);
    }
}

@media (max-width: 470px) {
    .copy-label {
        display: none;
    }

    .contact-email-row {
        width: 100%;
    }

    .contact-email-address {
        flex: 1;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero .motion-reveal,
    .about-section .motion-reveal,
    .hero-copy.motion-reveal h1,
    .hero-copy.motion-reveal .hero-contact-row,
    .about-copy.motion-reveal > .about-lead,
    .about-copy.motion-reveal > .about-lead + p,
    .about-copy.motion-reveal .about-facts > div,
    .carousel.motion-reveal .carousel-track {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}
