/* Portfolio — Bhupendra Jadeja */

:root {
    --bg: #ffffff;
    --ink: #111111;
    --muted: #666666;
    --faint: #999999;
    --line: #eeeeee;
    --accent: #e85d4c;
    --blush: #f8dcd4;
    --soft: #fafafa;
    --max: 1120px;
    --rail: 15rem;
    --font-display: "Syne", system-ui, sans-serif;
    --font-body: "DM Sans", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

a:hover {
    color: var(--accent);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Layout shell */

.site-shell {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    min-height: 100vh;
}

.rail {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    padding: 2.25rem 1.75rem;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background: var(--bg);
    z-index: 20;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.04em;
    text-decoration: none;
    line-height: 1;
}

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

.logo-sub {
    display: block;
    margin-top: 0.55rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #444;
    line-height: 1.35;
    text-transform: none;
}

.rail-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--ink);
}

.rail-nav a {
    text-decoration: none;
    color: var(--ink);
    padding: 0.55rem 0.65rem;
    margin: 0 -0.65rem;
    border-radius: 6px;
}

.rail-nav a:hover,
.rail-nav a.is-active {
    color: var(--accent);
    background: color-mix(in srgb, var(--blush) 55%, #fff);
}

.rail-social {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: lowercase;
}

.rail-social a {
    text-decoration: none;
}

.main {
    min-width: 0;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    padding: 3.5rem 2.5rem 2.5rem;
    border-bottom: 1px solid var(--line);
    min-height: min(88vh, 720px);
    align-items: center;
}

.hero-blob {
    position: absolute;
    width: min(42vw, 360px);
    height: min(42vw, 360px);
    border-radius: 50%;
    background: var(--blush);
    left: 6%;
    top: 14%;
    opacity: 0.9;
    pointer-events: none;
    animation: blob-drift 12s ease-in-out infinite alternate;
}

@keyframes blob-drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(18px, 24px);
    }
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
}

.hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.85rem, 4.2vw, 3.15rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--accent);
    text-transform: lowercase;
    overflow-wrap: anywhere;
}

.hero-amp-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.15rem;
}

.hero-amp {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 4.5rem);
    line-height: 0.85;
    color: var(--ink);
}

.hero-title-cont {
    margin: 0;
    padding-top: 0.55rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.85rem, 4.2vw, 3.15rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--accent);
    text-transform: lowercase;
    overflow-wrap: anywhere;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.75rem;
    font-size: 0.9rem;
}

.hero-actions a {
    text-underline-offset: 0.3em;
}

.hero-meta {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--faint);
    letter-spacing: 0.01em;
}

.hero-photo {
    position: relative;
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 520px;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 35% center;
}

/* Photo strip */

.photo-strip {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--line);
}

.photo-strip figure {
    margin: 0;
    position: relative;
    height: 170px;
    border-radius: 4px;
    overflow: hidden;
    background: #ddd;
}

.photo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-strip figcaption {
    position: absolute;
    left: 0.65rem;
    bottom: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

/* Sections */

.section {
    padding: 3.25rem 2.5rem;
    border-bottom: 1px solid var(--line);
}

.section--soft {
    background: var(--soft);
}

.section-label {
    margin: 0 0 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.03em;
}

.section-title {
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.45rem, 2.8vw, 1.9rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
    max-width: 36rem;
}

.section-text {
    margin: 0;
    max-width: 34rem;
    color: var(--muted);
    font-size: 0.98rem;
}

.featured {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2rem;
    align-items: center;
}

.featured-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 32rem;
}

.featured-stats div {
    border-left: 2px solid var(--accent);
    padding-left: 0.75rem;
}

.featured-stats dt {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--faint);
}

.featured-stats dd {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-media {
    border-radius: 4px;
    overflow: hidden;
    height: 260px;
    background: #ddd;
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Work list */

.work-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.work-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.work-list h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.work-list p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.work-list .tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--faint);
    white-space: nowrap;
}

/* Proof */

#proof.section {
    padding: 4rem 2.5rem 4.5rem;
}

.proof-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem 3rem;
    align-items: center;
    margin-top: 0.75rem;
}

.proof-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
    align-items: center;
}

.proof-badges a {
    display: block;
    line-height: 0;
    padding: 0.65rem;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.proof-badges a:hover {
    border-color: #ccc;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.proof-badges img {
    height: 96px;
    width: auto;
}

.proof-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.proof-list li {
    position: relative;
    padding-left: 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: #222;
    line-height: 1.45;
}

.proof-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--accent);
}

.proof-list li span {
    display: block;
    margin-top: 0.15rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: #555;
}

