@import url("./fonts.css");

/* Portfolio page: same identity as the 3D home (Space Grotesk, black stage, glass,
   palette blue → violet → pink), but a plain scrolling page with a native cursor. */
:root {
    --bg: #030409;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.55);
    --faint: rgba(255, 255, 255, 0.32);
    --line: rgba(255, 255, 255, 0.12);
    --glass: rgba(255, 255, 255, 0.045);
    --glass-strong: rgba(255, 255, 255, 0.08);
    --blue: #4d8cff;
    --violet: #8f52f5;
    --pink: #fa579e;
    --gutter: clamp(16px, 4vw, 56px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
/* Fixed colour glows: static, so nothing repaints while scrolling. */
body::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60vw 50vh at 85% 0%, rgba(77, 140, 255, 0.16), transparent 70%),
        radial-gradient(50vw 50vh at 0% 55%, rgba(143, 82, 245, 0.12), transparent 70%),
        radial-gradient(60vw 45vh at 90% 100%, rgba(250, 87, 158, 0.10), transparent 70%);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--faint); }

/* ---- Header ---- */
.pf-header {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    height: 70px; padding: 0 var(--gutter);
    background: rgba(3, 4, 9, 0.82);
    border-bottom: 1px solid var(--line);
}
.pf-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; white-space: nowrap; }
.pf-brand img { width: 25px; height: 18px; object-fit: contain; }
.pf-nav { display: flex; gap: 34px; }
.pf-nav a {
    position: relative; padding: 6px 0; font-size: 12px; letter-spacing: 0.04em;
    color: var(--muted); text-decoration: none; transition: color 0.3s;
}
.pf-nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
    background: #fff; transition: width 0.5s var(--ease);
}
.pf-nav a:hover, .pf-nav a.is-active { color: #fff; }
.pf-nav a.is-active::after { width: 100%; }
.pf-pill {
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    padding: 9px 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
    font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-decoration: none;
    transition: border-color 0.3s, background 0.3s;
}
.pf-pill:hover { border-color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.06); }
.pf-pill.is-big { padding: 16px 28px; font-size: 15px; }

main { padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto; }

