/* ============================================
   LUITI ESCOBAR — luitiescobar.com
   Shared stylesheet for all pages
   ============================================ */

:root {
    --black:    #080808;
    --deep:     #0e0b0b;
    --red:      #5a0a0a;
    --red-mid:  #7a1010;
    --red-glow: #9b1a1a;
    --gold:     #9a7d3a;
    --gold-hi:  #c4a050;
    --gold-dim: #5a4820;
    --cream:    #d4c8a8;
    --muted:    #6a5f4a;
    --nav-h:    72px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--cream);
    font-family: 'peridot-pe-variable', sans-serif;
    font-weight: 300;
    cursor: none;
    overflow-x: hidden;
}

/* ── CUSTOM CURSOR ── */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--gold-hi);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform .1s, background .2s;
    mix-blend-mode: screen;
}

.cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid var(--gold-dim);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all .08s ease;
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
    width: 48px;
    height: 48px;
    border-color: var(--gold-hi);
}

/* ── GRAIN OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: .025;
    pointer-events: none;
    z-index: 9000;
}

/* ── NAV — shared base ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color .4s, background .4s;
}

nav.scrolled,
nav.solid {
    background: rgba(8,8,8,.92);
    border-color: var(--gold-dim);
    backdrop-filter: blur(12px);
}

.nav-logo {
    font-family: 'peridot-pe-variable', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-hi);
    text-decoration: none;
    transition: color .2s;
}

.nav-logo span { color: var(--red-glow); }

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-family: 'peridot-pe-variable', sans-serif;
    font-weight: 400;
    font-size: .85rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0; right: 0;
    height: 1px;
    background: var(--gold-hi);
    transform: scaleX(0);
    transition: transform .25s;
}

.nav-links a:hover { color: var(--gold-hi); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── FOOTER — shared ── */
footer {
    padding: 32px 48px;
    border-top: 1px solid #1a1410;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold-dim);
}

.footer-tagline {
    font-family: 'peridot-pe-variable', sans-serif;
    font-style: italic;
    font-size: .8rem;
    color: var(--red);
    letter-spacing: .05em;
}

/* ── ANIMATIONS — shared ── */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: .3; transform: scaleY(1); }
    50%       { opacity: 1; transform: scaleY(1.3); }
}

/* ══════════════════════════════════════════
   INDEX PAGE STYLES
   ══════════════════════════════════════════ */

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-h) + 40px) 48px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/sitebg1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .85;
}

.hero-name {
    font-family: 'peridot-pe-variable', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 10vw, 9rem);
    line-height: .9;
    text-transform: uppercase;
    letter-spacing: -.01em;
    color: var(--cream);
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp .9s .2s forwards;
}

.hero-name em {
    font-style: normal;
    color: var(--gold-hi);
    display: block;
}

.hero-title {
    font-family: 'peridot-pe-variable', sans-serif;
    font-weight: 300;
    font-size: clamp(.75rem, 1.5vw, 1rem);
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 20px;
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0;
    animation: fadeUp .9s .5s forwards;
}

.hero-tagline {
    font-family: 'peridot-pe-variable', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(.9rem, 2vw, 1.25rem);
    color: var(--red-glow);
    margin-top: 32px;
    letter-spacing: .05em;
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0;
    animation: fadeUp .9s .8s forwards;
}

.hero-reel {
    width: min(860px, 100%);
    margin-top: 56px;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeUp .9s 1s forwards;
}

.reel-frame {
    position: relative;
    padding-bottom: 56.25%;
    background: #0a0808;
    border: 1px solid var(--gold-dim);
    overflow: hidden;
}

.reel-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: none;
}

.reel-label {
    margin-top: 12px;
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    text-align: right;
}

.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp .6s 1.6s forwards;
}

.scroll-cue span {
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gold-dim);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-dim), transparent);
    animation: scrollPulse 2s 2s infinite;
}

/* ── SECTION BASE ── */
section { padding: 100px 48px; }

.section-label {
    font-family: 'peridot-pe-variable', sans-serif;
    font-size: .7rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--red-glow);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--red), transparent);
}

/* ── WORK GRID ── */
#work { background: var(--deep); }

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2px;
}

.work-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #100c0c;
    cursor: none;
}

.work-item-thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.25,.46,.45,.94), opacity .4s;
    opacity: .7;
}

