/* ==========================================================================
   SOZ STUDIO — style.css (v2)
   Concept: the page borrows the vocabulary of an editing suite — viewfinder
   marks, rule-of-thirds guides, a timeline ruler with a playhead, letterboxed
   16:9 frames, a live timecode — so it feels like it belongs to an editor.
   One orchestrated load moment: letterbox bars open -> hero rises -> the
   playhead sweeps. Everything else reacts to the person, not the clock.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=DM+Mono:wght@400;500&family=Manrope:wght@400..800&display=swap');


/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
    /* Colour */
    --bg: #07080d;
    --surface: #0d0f17;
    --panel: #121522;
    --text: #eef0f8;
    --muted: #9a9fb4;
    --faint: #7e8397;
    --blue: #4f6dff;
    --blue-hi: #8d9dff;
    --cyan: #4fe1f3;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .18);

    /* Type */
    --font-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Layout */
    --gutter: 40px;
    --content: 1160px;
    --nav-h: 88px;

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --intro: 1s;   /* delay before the hero sequence starts (letterbox bars open first) */
}


/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Cinematic open: black letterbox bars part to reveal the page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 110;
    pointer-events: none;
    background-image:
        linear-gradient(#000, #000),
        linear-gradient(#000, #000);
    background-position: top, bottom;
    background-size: 100% 50.5%, 100% 50.5%;
    background-repeat: no-repeat;
    animation: bars-open 1.3s var(--ease) .2s forwards;
}

/* Fine film grain — adds depth to flat dark areas, costs no assets */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: .05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection {
    background: rgba(79, 225, 243, .28);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.section {
    width: min(var(--content), calc(100% - var(--gutter) * 2));
    margin-inline: auto;
    padding-block: clamp(84px, 11vw, 136px);
    scroll-margin-top: var(--nav-h);
}


/* --------------------------------------------------------------------------
   3. SHARED TYPE
   -------------------------------------------------------------------------- */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--blue-hi);
    font: 500 11px/1 var(--font-mono);
    letter-spacing: .14em;
}

.eyebrow::before {
    content: "";
    flex: none;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

.hero h1,
.section-heading h2,
.about h2,
.contact h2 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 700;
}

/* Gradient text — -webkit- prefix so Safari renders it */
.hero h1 span,
.section-heading h2 span,
.about h2 span,
.contact h2 span {
    background: linear-gradient(100deg, #ffffff 0%, #a9b6ff 45%, #4fe1f3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 48px;
}

.section-heading h2,
.about h2 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -.045em;
    margin-top: 20px;
}

.section-description {
    max-width: 280px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}


/* --------------------------------------------------------------------------
   4. NAVIGATION
   -------------------------------------------------------------------------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: max(var(--gutter), calc((100% - 1280px) / 2));
    background: rgba(7, 8, 13, .72);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.07em;
}

.logo span {
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(79, 225, 243, .7);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav-links a {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    color: #c5c8d6;
    transition: color .25s var(--ease);
}

.nav-links a:hover {
    color: #fff;
}

/* Underline that draws in on hover — and stays on for the current section */
.nav-links a:not(.nav-contact)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.nav-links a:not(.nav-contact):hover::after,
.nav-links a.active:not(.nav-contact)::after {
    transform: scaleX(1);
}

.nav-links a.active:not(.nav-contact) {
    color: #fff;
}

.nav-links .nav-contact {
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: 12px 18px;
    color: #fff;
    transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), translate .3s var(--ease);
}

.nav-links .nav-contact:hover {
    border-color: rgba(79, 225, 243, .6);
    background: rgba(79, 225, 243, .08);
    box-shadow: 0 0 26px rgba(79, 225, 243, .18);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    color: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    font-size: 20px;
    cursor: pointer;
    transition: border-color .25s var(--ease);
}

.menu-toggle:hover {
    border-color: var(--cyan);
}


