/* Cinematic hero + "Built by NextGenOra" showcase (home and portfolio). */

:root {
    --sc-ink: #050a18;
    --sc-navy: #0b1328;
    --sc-gold: #f5c45e;
    --sc-gold-deep: #e9a634;
    --sc-text: #e8edf7;
    --sc-muted: #9aa6bf;
    --sc-line: rgba(255, 255, 255, 0.09);
}

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

.hero-cine {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    margin-top: 72px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--sc-ink) url('media/hero-poster.jpg') center / cover no-repeat;
    color: #fff;
    isolation: isolate;
}

.hero-cine-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-cine::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 10, 24, 0.55) 0%, rgba(5, 10, 24, 0) 22%),
        linear-gradient(0deg, rgba(5, 10, 24, 0.96) 0%, rgba(5, 10, 24, 0.7) 26%, rgba(5, 10, 24, 0) 55%);
}

.hero-cine-content {
    width: 100%;
    padding-bottom: clamp(4.5rem, 11vh, 7.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: end;
}

.hero-cine-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--sc-gold);
}

.hero-cine-eyebrow .arrow {
    width: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(245, 196, 94, 0.2), var(--sc-gold));
    position: relative;
}

.hero-cine-eyebrow .arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: -3px;
    border: 3.5px solid transparent;
    border-left: 6px solid var(--sc-gold);
    border-right: 0;
}

