/* sabina kuku . portfolio
   first pass echoing the cv's language: heavy black uppercase display type,
   typewriter body, off-white paper background. to be refined with references. */

:root {
    --paper: #f4f1ec;
    --ink: #111111;
    --muted: #6b6b6b;
    --accent: #111111;
    --display: "Archivo Black", "Arial Black", sans-serif;
    --mono: "Space Mono", ui-monospace, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 16px;
    line-height: 1.6;
}

a { color: var(--ink); }

/* hanging nav buttons: bottom left, side by side, flush with the edge */

.navdock {
    position: fixed;
    left: 0;
    bottom: 1.75rem;
    z-index: 20;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 2px;
}

.navdock a {
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--display);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    padding: 1rem 1.5rem;
    transition: transform 0.18s ease;
}

.navdock a:hover { transform: translateY(-0.35rem); }

/* hero */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh; /* mobile browsers: ignore the collapsing url bar */
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    border-bottom: 1px solid var(--ink);
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000;
}

.hero-media video {
    position: absolute;
    inset: -6% 0;
    width: 100%;
    height: 112%;
    object-fit: cover;
    will-change: transform;
}

/* phones that block autoplay (low power mode) draw a play glyph over the
   poster; hide it, the script retries playback on the first touch instead */
.hero-media video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

/* halftone dot screen over the video: hides compression artifacts,
   so the source file can be small and still look intentional */
.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.85) 1px, transparent 1.4px);
    background-size: 4px 4px;
    pointer-events: none;
}

/* dark gradient at the bottom so the name stays readable over any footage */
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%);
    pointer-events: none;
}

.hero-has-video { color: var(--paper); border-bottom-color: var(--paper); }
.hero-has-video .hero-location { color: rgba(244, 241, 236, 0.7); }

/* the name lives once: big, top right, black on paper blocks */

.hero-inner {
    position: relative;
    padding: 2.5rem 1.5rem 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.hero-name {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--display);
    text-transform: uppercase;
    font-size: clamp(3.5rem, 13vw, 10rem);
    line-height: 0.92;
    letter-spacing: -0.01em;
    will-change: transform;
}

.hero-name span {
    background: var(--paper);
    color: var(--ink);
    padding: 0 0.1em;
}

.hero-tagline {
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 700;
}

.hero-location { color: var(--muted); }

/* over video: white support text haloed in black, mirroring the name */

.hero-has-video .hero-tagline,
.hero-has-video .hero-location {
    color: #ffffff;
    text-shadow:
        0 0 2px #000000,
        0 0 10px rgba(0, 0, 0, 0.95),
        0 0 24px rgba(0, 0, 0, 0.8);
}

/* sections */

.section {
    max-width: 72rem;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    border-bottom: 1px solid var(--ink);
}

/* reveal on scroll, disabled for users who prefer reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(2rem);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

.section h2 {
    font-family: var(--display);
    text-transform: uppercase;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 2.5rem;
}

.section h3 {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin: 1.5rem 0 0.5rem;
}

.section h3:first-child { margin-top: 0; }

/* about */

.bio {
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    line-height: 1.5;
    max-width: 46rem;
    margin-bottom: 2.5rem;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.facts dt {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.about-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 2rem;
}

.about-lists ul { list-style: none; }

.about-lists li::before { content: "· "; }

.year { color: var(--muted); }

/* parallax interludes: narrow full-bleed bands built from black and white
   zoom-ins on her face, drifting under grain and line textures */

.interlude {
    position: relative;
    height: 50vh;
    overflow: hidden;
    background: #0a0a0a;
    border-bottom: 1px solid var(--ink);
}

.tex {
    position: absolute;
    inset: -120% 0;
    will-change: transform;
    pointer-events: none;
}

.tex-base {
    background-size: cover;
    background-position: center;
    opacity: 0.9;
}

.tex-side {
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    mask-image: linear-gradient(to left, black 40%, transparent 72%);
    -webkit-mask-image: linear-gradient(to left, black 40%, transparent 72%);
}

.tex-side-l {
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    mask-image: linear-gradient(to right, black 35%, transparent 68%);
    -webkit-mask-image: linear-gradient(to right, black 35%, transparent 68%);
}

.tex-grain {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.4'/></svg>");
}

.tex-stripes {
    background-image: repeating-linear-gradient(45deg,
        rgba(244, 241, 236, 0.07) 0 2px, transparent 2px 90px);
}

.tex-scan {
    background-image: repeating-linear-gradient(0deg,
        rgba(244, 241, 236, 0.06) 0 1px, transparent 1px 7px);
}

/* work credits */

.credits { list-style: none; }

.credit {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--ink);
}