/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    width: min(var(--content), calc(100% - var(--gutter) * 2));
    min-height: clamp(620px, calc(100svh - var(--nav-h)), 820px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 40px;
    padding: 56px 0 120px;
}

/* Full-bleed ambient light; the first layer follows the pointer (set by JS) */
.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -88px calc(50% - 50vw) 0;
    pointer-events: none;
    background:
        radial-gradient(420px circle at var(--gx, 78%) var(--gy, 38%), rgba(79, 225, 243, .09), transparent 70%),
        radial-gradient(60% 70% at 78% 38%, rgba(79, 109, 255, .22), transparent 70%),
        radial-gradient(38% 48% at 92% 82%, rgba(79, 225, 243, .11), transparent 70%),
        radial-gradient(45% 55% at 4% 0%, rgba(79, 109, 255, .09), transparent 70%);
}

/* Rule-of-thirds guides, like the overlay in a camera or editing monitor */
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 calc(50% - 50vw);
    pointer-events: none;
    background-image:
        linear-gradient(90deg,
            transparent calc(33.333% - .5px), rgba(255, 255, 255, .055) calc(33.333% - .5px) calc(33.333% + .5px),
            transparent calc(33.333% + .5px) calc(66.666% - .5px), rgba(255, 255, 255, .055) calc(66.666% - .5px) calc(66.666% + .5px),
            transparent calc(66.666% + .5px)),
        linear-gradient(0deg,
            transparent calc(33.333% - .5px), rgba(255, 255, 255, .055) calc(33.333% - .5px) calc(33.333% + .5px),
            transparent calc(33.333% + .5px) calc(66.666% - .5px), rgba(255, 255, 255, .055) calc(66.666% - .5px) calc(66.666% + .5px),
            transparent calc(66.666% + .5px));
    -webkit-mask: radial-gradient(75% 85% at 62% 45%, #000, transparent);
    mask: radial-gradient(75% 85% at 62% 45%, #000, transparent);
}

.hero h1 {
    font-size: clamp(46px, 6.4vw, 88px);
    line-height: 1.02;
    letter-spacing: -.05em;
    margin: 30px 0 26px;
}

.hero-description {
    color: var(--muted);
    max-width: 460px;
    font-size: 16px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 30px;
    margin-top: 38px;
}

.primary-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 22px;
    background: linear-gradient(135deg, #f6f7ff, #cdd6ff);
    color: #0b0d15;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), translate .3s var(--ease);
}

/* Light sweep across the button on hover */
.primary-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(79, 225, 243, .55) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s var(--ease);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(141, 157, 255, .55), 0 16px 44px rgba(79, 109, 255, .38);
}

.primary-button:hover::after {
    transform: translateX(120%);
}

.secondary-button {
    padding-bottom: 5px;
    color: #c9cbd8;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(var(--cyan), var(--cyan)) 0 100% / 0 1px no-repeat;
    transition: color .25s var(--ease), background-size .4s var(--ease);
}

.secondary-button:hover {
    color: #fff;
    background-size: 100% 1px;
}

/* ---- Hero art: lens + orbits + viewfinder ---- */

.hero-art {
    width: min(440px, 100%);
    aspect-ratio: 1;
    justify-self: end;
    position: relative;
    display: grid;
    place-items: center;
}

.hero-art::before {
    content: "";
    position: absolute;
    width: 72%;
    height: 72%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 109, 255, .34), transparent 70%);
    filter: blur(26px);
}

/* Viewfinder corner marks */
.hero-art::after {
    --c: rgba(255, 255, 255, .3);
    --l: 24px;
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
        linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
        linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
        linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c));
    background-position:
        0 0, 0 0,
        100% 0, 100% 0,
        0 100%, 0 100%,
        100% 100%, 100% 100%;
    background-size:
        var(--l) 1px, 1px var(--l),
        var(--l) 1px, 1px var(--l),
        var(--l) 1px, 1px var(--l),
        var(--l) 1px, 1px var(--l);
    background-repeat: no-repeat;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(141, 157, 255, .26);
    border-radius: 50%;
    animation: orbit-spin 90s linear infinite;
    /* Depth: orbits drift against the pointer (--px/--py are set by JS) */
    translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -18px);
}

