/* ═══════════════════════════════════════════════════════════════════
   CABLO PICCASO — "OUT OF THE DARK"
   Dark cinematic portfolio · resend-inspired restraint
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --bg:        #050505;
    --bg-soft:   #0a0a0b;
    --ink:       #ededea;
    --ink-dim:   #b9b9c0;
    --ink-mute:  #8a8a92;
    --hairline:  rgba(255, 255, 255, 0.08);
    --amber:     #e8b15a;
    --amber-dim: rgba(232, 177, 90, 0.35);
    --serif:     'Instrument Serif', serif;
    --sans:      'Space Grotesk', sans-serif;
    --body:      'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--amber); color: #050505; }

/* ── Film grain ─────────────────────────────────────────────────── */
.grain {
    position: fixed; inset: -50%;
    width: 200%; height: 200%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2%, 1%); }
    50% { transform: translate(1%, -2%); }
    75% { transform: translate(-1%, 2%); }
    100% { transform: translate(2%, -1%); }
}

/* ── Eyebrow labels (the resend signature) ─────────────────────── */
.eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

/* ── Mini nav ───────────────────────────────────────────────────── */
.mini-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.mini-nav.is-visible { transform: translateY(0); }
.mini-nav__mark {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    color: var(--ink);
    text-decoration: none;
}
.mini-nav__links { display: flex; gap: 26px; align-items: center; }
.mini-nav__links a {
    font-size: 13px;
    color: var(--ink-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.mini-nav__links a:hover { color: var(--ink); }
.mini-nav__cta {
    padding: 7px 16px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    color: var(--ink) !important;
    transition: border-color 0.2s, background 0.2s;
}
.mini-nav__cta:hover { border-color: var(--amber-dim); background: rgba(232,177,90,0.06); }

/* ═══════════════ HERO ═══════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Warm rim light behind the face */
.hero__glow {
    position: absolute;
    top: 34%; left: 50%;
    width: 60vmin; height: 60vmin;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(232, 177, 90, 0.10) 0%,
        rgba(232, 177, 90, 0.04) 38%,
        transparent 68%);
    filter: blur(10px);
    pointer-events: none;
}

/* The giant name — sits BEHIND the portrait */
.hero__name {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -58%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(80px, 19vw, 300px);
    line-height: 0.92;
    letter-spacing: 0.01em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(237, 237, 234, 0.40);
    user-select: none;
    white-space: nowrap;
}
.hero__name-line { display: block; will-change: transform; }

/* The portrait — face emerges from black via radial mask */
.hero__portrait {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__portrait img {
    display: block;
    width: min(78vw, 480px);
    height: auto;
    /* the baked-in treatment (pure-black bg = page bg) IS the dissolve;
       no cover-crop, no CSS mask to fight it */
    animation: hero-drift 22s ease-in-out infinite alternate;
}
@keyframes hero-drift {
    from { transform: scale(1) translateY(0); }
    to   { transform: scale(1.05) translateY(-1.5%); }
}

/* Ghost copy of the name ABOVE the portrait — ties the letters through
   the face so the occluded middle stays readable as shapes */
.hero__name--front {
    z-index: 3;
    -webkit-text-stroke: 1px rgba(237, 237, 234, 0.14);
    mix-blend-mode: screen;   /* faint imprint over skin/hair so letters stay continuous */
    pointer-events: none;
}

/* Eyebrow under everything */
.hero__eyebrow {
    position: absolute;
    bottom: 9vh; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.26em;
    color: var(--ink-mute);
    white-space: nowrap;
}
.hero__eyebrow-rule {
    display: inline-block;
    width: 52px; height: 1px;
    background: var(--hairline);
}

/* Scroll cue */
.hero__scrollcue {
    position: absolute;
    bottom: 3.2vh; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 22px; height: 34px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
}
.hero__scrollcue span {
    position: absolute;
    top: 6px; left: 50%;
    width: 2px; height: 7px;
    margin-left: -1px;
    border-radius: 2px;
    background: var(--amber);
    animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
    0%, 100% { transform: translateY(0); opacity: 1; }
    55% { transform: translateY(10px); opacity: 0.15; }
}

/* ═══════════════ SECTIONS (shared) ═══════════════ */
section { position: relative; }

.statement, .film, .company, .gallery, .contact {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24vh 28px 12vh;
    border-top: 1px solid var(--hairline);
}

.statement__line {
    margin-top: 28px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: clamp(30px, 4.6vw, 56px);
    line-height: 1.18;
    letter-spacing: -0.02em;
}
.statement__line em,
.company__line em,
.contact__line em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--amber);
}
.statement__sub {
    margin-top: 34px;
    max-width: 560px;
    color: var(--ink-dim);
    font-size: 16px;
}
.statement__sub em { font-family: var(--serif); font-style: italic; color: var(--ink); }