@media (max-width: 900px) {
    .proof-badges img {
        height: 72px;
    }
}

/* About split */

.about-section {
    background: #faf9f7;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(320px, 40%) minmax(0, 60%);
    gap: 4rem;
    align-items: center;
}

.about-photo-wrap {
    position: relative;
    min-height: 560px;
}

.about-photo-wrap::before {
    content: "";
    position: absolute;
    width: 78%;
    height: 80%;
    left: 2%;
    bottom: 3%;
    border-radius: 32px;
    background: #f6e6df;
    z-index: 0;
}

.about-photo {
    position: relative;
    z-index: 1;
    border-radius: 30px;
    overflow: hidden;
    height: 560px;
    box-shadow: 0 24px 54px rgba(17, 17, 17, 0.08);
    transform: scale(0.96);
    transform-origin: center center;
    transition: transform 0.75s ease;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 24%;
    display: block;
}

.about-copy {
    max-width: 600px;
}

.about-copy .section-label {
    margin-bottom: 1rem;
    color: #666666;
    letter-spacing: 0.16em;
}

.about-copy .section-title {
    max-width: 600px;
    margin-bottom: 1.4rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.02;
    color: #111111;
}

.about-copy .section-label,
.about-copy .section-title,
.about-copy .section-text {
    opacity: 0;
    transform: translateY(14px);
}

.about-copy .section-text {
    max-width: 600px;
    color: #555555;
    line-height: 1.78;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-copy .section-label,
.about-copy .section-title {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-copy .section-text + .section-text {
    margin-top: 1rem;
}

.about-section.is-in .about-photo {
    transform: scale(1);
}

.about-section.is-in .about-copy .section-label,
.about-section.is-in .about-copy .section-title,
.about-section.is-in .about-copy .section-text {
    opacity: 1;
    transform: translateY(0);
}

.about-section.is-in .about-copy .section-title {
    transition-delay: 0.06s;
}

.about-section.is-in .about-copy .section-text:nth-of-type(1) {
    transition-delay: 0.12s;
}

.about-section.is-in .about-copy .section-text:nth-of-type(2) {
    transition-delay: 0.18s;
}

.about-section.is-in .about-copy .section-text:nth-of-type(3) {
    transition-delay: 0.24s;
}

.about-section.is-in .about-copy .section-text:nth-of-type(4) {
    transition-delay: 0.3s;
}

.trajectory-section {
    background: #faf9f7;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.trajectory-intro {
    max-width: 100%;
    margin-bottom: 2.75rem;
}

.trajectory-intro .section-label {
    margin-bottom: 1rem;
    color: #666666;
    letter-spacing: 0.16em;
}

.trajectory-intro .section-title {
    max-width: 100%;
    width: 100%;
    margin-bottom: 1.25rem;
    color: #111111;
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.trajectory-intro .section-title br {
    display: block;
}

.trajectory-intro .section-text {
    max-width: 42rem;
    color: #555555;
    line-height: 1.75;
}

.trajectory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.trajectory-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 2.15rem 1.9rem 1.95rem;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.06);
    box-shadow: 0 14px 40px rgba(17, 17, 17, 0.04);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.25s ease;
}

.trajectory-card--accent {
    background: #ffffff;
}

.trajectory-card--accent::before {
    content: "";
    position: absolute;
    left: 1.75rem;
    top: 0;
    width: 3.25rem;
    height: 3px;
    border-radius: 999px;
    background: #e85d4c;
}

.trajectory-card:hover {
    box-shadow: 0 18px 48px rgba(17, 17, 17, 0.07);
}

.trajectory-card-label {
    margin: 0 0 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666666;
}

.trajectory-card-title {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #111111;
}

.trajectory-card-text {
    margin: 0 0 1.35rem;
    max-width: none;
    color: #555555;
    line-height: 1.7;
    font-size: 0.98rem;
    flex: 1 1 auto;
}

.trajectory-tags {
    list-style: none;
    margin: 0;
    margin-top: auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trajectory-tags li {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: #f6e6df;
    color: #3d342f;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.trajectory-section.is-in .trajectory-card {
    opacity: 1;
    transform: translateY(0);
}

.trajectory-section.is-in .trajectory-card:nth-child(2) {
    transition-delay: 0.1s;
}

@media (prefers-reduced-motion: reduce) {
    .trajectory-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Notes teaser */

.notes-box {
    max-width: 36rem;
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.95rem;
}

.contact-links a {
    color: var(--accent);
}

.form {
    position: relative;
    display: grid;
    gap: 0.85rem;
}

.hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form label {
    display: grid;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--faint);
}

.form input,
.form textarea {
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    padding: 0.75rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    width: 100%;
}

.form input:focus,
.form textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-color: var(--accent);
}

.form button {
    justify-self: start;
    margin-top: 0.25rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.2rem;
    cursor: pointer;
}

.form button:hover {
    filter: brightness(0.95);
}

.form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.form-status {
    min-height: 1.25rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.form-status.is-ok {
    color: #1a7a3c;
}

.form-status.is-err {
    color: #b42318;
}

/* Footer */

.site-footer {
    padding: 1.25rem 2.5rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--faint);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.1rem;
}

.footer-social a {
    color: #666;
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--accent);
}