.credit:first-child { border-top: none; padding-top: 0; }

.credit-year { font-weight: 700; }

.credit-piece {
    font-family: var(--display);
    text-transform: uppercase;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    margin: 0;
}

.credit-collab { margin-top: 0.25rem; }

.credit-detail {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.85rem;
}

/* watch + gallery */

.yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.yt-label {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--ink);
}

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

.placeholder {
    border: 1px dashed var(--muted);
    color: var(--muted);
    padding: 4rem 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
}

/* hall of videos: instagram previews in color, click through to watch */

.reel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 1rem;
}

.reel {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #000;
}

.reel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.reel:hover img { transform: scale(1.03); }

.reel-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 10, 10, 0.85);
    color: var(--paper);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.5rem 0.75rem;
}

.reel-ig {
    color: rgba(244, 241, 236, 0.6);
    white-space: nowrap;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-ig {
    position: absolute;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.85);
    color: rgba(244, 241, 236, 0.6);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.4rem 0.6rem;
}

/* in the media: press mentions, same skeleton as the work credits */

.press { list-style: none; }

.press-item a {
    display: grid;
    grid-template-columns: 14rem 1fr 13rem;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--ink);
    text-decoration: none;
}

.press-item:first-child a { border-top: none; padding-top: 0; }

.press-outlet { font-weight: 700; }

.press-title {
    display: block;
    font-family: var(--display);
    text-transform: uppercase;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.press-item a:hover .press-title { text-decoration: underline; }

.press-meta {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.press-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink);
}

.press-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.press-item a:hover .press-thumb img { transform: scale(1.04); }

/* contact */

.section-contact { text-align: center; }

.contact-email a {
    font-family: var(--display);
    font-size: clamp(1.2rem, 3.5vw, 2.2rem);
    text-transform: uppercase;
    text-decoration: none;
}

.contact-email a:hover { text-decoration: underline; }

.contact-social { margin-top: 1rem; }

.contact-social-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
}

.contact-ig-icon {
    width: 0.95rem;
    height: 0.95rem;
    vertical-align: -0.2em;
    margin-left: 0.3rem;
}

.contact-social a { margin: 0 0.75rem; }

/* consent banner */

.consent {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    max-width: 20rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--ink);
    color: var(--paper);
    padding: 1rem;
    font-size: 0.75rem;
    line-height: 1.5;
}

.consent[hidden] { display: none; }

.consent-actions { display: flex; gap: 2px; }

.consent-actions button {
    flex: 1;
    border: 1px solid var(--paper);
    background: none;
    color: var(--paper);
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    padding: 0.5rem;
    cursor: pointer;
}

.consent-actions .consent-accept {
    background: var(--paper);
    color: var(--ink);
}

/* footer + 404 */

footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
}

.notfound {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.notfound h1 {
    font-family: var(--display);
    font-size: clamp(4rem, 20vw, 10rem);
    line-height: 1;
}

/* tablets */
@media (max-width: 60rem) {
    .navdock a { font-size: 0.85rem; padding: 0.8rem 1.1rem; }

    .press-item a { grid-template-columns: 9rem 1fr 9rem; }
}

/* phones: nav becomes a full-width bottom bar, grids go two-up */
@media (max-width: 40rem) {
    .navdock { left: 0; right: 0; bottom: 0; gap: 1px; }

    .navdock a {
        flex: 1;
        text-align: center;
        font-size: 0.62rem;
        letter-spacing: 0.08em;
        padding: 0.85rem 0.25rem;
    }

    .navdock a:hover { transform: none; }

    .section { padding: 3.5rem 1.25rem; }
    .hero-inner { padding: 1.5rem 1.25rem 2.5rem; }

    .interlude { height: 38vh; }

    .credit { grid-template-columns: 1fr; gap: 0.25rem; }

    .press-item a { grid-template-columns: 1fr; gap: 0.25rem; padding: 1.25rem 0; }
    .press-thumb { margin-top: 0.75rem; }

    .facts { grid-template-columns: repeat(2, 1fr); }

    .reel-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .reel-ig { display: none; }
    .reel-label { font-size: 0.55rem; padding: 0.4rem 0.5rem; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .gallery-ig { font-size: 0.55rem; padding: 0.35rem 0.45rem; }

    /* keep the last content clear of the fixed nav bar */
    footer { padding-bottom: 5rem; }
    .section-contact { padding-bottom: 6rem; }

    .consent { left: 0.5rem; right: 0.5rem; bottom: 3.6rem; max-width: none; }
}