.hero-cine-title {
    margin: 0;
    font-size: clamp(2.6rem, 6.2vw, 5.4rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.hero-cine-title em {
    font-style: normal;
    background: linear-gradient(100deg, #fff1cf 0%, var(--sc-gold) 45%, var(--sc-gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-cine-side p {
    margin: 0 0 1.75rem;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.65;
    color: rgba(232, 237, 247, 0.86);
    max-width: 34rem;
}

.hero-cine-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.btn-cine {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-cine--gold {
    color: #1a1204;
    background: linear-gradient(120deg, #ffe3a3, var(--sc-gold) 45%, var(--sc-gold-deep));
    box-shadow: 0 12px 40px -12px rgba(245, 196, 94, 0.7);
}

.btn-cine--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px -12px rgba(245, 196, 94, 0.85);
}

.btn-cine--glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.btn-cine--glass:hover {
    background: rgba(255, 255, 255, 0.16);
}

.hero-cine-toggle {
    position: absolute;
    right: clamp(1rem, 3vw, 2rem);
    top: clamp(1rem, 3vw, 2rem);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(5, 10, 24, 0.45);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.hero-cine-toggle svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.hero-cine-toggle .icon-play { display: none; }
.hero-cine.is-paused .hero-cine-toggle .icon-play { display: block; }
.hero-cine.is-paused .hero-cine-toggle .icon-pause { display: none; }

.hero-cine-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.1rem;
    width: 1px;
    height: 2.6rem;
    background: linear-gradient(180deg, transparent, rgba(245, 196, 94, 0.9));
    animation: cine-scroll 2.2s ease-in-out infinite;
}

@keyframes cine-scroll {
    0%, 100% { transform: translateY(-6px); opacity: 0.3; }
    50% { transform: translateY(4px); opacity: 1; }
}

/* Copy rises in once the video has had a moment to breathe. */
.hero-cine .rise {
    opacity: 0;
    transform: translateY(18px);
    animation: cine-rise 1s cubic-bezier(.2, .7, .2, 1) forwards;
}

.hero-cine .rise:nth-child(2) { animation-delay: 0.15s; }
.hero-cine .rise:nth-child(3) { animation-delay: 0.3s; }
.hero-cine-side.rise { animation-delay: 0.45s; }

@keyframes cine-rise {
    to { opacity: 1; transform: none; }
}

/* Names of what we've built, drifting under the hero. */
.built-strip {
    background: var(--sc-ink);
    border-top: 1px solid var(--sc-line);
    border-bottom: 1px solid var(--sc-line);
    overflow: hidden;
    padding: 1.1rem 0;
}

.built-strip-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: built-marquee 48s linear infinite;
}

.built-strip span {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(232, 237, 247, 0.55);
    white-space: nowrap;
}

.built-strip span::before {
    content: "\2726";
    margin-right: 3rem;
    color: var(--sc-gold);
    opacity: 0.7;
}

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

/* ---------- Showcase ---------- */

.showcase {
    position: relative;
    padding: clamp(4.5rem, 9vw, 7.5rem) 0;
    background:
        radial-gradient(60rem 30rem at 85% -5%, rgba(245, 196, 94, 0.12), transparent 60%),
        radial-gradient(50rem 30rem at 0% 30%, rgba(56, 189, 248, 0.08), transparent 60%),
        var(--sc-ink);
    color: var(--sc-text);
}

.showcase-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.showcase-kicker {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sc-gold);
}

.showcase-head h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    text-wrap: balance;
}

.showcase-head h2 em {
    font-style: normal;
    color: var(--sc-gold);
}

.showcase-head p {
    margin: 0;
    color: var(--sc-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.work {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--sc-line);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.work--wide { grid-column: span 3; }

.work:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 196, 94, 0.45);
    box-shadow: 0 30px 70px -30px rgba(245, 196, 94, 0.35);
}

/* Browser frame around the real page. */
.work-frame {
    margin: 0.85rem 0.85rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0d1426;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
}

.work-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.work-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.work-bar i:first-child { background: #ff6159; }
.work-bar i:nth-child(2) { background: #ffbd2e; }
.work-bar i:nth-child(3) { background: #28c941; }

.work-bar span {
    flex: 1;
    margin-left: 0.6rem;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
    color: rgba(232, 237, 247, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-shot {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.work-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: opacity 0.6s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.work-shot img + img { opacity: 0; }
.work:hover .work-shot img + img { opacity: 1; }
.work:hover .work-shot img { transform: scale(1.04); }

.work-body {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.work-cat {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sc-gold);
}

.work-body h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: #fff;
}

.work-body > p {
    margin: 0;
    color: var(--sc-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.work-body ul {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.4rem;
}

.work-body li {
    position: relative;
    padding-left: 1.1rem;
    color: rgba(232, 237, 247, 0.78);
    font-size: 0.88rem;
    line-height: 1.5;
}

.work-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sc-gold);
}

.work-link {
    margin-top: auto;
    padding-top: 0.75rem;
    align-self: flex-start;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 196, 94, 0.5);
}

.work-link:hover { color: var(--sc-gold); }

.showcase-more {
    margin-top: clamp(3.5rem, 7vw, 5rem);
}

.showcase-more h3 {
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
    color: #fff;
}

.showcase-foot {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(245, 196, 94, 0.3);
    background: linear-gradient(120deg, rgba(245, 196, 94, 0.12), rgba(245, 196, 94, 0.02));
}

.showcase-foot p {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
    max-width: 40rem;
}

.showcase-more .showcase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.showcase-more .work { grid-column: span 1; }

/* Portfolio page intro. */
.showcase--page {
    margin-top: 72px;
}

@media (max-width: 1024px) {
    .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .work, .work--wide { grid-column: span 1; }
    .showcase-more .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-cine-content, .showcase-head { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .showcase-grid, .showcase-more .showcase-grid { grid-template-columns: 1fr; }
    .hero-cine { min-height: 92svh; }
    .hero-cine-content { gap: 1.5rem; }
    .hero-cine::before {
        background: linear-gradient(0deg, rgba(5, 10, 24, 0.97) 0%, rgba(5, 10, 24, 0.85) 45%, rgba(5, 10, 24, 0.25) 75%, rgba(5, 10, 24, 0.35) 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .built-strip-track, .hero-cine-scroll { animation: none; }
    .hero-cine .rise { animation: none; opacity: 1; transform: none; }
    .work, .work-shot img { transition: none; }
}