/* ---- Hero ---- */
.pf-hero { padding: clamp(60px, 12vh, 130px) 0 clamp(50px, 8vh, 90px); }
.pf-eyebrow {
    display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
    font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.pf-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.pf-hero h1 {
    font-size: clamp(44px, 8.5vw, 112px); font-weight: 400; line-height: 0.98; letter-spacing: -0.035em;
}
.pf-lead { max-width: 560px; margin-top: 30px; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; color: var(--muted); }
.pf-team {
    list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px;
}
.pf-member-card {
    display: flex; flex-direction: column; gap: 6px; height: 100%;
    padding: 24px 24px 22px; border: 1px solid var(--line); border-radius: 20px;
    background: linear-gradient(160deg, var(--glass-strong), var(--glass));
    text-decoration: none; transition: border-color 0.35s, transform 0.5s var(--ease);
}
.pf-member-card:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-3px); }
.pf-member-name { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.pf-member-role { font-size: 13px; color: var(--muted); }
.pf-member-tags { margin-top: 14px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* ---- Member section ---- */
.pf-member { padding: clamp(60px, 10vh, 110px) 0; border-top: 1px solid var(--line); }
.pf-member-head {
    display: grid; grid-template-columns: 80px minmax(220px, 1fr) minmax(0, 1.3fr); gap: 24px 40px;
    align-items: start; margin-bottom: 56px;
}
.pf-index { font-size: 12px; letter-spacing: 0.2em; color: var(--faint); padding-top: 14px; }
.pf-member-head h2 { font-size: clamp(40px, 6vw, 76px); font-weight: 400; letter-spacing: -0.035em; line-height: 1; }
.pf-role { margin-top: 10px; font-size: 14px; color: var(--muted); }
.pf-bio { font-size: 16px; line-height: 1.65; color: var(--muted); padding-top: 10px; }
.pf-sub {
    display: flex; align-items: center; gap: 16px; margin: 48px 0 22px;
    font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75);
}
.pf-sub::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---- Video / project cards ---- */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pf-card {
    display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
    border: 1px solid var(--line); border-radius: 18px; background: var(--glass);
    transition: border-color 0.35s, transform 0.5s var(--ease), background 0.35s;
}
.pf-card:hover { border-color: rgba(255, 255, 255, 0.38); background: var(--glass-strong); transform: translateY(-3px); }
.pf-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0d16; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pf-card:hover .pf-thumb img { transform: scale(1.04); }
.pf-play {
    position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(3, 4, 9, 0.45);
    transition: transform 0.4s var(--ease), background 0.3s;
}
.pf-play::after {
    content: ''; position: absolute; left: 21px; top: 17px;
    border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff;
}
.pf-card:hover .pf-play { transform: scale(1.1); background: rgba(77, 140, 255, 0.55); }
.pf-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.pf-card-body strong { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.pf-card-body > span:last-child { font-size: 14px; line-height: 1.5; color: var(--muted); }
.pf-tag {
    align-self: flex-start; padding: 4px 9px; border-radius: 999px; margin-bottom: 4px;
    font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: #cfdcff; background: rgba(77, 140, 255, 0.14); border: 1px solid rgba(77, 140, 255, 0.3);
}

/* ---- Image galleries ---- */
.pf-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pf-gallery.is-small { grid-template-columns: repeat(4, 1fr); }
.pf-shot {
    position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 16px;
    border: 1px solid var(--line); background: #0b0d16;
}
.pf-shot.is-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.pf-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pf-shot:hover img { transform: scale(1.05); }
.pf-shot span {
    position: absolute; left: 12px; bottom: 12px; padding: 6px 11px; border-radius: 999px;
    font-size: 12px; background: rgba(3, 4, 9, 0.7); border: 1px solid rgba(255, 255, 255, 0.16);
}
.pf-more {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 34px;
    font-size: 15px; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.3s;
}
.pf-more:hover { border-color: #fff; }

/* ---- Call to action & footer ---- */
.pf-cta {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px;
    padding: clamp(70px, 12vh, 130px) 0; border-top: 1px solid var(--line);
}
.pf-cta h2 { font-size: clamp(40px, 7vw, 92px); font-weight: 400; line-height: 1; letter-spacing: -0.035em; }
.pf-footer {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 26px var(--gutter); border-top: 1px solid var(--line);
    font-size: 12px; letter-spacing: 0.04em; color: var(--muted);
}
.pf-footer a { text-decoration: none; }
.pf-footer a:hover { color: #fff; }

/* ---- Lightbox ---- */
.pf-lightbox {
    position: fixed; inset: 0; z-index: 50;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    padding: 60px var(--gutter) 30px; background: rgba(2, 3, 7, 0.94);
}
.pf-lightbox[hidden] { display: none; }
.pf-lightbox-stage { width: min(1200px, 100%); display: flex; justify-content: center; }
.pf-lightbox-stage video, .pf-lightbox-stage img {
    max-width: 100%; max-height: calc(100vh - 150px); border-radius: 14px; background: #000;
}
.pf-lightbox-stage video { width: 100%; }
.pf-lightbox-caption { font-size: 14px; color: var(--muted); text-align: center; }
.pf-lightbox-close {
    position: absolute; top: 14px; right: var(--gutter); width: 44px; height: 44px;
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 26px; line-height: 1; text-align: center;
}
.pf-lightbox-close:hover { background: rgba(255, 255, 255, 0.1); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .pf-team { grid-template-columns: 1fr; }
    .pf-member-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 36px; }
    .pf-index { padding-top: 0; }
    .pf-gallery { grid-template-columns: repeat(2, 1fr); }
    .pf-gallery.is-small { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pf-nav { gap: 18px; }
    .pf-brand span { display: none; }
    .pf-gallery { grid-template-columns: 1fr; }
    .pf-shot.is-wide { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 10; }
    .pf-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