/* Reveal motion */

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Mobile + tablet */

@media (max-width: 900px) {
    .site-shell {
        grid-template-columns: 1fr;
    }

    .rail {
        position: sticky;
        top: 0;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0.85rem 1rem 0.7rem;
        border-right: none;
        border-bottom: 1px solid var(--line);
        gap: 0.55rem;
    }

    .logo {
        font-size: 1.35rem;
        flex-shrink: 0;
    }

    .logo-sub {
        display: none;
    }

    .rail-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.15rem;
        justify-content: flex-start;
        font-size: 0.88rem;
        font-weight: 600;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.15rem;
    }

    .rail-nav a {
        padding: 0.5rem 0.7rem;
        margin: 0;
        flex: 0 0 auto;
    }

    .rail-social {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 1.75rem 1.15rem 1.5rem;
        min-height: auto;
        gap: 1.25rem;
    }

    .hero-title,
    .hero-title-cont {
        font-size: clamp(1.55rem, 8.2vw, 2.2rem);
        letter-spacing: -0.03em;
        overflow-wrap: anywhere;
        word-break: break-word;
        max-width: 100%;
    }

    .hero-amp {
        font-size: clamp(2.2rem, 11vw, 3.1rem);
    }

    .hero-amp-row {
        max-width: 100%;
    }

    .hero-photo {
        max-height: none;
        aspect-ratio: 4 / 5;
        max-width: none;
        width: 100%;
    }

    .hero-blob {
        width: min(70vw, 260px);
        height: min(70vw, 260px);
        left: -30px;
        top: 24px;
    }

    .photo-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
        padding: 0.4rem 1.15rem 1.15rem;
    }

    .photo-strip figure {
        height: 110px;
    }

    .photo-strip figcaption {
        font-size: 0.55rem;
    }

    .section {
        padding: 2.25rem 1.15rem;
    }

    #proof.section {
        padding: 2.5rem 1.15rem 2.75rem;
    }

    .proof-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .proof-badges {
        gap: 0.75rem;
    }

    .proof-badges a {
        padding: 0.45rem;
    }

    .proof-badges img {
        height: 72px;
    }

    .proof-list li {
        font-size: 0.98rem;
    }

    .featured,
    .about-grid,
    .contact-grid,
    .trajectory-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-stats {
        grid-template-columns: 1fr;
    }

    .featured-media,
    .about-photo {
        height: 220px;
    }

    .about-photo-wrap::before {
        width: 82%;
        height: 82%;
        left: 6%;
        bottom: -0.4rem;
        border-radius: 24px;
    }

    .about-photo-wrap {
        min-height: 0;
    }

    .about-photo {
        height: 360px;
        border-radius: 24px;
    }

    .about-copy .section-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .trajectory-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .trajectory-intro {
        margin-bottom: 1.75rem;
    }

    .trajectory-intro .section-title {
        font-size: clamp(1.85rem, 7.5vw, 2.6rem);
        line-height: 1.08;
    }

    .trajectory-card {
        padding: 1.6rem 1.35rem 1.5rem;
        border-radius: 20px;
    }

    .work-list li {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .work-list .tag {
        white-space: normal;
    }

    .hero-meta {
        font-size: 0.72rem;
        color: #555;
        line-height: 1.45;
    }

    .contact-links a {
        word-break: break-word;
    }

    .site-footer {
        padding: 1.15rem;
        font-size: 0.72rem;
        color: #666;
    }
}

@media (max-width: 520px) {
    .photo-strip {
        grid-template-columns: 1fr;
    }

    .photo-strip figure {
        height: 160px;
    }

    .about-photo {
        height: 320px;
        border-radius: 22px;
    }

    .about-copy .section-text {
        line-height: 1.72;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-photo,
    .about-copy .section-label,
    .about-copy .section-title,
    .about-copy .section-text {
        transition: none;
        transform: none;
        opacity: 1;
    }
}