/* ═══════════════ FILM ═══════════════ */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.imdb-link {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--ink-dim);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--hairline);
    transition: color 0.2s, border-color 0.2s;
}
.imdb-link:hover { color: var(--amber); border-color: var(--amber-dim); }

.credits { list-style: none; margin-top: 40px; }
.credits__row {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    gap: 24px;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--hairline);
    transition: background 0.25s, padding-left 0.25s;
}
.credits__row:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 12px;
}
.credits__year { color: var(--ink-mute); font-size: 14px; font-variant-numeric: tabular-nums; }
.credits__title { font-family: var(--sans); font-size: 19px; font-weight: 500; }
.credits__orig {
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    color: var(--ink-mute);
    font-weight: 400;
    margin-left: 6px;
}
.credits__row--more:hover { background: none; padding-left: 0; }
.credits__more {
    font-size: 14px;
    color: var(--ink-dim);
    text-decoration: none;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.credits__more:hover { color: var(--amber); border-color: var(--amber-dim); }
.credits__role { color: var(--ink-dim); font-size: 14px; }
.credits__type {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 4px 12px;
}

/* ═══════════════ COMPANY ═══════════════ */
.company__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    margin-top: 28px;
    align-items: start;
}
.company__line {
    font-family: var(--sans);
    font-weight: 500;
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.company__facts { display: flex; flex-direction: column; }
.fact {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
}
.fact__k {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding-top: 3px;
}
.fact__v { color: var(--ink-dim); font-size: 15px; }

/* ═══════════════ GALLERY ═══════════════ */
.gallery__strip {
    display: flex;
    gap: 18px;
    margin-top: 40px;
    overflow-x: auto;
    padding-bottom: 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--hairline) transparent;
}
.gallery__item {
    flex: 0 0 clamp(220px, 28vw, 340px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: 4px;
    background: var(--bg-soft);
}
.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.85) contrast(1.02);
    transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery__item:hover img {
    filter: grayscale(0);
    transform: scale(1.03);
}

/* ═══════════════ CONTACT ═══════════════ */
.contact { text-align: center; }
.contact__line {
    margin-top: 28px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: clamp(30px, 4.6vw, 54px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.contact__mail {
    display: inline-block;
    margin-top: 34px;
    font-family: var(--sans);
    font-size: 17px;
    color: var(--ink);
    text-decoration: none;
    padding: 14px 30px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.contact__mail:hover {
    border-color: var(--amber-dim);
    background: rgba(232, 177, 90, 0.06);
    transform: translateY(-2px);
}
.contact__links {
    list-style: none;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.contact__links a {
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--ink-dim);
    text-decoration: none;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.contact__links a:hover { color: var(--amber); border-color: var(--amber-dim); }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 28px 34px;
    border-top: 1px solid var(--hairline);
    font-size: 12px;
    color: var(--ink-mute);
    letter-spacing: 0.06em;
}

/* ── Scroll reveal ──────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    /* stacked hero: SAMIYEL above, portrait middle, AKDIL below —
       the behind-portrait trick doesn't work at this width ratio */
    .hero { flex-direction: column; justify-content: center; gap: 3.5vh; }
    .hero__name {
        position: static;
        display: contents;          /* the two spans become flex items of .hero */
        transform: none;
    }
    .hero__name-line {
        display: block;
        z-index: 2;
        font-size: clamp(52px, 16vw, 96px);
        text-align: center;
    }
    .hero__name-line:nth-child(1) { order: 1; }
    .hero__portrait { order: 2; }
    .hero__name-line:nth-child(2) { order: 3; }
    .hero__name--front { display: none; }  /* no ghost layer in stacked layout */
    .hero { padding-top: 4vh; }
    .hero__portrait img { width: 82vw; }
    .statement, .film, .company, .gallery, .contact { padding: 16vh 20px 8vh; }
    .company__grid { grid-template-columns: 1fr; gap: 36px; }
    .credits__row { grid-template-columns: 60px 1fr; gap: 6px 16px; }
    .credits__role { grid-column: 2; }
    .credits__type { grid-column: 2; justify-self: start; }
    .mini-nav__links { gap: 16px; }
    .mini-nav__links a:not(.mini-nav__cta) { display: none; }
    .footer { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .grain, .hero__portrait img, .hero__scrollcue span { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