.work-item:hover .work-item-thumb {
    transform: scale(1.04);
    opacity: .3;
}

.work-item-preview {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.work-item-preview iframe {
    width: 100%; height: 100%;
    border: none;
    pointer-events: none;
}

.work-item:hover .work-item-preview { opacity: 1; }

.work-item-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(to top, rgba(8,4,4,.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
}

.work-item:hover .work-item-info { opacity: 1; }

.work-item-title {
    font-family: 'peridot-pe-variable', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--cream);
    line-height: 1.1;
}

.work-item-cat {
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-hi);
    margin-top: 4px;
}

.work-item-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.work-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--gold-dim);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    z-index: 3;
}

.work-item:hover::after { opacity: 1; }

/* ── WHO ── */
#who {
    max-width: 900px;
    margin: 0 auto;
}

.who-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.who-text h2 {
    font-family: 'peridot-pe-variable', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    line-height: .95;
    color: var(--cream);
    margin-bottom: 32px;
}

.who-text h2 span {
    color: var(--gold-hi);
    display: block;
}

.who-text p {
    font-size: .95rem;
    line-height: 1.8;
    color: #a09080;
    margin-bottom: 20px;
}

.who-text p strong {
    color: var(--cream);
    font-weight: 500;
}

.who-clients { margin-top: 40px; }

.who-clients-label {
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--red-glow);
    margin-bottom: 16px;
}

.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.client-tag {
    font-family: 'peridot-pe-variable', sans-serif;
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-dim);
    border: 1px solid var(--gold-dim);
    padding: 4px 12px;
    transition: color .2s, border-color .2s;
}

.client-tag:hover {
    color: var(--gold-hi);
    border-color: var(--gold-hi);
}

.who-image { position: relative; }

.who-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border: 1px solid var(--gold-dim);
    cursor: none;
}

.who-photo {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .6s ease, filter .6s ease;
}

.who-photo-baby {
    opacity: 1;
    filter: sepia(.3) contrast(1.1);
    z-index: 1;
}

.who-photo-now {
    opacity: 0;
    filter: grayscale(30%) contrast(1.1);
    z-index: 2;
}

.who-photo-wrap:hover .who-photo-baby { opacity: 0; }
.who-photo-wrap:hover .who-photo-now  { opacity: 1; }

.who-photo-hint {
    position: absolute;
    bottom: 12px; right: 12px;
    font-family: 'peridot-pe-variable', sans-serif;
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    z-index: 3;
    transition: opacity .3s;
}

.who-photo-wrap:hover .who-photo-hint { opacity: 0; }

.who-photo-accent {
    position: absolute;
    top: -12px; right: -12px;
    width: 100%; height: 100%;
    border: 1px solid var(--red);
    z-index: -1;
}

.who-tools { margin-top: 32px; }

.who-tools-label {
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.tool-list {
    font-family: 'peridot-pe-variable', sans-serif;
    font-size: .85rem;
    letter-spacing: .1em;
    color: var(--gold-dim);
    line-height: 2;
}

/* ── LET'S TALK ── */
#talk {
    background: var(--deep);
    text-align: center;
}

.talk-inner {
    max-width: 640px;
    margin: 0 auto;
}

.talk-big {
    font-family: 'peridot-pe-variable', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7rem);
    text-transform: uppercase;
    line-height: .9;
    color: var(--cream);
    margin-bottom: 24px;
}

.talk-big span { color: var(--gold-hi); }

.talk-sub {
    font-size: .9rem;
    line-height: 1.8;
    color: #8a7a60;
    margin-bottom: 48px;
}

.talk-email {
    display: block;
    font-family: 'peridot-pe-variable', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: .1em;
    color: var(--gold-hi);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 4px;
    transition: color .2s, border-color .2s;
    margin-bottom: 48px;
}

.talk-email:hover {
    color: var(--cream);
    border-color: var(--cream);
}