/* Small light travelling with each orbit */
.orbit::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px 2px rgba(79, 225, 243, .8);
}

.orbit-one {
    width: 90%;
    height: 43%;
    transform: rotate(-25deg);
}

.orbit-two {
    width: 70%;
    height: 100%;
    transform: rotate(48deg);
    border-color: rgba(79, 225, 243, .24);
    animation-duration: 120s;
    animation-direction: reverse;
}

.orbit-two::after {
    background: var(--blue-hi);
    box-shadow: 0 0 14px 2px rgba(141, 157, 255, .8);
}

.hero-circle {
    position: relative;
    z-index: 1;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 35% 25%, #34417a, #141827 60%, #0a0c13);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 0 100px rgba(79, 109, 255, .28),
        0 30px 60px rgba(0, 0, 0, .5);
    translate: calc(var(--px, 0) * 12px) calc(var(--py, 0) * 12px);
}

/* Slowly turning lens ring */
.hero-circle::before {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg 200deg, var(--blue) 290deg, var(--cyan) 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    animation: orbit-spin 9s linear infinite;
}

.hero-circle span {
    font-family: var(--font-display);
    font-size: 50px;
    font-weight: 800;
    letter-spacing: -.07em;
    line-height: 1;
}

.hero-circle small {
    color: #b3bbef;
    font: 400 10px/1 var(--font-mono);
    letter-spacing: .2em;
    margin-top: 8px;
}

.art-label {
    position: absolute;
    color: #b8bdd2;
    font: 400 11px/1.7 var(--font-mono);
    letter-spacing: .12em;
    translate: calc(var(--px, 0) * -8px) calc(var(--py, 0) * -8px);
}

.top-label {
    top: 9%;
    right: 4%;
    text-align: right;
}

.bottom-label {
    bottom: 9%;
    left: 4%;
}

/* ---- Hero footer: timeline ruler with a playhead ---- */

.hero-footer {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    color: var(--faint);
    font: 400 11px/1 var(--font-mono);
    letter-spacing: .13em;
}

.hero-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 12px);
    height: 10px;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 1px, transparent 1px 60px) bottom / 100% 10px no-repeat,
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .15) 0 1px, transparent 1px 12px) bottom / 100% 5px no-repeat;
}

.hero-footer::after {
    content: "";
    position: absolute;
    left: 64%;
    bottom: calc(100% + 6px);
    width: 11px;
    height: 26px;
    margin-left: -5px;
    background: linear-gradient(var(--cyan), var(--blue));
    clip-path: polygon(0 0, 100% 0, 100% 38%, 55% 60%, 55% 100%, 45% 100%, 45% 60%, 0 38%);
    animation: playhead 2.6s var(--ease) calc(var(--intro) + .2s) both;
}

/* The single page-load sequence: bars open, then the hero rises */
.hero-content > * {
    animation: rise .9s var(--ease) var(--intro) both;
}

.hero-content > :nth-child(2) { animation-delay: calc(var(--intro) + .08s); }
.hero-content > :nth-child(3) { animation-delay: calc(var(--intro) + .16s); }
.hero-content > :nth-child(4) { animation-delay: calc(var(--intro) + .24s); }

.hero-art {
    animation: fade-in 1.4s var(--ease) var(--intro) both;
}

@keyframes bars-open {
    to { background-size: 100% 0, 100% 0; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@keyframes orbit-spin {
    to { rotate: 360deg; }
}

@keyframes playhead {
    from { left: 0; }
    to   { left: 64%; }
}


/* --------------------------------------------------------------------------
   6. PORTFOLIO
   -------------------------------------------------------------------------- */

.work {
    border-top: 1px solid var(--line);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.filter-button {
    background: transparent;
    color: #a3a7ba;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 11px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.filter-button:hover {
    color: #fff;
    border-color: rgba(79, 225, 243, .55);
}

.filter-button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #3a52e0);
    border-color: transparent;
    box-shadow: 0 8px 28px rgba(79, 109, 255, .35);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 24px;
}

.project-card {
    min-width: 0;
}

.project-card.hidden {
    display: none;
}

/* Replays when a filter reveals a card (class added by JS) */
.project-card.is-entering {
    animation: card-in .55s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

/* Visual = a 16:9 video frame */
.project-visual {
    position: relative;
    isolation: isolate;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 4px;
    background-color: var(--panel);
    transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}

/* Pointer spotlight (first layer, driven by --mx/--my) + lens vignette */
.project-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(240px circle at var(--mx, -300px) var(--my, -300px), rgba(79, 225, 243, .18), transparent 70%),
        radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%),
        linear-gradient(transparent 60%, rgba(0, 0, 0, .35));
}

/* Letterbox bars — they open on hover, like a cinematic reveal */
.project-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(#05060a, #05060a),
        linear-gradient(#05060a, #05060a);
    background-position: top, bottom;
    background-size: 100% 9%, 100% 9%;
    background-repeat: no-repeat;
    transition: background-size .55s var(--ease);
}

.project-card:hover .project-visual {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
    border-color: rgba(79, 225, 243, .45);
    box-shadow: 0 28px 60px -24px rgba(79, 109, 255, .55), 0 0 0 1px rgba(79, 225, 243, .12);
    transition: transform .18s ease-out, border-color .45s var(--ease), box-shadow .45s var(--ease);
}

.project-card:hover .project-visual::after {
    background-size: 100% 0, 100% 0;
}

.visual-one {
    background: radial-gradient(ellipse at 70% 25%, rgba(126, 140, 255, .42), transparent 43%), linear-gradient(135deg, #1b2035, #10121b 60%, #1a2733);
}

.visual-two {
    background: radial-gradient(ellipse at 20% 80%, rgba(78, 180, 194, .32), transparent 45%), linear-gradient(135deg, #172a32, #11141d 65%, #20233a);
}

.visual-three {
    background: radial-gradient(ellipse at 70% 60%, rgba(165, 104, 255, .34), transparent 45%), linear-gradient(135deg, #241c35, #11131c 60%, #20253b);
}

.visual-four {
    background: radial-gradient(ellipse at 25% 20%, rgba(255, 142, 113, .22), transparent 45%), linear-gradient(135deg, #30202a, #11131b 65%, #29233b);
}

.visual-five {
    background: radial-gradient(ellipse at 80% 20%, rgba(113, 216, 232, .28), transparent 45%), linear-gradient(135deg, #182d35, #11131b 65%, #292b3c);
}

.visual-six {
    background: radial-gradient(ellipse at 40% 60%, rgba(118, 130, 255, .32), transparent 45%), linear-gradient(135deg, #1e223b, #11131b 65%, #30233a);
}

.project-number {
    position: absolute;
    z-index: 2;
    top: 22px;
    left: 22px;
    color: rgba(255, 255, 255, .6);
    font: 400 11px/1 var(--font-mono);
    letter-spacing: .1em;
}

.play-icon {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    padding-left: 3px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 13px;
    transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
}

.project-card:hover .play-icon {
    transform: scale(1.12);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-color: transparent;
    color: #06070c;
    box-shadow: 0 0 40px rgba(79, 225, 243, .5);
}

.placeholder-text {
    position: absolute;
    z-index: 2;
    bottom: 22px;
    color: rgba(255, 255, 255, .55);
    font: 400 11px/1 var(--font-mono);
    letter-spacing: .18em;
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 18px;
}

.project-info p {
    color: #8f95b0;
    font: 400 11px/1 var(--font-mono);
    letter-spacing: .12em;
    margin-bottom: 9px;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.project-info > span {
    flex: none;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-size: 16px;
    color: var(--cyan);
    transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.project-card:hover .project-info > span {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #06070c;
    transform: translate(2px, -2px);
}

/* Dev note — delete this paragraph in index.html before publishing */
.work-note {
    display: inline-block;
    color: var(--faint);
    font: 400 11px/1.6 var(--font-mono);
    letter-spacing: .1em;
    margin-top: 42px;
    padding: 8px 12px;
    border: 1px dashed var(--line-strong);
    border-radius: 4px;
}


/* --------------------------------------------------------------------------
   7. ABOUT
   -------------------------------------------------------------------------- */

.about {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-content {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 80px;
    margin-top: 42px;
}

.about h2 {
    margin: 0;
    font-size: clamp(42px, 5.7vw, 72px);
}

.about-text {
    position: relative;
    max-width: 480px;
    padding-left: 34px;
    border-left: 1px solid var(--line);
}

.about-text::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    width: 1px;
    height: 72px;
    background: linear-gradient(var(--cyan), transparent);
    box-shadow: 0 0 12px rgba(79, 225, 243, .6);
}

.about-text p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 22px;
}

.about-text .about-lead {
    color: #e4e6ef;
    font-size: 19px;
    line-height: 1.65;
}

.signature {
    margin-top: 34px;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -.05em;
    color: #dfe3ff;
}

.signature span {
    font: 400 11px/1 var(--font-mono);
    vertical-align: top;
    color: var(--cyan);
}


/* --------------------------------------------------------------------------
   8. SKILLS
   -------------------------------------------------------------------------- */

.skills-list {
    border-top: 1px solid var(--line);
}

.skill-item {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr 40px;
    align-items: center;
    padding: 30px 8px;
    border-bottom: 1px solid var(--line);
    transition: background .45s var(--ease);
}

/* A cyan line "plays" across the row on hover */
.skill-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 0 12px rgba(79, 225, 243, .6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .8s var(--ease);
}

/* Light follows the pointer along the row (--mx set by JS) */
.skill-item:hover {
    background: radial-gradient(520px circle at var(--mx, 20%) 50%, rgba(79, 109, 255, .13), transparent 70%);
}

.skill-item:hover::after {
    transform: scaleX(1);
}

.skill-item > span {
    color: var(--cyan);
    font: 400 12px/1 var(--font-mono);
    letter-spacing: .08em;
}

.skill-item > div {
    transition: transform .45s var(--ease);
}

.skill-item:hover > div {
    transform: translateX(8px);
}

.skill-item h3 {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.6vw, 27px);
    font-weight: 600;
    letter-spacing: -.03em;
    margin-bottom: 8px;
}

.skill-item p {
    color: var(--muted);
    font-size: 13px;
}

.skill-item b {
    color: #8f95aa;
    font-size: 18px;
    font-weight: 400;
    transition: color .3s var(--ease), transform .3s var(--ease);
}

.skill-item:hover b {
    color: var(--cyan);
    transform: translate(3px, -3px);
}


/* --------------------------------------------------------------------------
   9. CONTACT
   -------------------------------------------------------------------------- */

.contact {
    position: relative;
    isolation: isolate;
    border-top: 1px solid var(--line);
}

.contact::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 calc(50% - 50vw);
    pointer-events: none;
    background:
        radial-gradient(50% 70% at 22% 38%, rgba(79, 109, 255, .17), transparent 70%),
        radial-gradient(35% 50% at 86% 88%, rgba(79, 225, 243, .10), transparent 70%);
}

/* Large outlined brand mark for depth (decorative, hidden from screen readers) */
.contact::after {
    content: "SOZ";
    content: "SOZ" / "";
    position: absolute;
    z-index: -1;
    right: -1%;
    bottom: 36px;
    font-family: var(--font-display);
    font-size: clamp(160px, 30vw, 400px);
    font-weight: 800;
    line-height: .8;
    letter-spacing: -.07em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
    pointer-events: none;
    user-select: none;
}

.contact h2 {
    font-size: clamp(50px, 8.4vw, 108px);
    margin-top: 28px;
    line-height: 1;
    letter-spacing: -.05em;
}

.contact-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 52px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.contact-bottom p {
    color: var(--muted);
    font-size: 15px;
}

/* Dev note — delete this paragraph in index.html before publishing */
.contact-note {
    display: inline-block;
    color: var(--faint);
    font: 400 11px/1.6 var(--font-mono);
    letter-spacing: .1em;
    margin-top: 28px;
    padding: 8px 12px;
    border: 1px dashed var(--line-strong);
    border-radius: 4px;
}


/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */

.footer {
    width: min(var(--content), calc(100% - var(--gutter) * 2));
    min-height: 100px;
    margin-inline: auto;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--faint);
    font: 400 11px/1.6 var(--font-mono);
    letter-spacing: .1em;
}

.footer p {
    margin: 0;
}

.footer a:not(.logo) {
    transition: color .25s var(--ease);
}

.footer a:not(.logo):hover {
    color: var(--cyan);
}


/* --------------------------------------------------------------------------
   11. JS-DRIVEN EXTRAS (elements are created by script.js)
   -------------------------------------------------------------------------- */

/* Scroll progress: a thin timeline bar across the top of the viewport */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 0 14px rgba(79, 225, 243, .7);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
    pointer-events: none;
}

/* Live timecode HUD — follows scroll position like a playhead */
.reel-hud {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    padding: 12px 14px;
    background: rgba(10, 11, 17, .62);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 4px;
    font: 400 11px/1 var(--font-mono);
    letter-spacing: .12em;
    color: var(--faint);
    pointer-events: none;
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.reel-hud.is-hidden {
    opacity: 0;
    transform: translateY(8px);
}

.reel-hud__time {
    color: var(--cyan);
    font-size: 15px;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 14px rgba(79, 225, 243, .45);
}

.reel-hud__row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reel-hud__section {
    color: #c5c8d6;
}

.reel-hud kbd {
    font: inherit;
    margin-right: 5px;
    padding: 3px 6px;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    color: #c5c8d6;
}

.reel-hud kbd:not(:first-child) {
    margin-left: 8px;
}

/* Cursor ring — follows the mouse, grows over interactive things.
   The real cursor is never hidden. */
.cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 120;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s var(--ease);
}

.cursor-ring.is-on {
    opacity: 1;
}

.cursor-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(79, 225, 243, .7);
    transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}

.cursor-ring.is-active::before {
    transform: scale(1.7);
    background: rgba(79, 225, 243, .08);
    border-color: rgba(79, 225, 243, .9);
}

/* Scroll reveals — only exist when JS adds .reveal to below-the-fold items */
.reveal {
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal:not(.in-view) {
    opacity: 0;
    transform: translateY(26px);
}


/* --------------------------------------------------------------------------
   12. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Small laptops / large tablets */
@media (max-width: 1024px) {

    :root {
        --gutter: 32px;
    }

    .hero {
        grid-template-columns: 1.1fr .9fr;
        gap: 24px;
    }

    .hero-art {
        width: min(360px, 100%);
    }

    .hero-circle {
        width: 170px;
        height: 170px;
    }

    .hero-circle span {
        font-size: 42px;
    }

    .about-content {
        gap: 48px;
    }
}

/* Tablets: stack hero + about; HUD and cursor are desktop-only */
@media (max-width: 900px) {

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 64px 0 130px;
    }

    .hero-art {
        width: min(360px, 80%);
        justify-self: center;
        margin-top: 24px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        max-width: 560px;
    }

    .reel-hud {
        display: none;
    }
}

/* Phones */
@media (max-width: 760px) {

    :root {
        --gutter: 20px;
        --nav-h: 72px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 24px var(--gutter) 28px;
        background: rgba(10, 11, 17, .96);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
        padding: 12px 0;
    }

    .nav-links a:not(.nav-contact)::after {
        display: none;
    }

    .nav-links .nav-contact {
        margin-top: 12px;
        text-align: center;
    }

    .hero {
        padding: 52px 0 120px;
    }

    .hero h1 {
        font-size: clamp(44px, 12.5vw, 68px);
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-art {
        width: min(320px, 86%);
        margin-top: 36px;
    }

    .hero-circle {
        width: 150px;
        height: 150px;
    }

    .hero-circle span {
        font-size: 38px;
    }

    .hero-footer {
        font-size: 10px;
    }

    .hero-footer span:last-child {
        display: none;
    }

    .section-heading {
        display: block;
        margin-bottom: 32px;
    }

    .section-description {
        margin-top: 18px;
        max-width: 340px;
    }

    .filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
        scrollbar-width: none;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .filter-button {
        flex: none;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-text {
        padding-left: 24px;
    }

    .about-text .about-lead {
        font-size: 17px;
    }

    .skill-item {
        grid-template-columns: 48px 1fr 28px;
        padding: 24px 0;
    }

    .contact-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .footer {
        padding: 28px 0;
        flex-wrap: wrap;
    }

    .footer p {
        order: 3;
        width: 100%;
    }
}

/* Very small phones */
@media (max-width: 380px) {

    .hero-buttons {
        gap: 16px 22px;
    }

    .primary-button {
        padding: 15px 18px;
    }

    .placeholder-text {
        letter-spacing: .12em;
    }
}

/* Touch devices: no cursor ring, no hover-only extras */
@media (hover: none) {

    .cursor-ring {
        display: none;
    }
}


/* --------------------------------------------------------------------------
   13. ACCESSIBILITY — respect reduced-motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    /* No intro bars: they would otherwise stay on screen with animation off */
    body::before {
        display: none;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}

/* SOZ STUDIO PRICING */
.pricing-section {
  padding: 120px 8%;
  background: #090b12;
  color: #fff;
}

.pricing-container {
  max-width: 900px;
  margin: auto;
}

.pricing-label {
  color: #63a9ff;
  font-family: monospace;
  letter-spacing: 3px;
  font-size: 12px;
}

.pricing-section h2 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  margin: 24px 0;
  letter-spacing: -3px;
}

.pricing-section h2 span {
  color: #63a9ff;
}

.pricing-description {
  color: #9ba3b5;
  margin-bottom: 40px;
  line-height: 1.7;
}

.pricing-calculator {
  max-width: 600px;
  padding: 32px;
  background: #111521;
  border: 1px solid #252d40;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-calculator label {
  font-size: 13px;
  color: #b9c2d4;
  margin-top: 8px;
}

.pricing-calculator select,
.pricing-calculator input {
  width: 100%;
  padding: 15px;
  border-radius: 9px;
  border: 1px solid #30394e;
  background: #090d17;
  color: white;
  font: inherit;
  outline: none;
}

.pricing-calculator select:focus,
.pricing-calculator input:focus {
  border-color: #63a9ff;
}

.pricing-result {
  margin-top: 20px;
  padding: 24px;
  background: #0b1729;
  border: 1px solid #24466f;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-result span {
  color: #aab6c9;
  font-size: 13px;
}

.pricing-result strong {
  font-size: 36px;
  color: #63a9ff;
}

.pricing-result small {
  color: #8492a8;
}

.pricing-contact {
  display: inline-block;
  text-align: center;
  padding: 15px;
  border-radius: 9px;
  background: #63a9ff;
  color: #07101e;
  font-weight: 700;
  text-decoration: none;
  transition: .25s;
}

.pricing-contact:hover {
  background: #8bc0ff;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .pricing-section {
    padding: 80px 6%;
  }

  .pricing-calculator {
    padding: 22px;
  }
}