.talk-socials {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.talk-socials a {
    font-family: 'peridot-pe-variable', sans-serif;
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.talk-socials a:hover { color: var(--gold-hi); }

/* ══════════════════════════════════════════
   PROJECT PAGE STYLES
   ══════════════════════════════════════════ */

.back-btn {
    display: block;
    width: fit-content;
    font-family: 'peridot-pe-variable', sans-serif;
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
    margin-top: calc(var(--nav-h) + 48px);
    margin-left: 48px;
}

.back-btn::before {
    content: '← ';
    color: var(--gold-dim);
    transition: color .2s, letter-spacing .2s;
}

.back-btn:hover { color: var(--gold-hi); }
.back-btn:hover::before {
    color: var(--gold-hi);
    letter-spacing: .35em;
}

.project-hero { padding: 24px 48px 0; }

.project-meta {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp .7s .1s forwards;
}

.project-category {
    font-family: 'peridot-pe-variable', sans-serif;
    font-size: .7rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--red-glow);
}

.project-year {
    font-size: .7rem;
    letter-spacing: .2em;
    color: var(--muted);
}

.project-title {
    font-family: 'peridot-pe-variable', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    text-transform: uppercase;
    line-height: .92;
    color: var(--cream);
    margin-bottom: 32px;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .7s .2s forwards;
}

.project-title span { color: var(--gold-hi); }

.project-video {
    position: relative;
    padding-bottom: 56.25%;
    background: #0a0808;
    border: 1px solid var(--gold-dim);
    overflow: hidden;
    opacity: 0;
    animation: fadeUp .7s .35s forwards;
}

.project-video iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: none;
}

.project-info {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    padding: 56px 48px;
    border-bottom: 1px solid #1a1410;
}

.project-description h2 {
    font-family: 'peridot-pe-variable', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold-hi);
    margin-bottom: 20px;
}

.project-description p {
    font-size: .95rem;
    line-height: 1.85;
    color: #a09080;
    margin-bottom: 16px;
}

.project-description p strong {
    color: var(--cream);
    font-weight: 500;
}

.detail-block { margin-bottom: 32px; }

.detail-label {
    font-family: 'peridot-pe-variable', sans-serif;
    font-size: .65rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--red-glow);
    margin-bottom: 8px;
}

.detail-value {
    font-family: 'peridot-pe-variable', sans-serif;
    font-size: 1rem;
    letter-spacing: .05em;
    color: var(--cream);
    line-height: 1.6;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.detail-tag {
    font-family: 'peridot-pe-variable', sans-serif;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-dim);
    border: 1px solid var(--gold-dim);
    padding: 3px 10px;
}

.project-gallery { padding: 64px 48px; }

.gallery-label {
    font-family: 'peridot-pe-variable', sans-serif;
    font-size: .7rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--red-glow);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.gallery-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--red), transparent);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    background: #100c0c;
    aspect-ratio: 16/9;
}

.photo-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.25,.46,.45,.94), opacity .4s;
    opacity: .85;
}

.photo-item:hover img {
    transform: scale(1.04);
    opacity: 1;
}

.photo-item.tall  { aspect-ratio: 9/16; grid-row: span 2; }
.photo-item.wide  { grid-column: span 2; aspect-ratio: 16/7; }

.project-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #1a1410;
}

.project-nav-item {
    padding: 40px 48px;
    text-decoration: none;
    transition: background .2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-nav-item:first-child { border-right: 1px solid #1a1410; }
.project-nav-item:hover { background: rgba(154,125,58,.04); }
.project-nav-item:last-child { text-align: right; }

.nav-direction {
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav-direction::before { content: '← '; }
.project-nav-item:last-child .nav-direction::before { content: ''; }
.project-nav-item:last-child .nav-direction::after  { content: ' →'; }

.nav-project-title {
    font-family: 'peridot-pe-variable', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--cream);
    transition: color .2s;
}

.project-nav-item:hover .nav-project-title { color: var(--gold-hi); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    nav { padding: 0 24px; }
    .nav-links { gap: 24px; }
    section { padding: 72px 24px; }
    .hero { padding: calc(var(--nav-h) + 20px) 24px 60px; }
    .work-grid { grid-template-columns: 1fr; }
    .who-inner { grid-template-columns: 1fr; gap: 40px; }
    footer { flex-direction: column; gap: 12px; text-align: center; }

    .back-btn { margin-left: 24px; }
    .project-hero,
    .project-info,
    .project-gallery,
    .project-nav-item { padding-left: 24px; padding-right: 24px; }
    .project-info { grid-template-columns: 1fr; gap: 40px; }
    .project-nav { grid-template-columns: 1fr; }
    .project-nav-item:first-child { border-right: none; border-bottom: 1px solid #1a1410; }
    .project-nav-item:last-child { text-align: left; }
    .photo-item.wide { grid-column: span 1; aspect-ratio: 16/9; }
}
