:root {
    --bg: #f4f6f8;
    --bg-2: #e7edf3;
    --ink: #12141a;
    --muted: #4c5563;
    --line: rgba(18, 20, 26, 0.12);
    --card: #ffffff;
    --accent: #ff3b1f;
    --blue: #2563eb;
    --green: #14915a;
    --on-accent: #fff8f6;
    --chip: #ffd5cc;
    --shadow: 0 18px 40px rgba(18, 20, 26, 0.07);
    --serif: "Syne", "Segoe UI", sans-serif;
    --sans: "Figtree", "Segoe UI", sans-serif;
    --nav: 76px;
}

html[data-theme="dark"] {
    --bg: #090b10;
    --bg-2: #141822;
    --ink: #f5f7fb;
    --muted: #aeb6c4;
    --line: rgba(245, 247, 251, 0.12);
    --card: #12151c;
    --accent: #ff5a3c;
    --blue: #6aa4ff;
    --green: #3ddc97;
    --on-accent: #1a0c08;
    --chip: #3a221c;
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    overflow-x: clip;
    position: relative;
    background:
        radial-gradient(720px 360px at 0% -8%, rgba(255, 59, 31, 0.16), transparent 58%),
        radial-gradient(640px 320px at 100% 0%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 60%),
        var(--bg);
    padding-bottom: 34px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.55;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(color-mix(in srgb, var(--blue) 22%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 1px);
    background-size: 56px 56px;
    animation: gridmove 22s linear infinite;
    mask-image: radial-gradient(circle at 20% 10%, #000 0%, transparent 72%);
}
body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    height: 140px;
    top: -160px;
    z-index: 7;
    pointer-events: none;
    background: linear-gradient(transparent, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--blue) 10%, transparent), transparent);
    animation: scan 6.5s linear infinite;
}
@keyframes gridmove { to { background-position: 56px 56px; } }
@keyframes scan { to { top: 110%; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--chip); color: var(--ink); }

html[lang="en"] .tr { display: none !important; }
html[lang="tr"] .en { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    background: var(--ink);
    color: var(--bg);
    padding: 8px 12px;
    z-index: 20;
}
.skip:focus { top: 12px; }

.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 30;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--nav);
    padding: 12px 6vw;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
}
.nav.stuck { border-bottom-color: var(--line); }
.brand {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    text-decoration: none;
    font-weight: 560;
    letter-spacing: 0.04em;
}
.nav-panel {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
    text-decoration: none;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.92rem;
}
.nav-links i {
    font-style: normal;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    color: var(--blue);
}
.nav-links a.active,
.nav-links a:hover {
    color: var(--ink);
    background: var(--card);
    border-color: var(--line);
}
.nav-links a.active i { color: var(--accent); }
.nav-tools { display: flex; gap: 8px; }
.tool, .nav-toggle {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}
.tool:hover, .nav-toggle:hover { border-color: var(--ink); }
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    position: relative;
}
.nav-toggle span:not(.sr-only) {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 1.5px;
    background: var(--ink);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }

.hero, .section { padding: 28px 6vw 72px; }
section[id] { scroll-margin-top: 88px; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.78fr);
    gap: 40px 56px;
    align-items: start;
    min-height: calc(100vh - var(--nav));
    padding-top: 28px;
}
.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--muted);
}
.live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    70% { box-shadow: 0 0 0 8px transparent; }
}
h1 {
    margin: 12px 0 0;
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(3.4rem, 8vw, 7.4rem);
    line-height: 0.88;
    letter-spacing: -0.045em;
}
h1 em {
    display: block;
    font-style: normal;
    font-weight: 800;
    color: var(--accent);
    animation: glitch 4.8s infinite;
}
@keyframes glitch {
    0%, 90%, 100% { transform: none; text-shadow: none; }
    92% { transform: translate(-3px, 0); text-shadow: 3px 0 var(--blue); }
    94% { transform: translate(3px, 0); text-shadow: -3px 0 var(--green); }
}
.role {
    margin: 22px 0 0;
    font-size: 1.15rem;
}
.lede {
    max-width: 42rem;
    font-size: 1.18rem;
    color: var(--muted);
}
.hero-actions, .case-links, .mini-links, .socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.btn, .case-links a, .mini-links a, .socials a, .creds a {
    text-decoration: none;
}
.btn {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    padding: 13px 20px;
    border: 1px solid var(--ink);
    cursor: pointer;
}
.btn.fill {
    position: relative;
    overflow: hidden;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}
.btn.fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.45), transparent 80%);
    transform: translateX(-130%);
    animation: sheen 2.8s ease-in-out infinite;
}
@keyframes sheen { to { transform: translateX(130%); } }
.btn.line { background: transparent; }
.btn:hover { transform: translateY(-2px); }
.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: color-mix(in srgb, var(--card) 80%, transparent);
}
.hero-facts li { padding: 12px 14px; border-right: 1px solid var(--line); }
.hero-facts li:last-child { border-right: 0; }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 560; }
.hero-facts span { color: var(--muted); font-size: 0.92rem; }
.portrait {
    margin: 36px 0 0 auto;
    position: relative;
    width: min(100%, 440px);
    padding: 12px;
}
.portrait::before,
.portrait::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    z-index: 2;
    pointer-events: none;
    animation: tick 2.6s ease-in-out infinite;
}
.portrait::before {
    top: 0;
    left: 0;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}
.portrait::after {
    right: 0;
    bottom: 0;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--green);
    animation-delay: -1.3s;
}
@keyframes tick {
    50% { transform: translate(3px, 3px); }
}
.portrait img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 14px 14px 0 var(--accent);
}
.portrait figcaption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    background: color-mix(in srgb, var(--card) 90%, transparent);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.portrait small { color: var(--muted); }

.marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding: 14px 0;
}
.marquee-track {
    display: flex;
    gap: 34px;
    width: max-content;
    animation: drift 32s linear infinite;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--muted);
}
@keyframes drift {
    to { transform: translateX(-50%); }
}

.section-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 36px;
}
.index {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.95rem;
    margin: 0 0 8px;
    color: var(--blue);
    letter-spacing: 0.08em;
}
h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 0.95;
}
h2::after {
    content: "";
    display: inline-block;
    width: 11px;
    height: 0.72em;
    margin-left: 8px;
    background: var(--accent);
    vertical-align: -1px;
    animation: blink 1.05s steps(1) infinite;
}
.file {
    margin: 8px 0 0;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    color: var(--green);
}
.section-head {
    position: relative;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.section-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 140px;
    background: linear-gradient(90deg, var(--accent), var(--blue), var(--green));
    animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep {
    50% { transform: translateX(80px); width: 220px; }
}
.section-note { margin: 8px 0 0; max-width: 38rem; color: var(--muted); }

.cases { display: grid; gap: 28px; }
.case {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 28px 32px;
    box-shadow: var(--shadow);
}
.case-top, .case-body, .path li, .archive article, .contact-grid, .story-grid {
    display: grid;
}
.case-top {
    grid-template-columns: 1fr auto;
    color: var(--muted);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}
.case-body {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 36px;
    align-items: center;
}
.case:nth-child(even) .screen { order: -1; }
.case { transition: transform 0.35s ease, border-color 0.35s ease; }
.case.in:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.case h3, .path h3, .archive h3, .edu h3, .skill-board h3 {
    font-family: var(--serif);
    font-weight: 560;
    letter-spacing: -0.03em;
}
.case h3 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 8px 0; }
.case p { margin: 0; color: var(--muted); max-width: 42rem; }
.case .tr p + p, .case .en p + p { margin-top: 0.75rem; }
.case-links { margin-top: 18px; }
.case-links a, .mini-links a, .socials a {
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
}
.stage {
    min-height: 210px;
    border-radius: 22px;
    padding: 18px;
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}
.stage-swipe .card {
    position: absolute;
    inset: 36px 28px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
}
.stage-swipe .back { transform: rotate(-8deg) translate(-12px, 8px); }
.stage-swipe .mid { transform: rotate(5deg) translate(14px, -6px); }
.stage-swipe .front {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    background: var(--ink);
    color: var(--bg);
}
.stage-swipe b { font-family: var(--serif); font-size: 1.8rem; }
.stage-service .plate {
    display: inline-block;
    background: var(--chip);
    color: #171910;
    border: 3px solid #171910;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 560;
    letter-spacing: 0.12em;
}
.stage-service ul { list-style: none; padding: 16px 0 0; margin: 0; }
.stage-service li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.stage-artist {
    display: grid;
    align-content: end;
    background: #1b140f;
    color: #f4eadc;
}
.stage-artist em { font-family: var(--serif); font-size: 2.4rem; font-style: italic; }
.stage-archive {
    display: grid;
    place-items: center;
    text-align: center;
    background: #241816;
    color: #f6efe6;
}
.stage-archive strong {
    font-family: var(--serif);
    font-size: 5rem;
    line-height: 0.8;
}
.stage-clinic, .stage-dict { display: grid; align-content: center; gap: 6px; }
.stage-clinic b, .stage-dict b { font-family: var(--serif); font-size: 2rem; }
.stage-dict { background: var(--ink); color: var(--bg); }

.path { list-style: none; margin: 0; padding: 0; position: relative; }
.path::before {
    content: "";
    position: absolute;
    left: 108px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(var(--accent), var(--blue) 55%, var(--green));
}
.path li {
    grid-template-columns: 132px 1fr;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    position: relative;
}
.path li::before {
    content: "";
    position: absolute;
    left: 102px;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    animation: pulse 2.4s infinite;
}
.path li:nth-child(3n)::before { border-color: var(--blue); }
.path li:nth-child(3n+2)::before { border-color: var(--green); }
.path time {
    font-family: var(--serif);
    font-size: 1.4rem;
}
.path h3 { margin: 0; font-size: 1.55rem; }
.meta { margin: 4px 0 8px; color: var(--accent); }
.path p { margin: 0; color: var(--muted); }

.story-grid { grid-template-columns: minmax(0, 1.4fr) 280px; gap: 40px; align-items: start; }
.prose p { margin: 0 0 18px; font-size: 1.16rem; max-width: 44rem; }
.skill-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    position: sticky;
    top: 96px;
}
.skill-board article, .edu article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}
.skill-board h3, .edu h3 { margin: 0 0 6px; }
.skill-board p, .edu p, .edu span { margin: 0; color: var(--muted); }
.edu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters button {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}
.filters button.on {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
.archive { display: grid; }
.archive article {
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: end;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}
.archive h3 { margin: 0 0 6px; font-size: 1.65rem; }
.archive p { margin: 0; color: var(--muted); max-width: 46rem; line-height: 1.55; }
.archive .tr p + p, .archive .en p + p { margin-top: 0.55rem; }
.quiet { color: var(--muted); }
.empty { color: var(--muted); }

.creds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.creds li { border-top: 1px solid var(--line); padding: 12px 0; }
.creds a:hover { color: var(--accent); }

.contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.contact-grid > * { min-width: 0; }
.big-mail {
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-decoration: none;
}
.contact-list { list-style: none; padding: 0; color: var(--muted); }
.contact-list a { color: inherit; }
form {
    display: grid;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
}
label { display: grid; gap: 6px; font-size: 0.92rem; }
input, textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
}
input:focus, textarea:focus, button:focus-visible, a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.form-note { margin: 0; color: var(--accent); }
.footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 6vw 48px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.statusbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 30px;
    padding: 0 16px;
    background: #12141a;
    color: #d7deea;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    overflow: hidden;
}
.statusbar > span { min-width: 0; }
.statusbar .ok { color: var(--green); }
.statusbar .push { margin-left: auto; color: var(--accent); }
.gear {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border: 2px solid var(--blue);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: -1px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.footer a { color: var(--ink); }

@media (max-width: 980px) {
    .hero, .case-body, .story-grid, .contact-grid, .edu { grid-template-columns: minmax(0, 1fr); }
    .edu { grid-template-columns: 1fr 1fr; }
    .portrait { max-width: 420px; margin-left: 0; }
    .skill-board { position: static; }
    .path::before, .path li::before { display: none; }
    .creds { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-block; }
    .nav-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 8px 6vw 18px;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-panel.open { display: flex; }
    .nav-links { flex-direction: column; gap: 12px; }
    .hero-facts, .path li, .archive article, .section-head { grid-template-columns: 1fr; display: grid; }
    .hero-facts li { border-right: 0; border-bottom: 1px solid var(--line); }
    .hero-facts li:last-child { border-bottom: 0; }
    .edu { grid-template-columns: 1fr; }
    .footer { flex-direction: column; }
    .hide-sm { display: none; }
    .marquee-track { animation-duration: 22s; }
    h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
    .portrait { margin-left: 0; width: 100%; }
    .portrait img { box-shadow: 8px 8px 0 var(--accent); }
    .statusbar { gap: 8px; padding: 0 10px; }
    .statusbar #sbPos { display: none; }
    .statusbar .push {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .case { padding: 20px 16px 24px; }
    .big-mail { font-size: clamp(1.35rem, 6.2vw, 1.8rem); }
}

.hero { position: relative; }
.hero-copy, .portrait { position: relative; z-index: 1; }
.net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.cursor {
    position: fixed;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 1.5px solid var(--accent);
    border-radius: 2px;
    box-shadow: 7px 7px 0 color-mix(in srgb, var(--blue) 70%, transparent);
    pointer-events: none;
    z-index: 40;
    display: none;
    animation: tick 1.6s ease-in-out infinite;
}
@media (pointer: fine) {
    .cursor { display: block; }
}

.term {
    margin-top: 26px;
    max-width: 36rem;
    background: #121612;
    color: #d7e0cf;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.term-bar, .screen-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    color: #9aa394;
}
.term-bar span, .screen-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3d4a3e;
}
.term-bar span:nth-child(1), .screen-bar i:nth-child(1) { background: #ff5f57; }
.term-bar span:nth-child(2), .screen-bar i:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3), .screen-bar i:nth-child(3) { background: #28c840; }
.term pre {
    margin: 0;
    min-height: 8.2rem;
    padding: 4px 14px 16px;
    white-space: pre-wrap;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.84rem;
    line-height: 1.55;
}
.caret {
    display: inline-block;
    width: 8px;
    height: 1em;
    margin-left: 2px;
    background: #d6ff5c;
    vertical-align: text-bottom;
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.film { overflow: hidden; margin: 0 0 22px; }
.film-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: drift 46s linear infinite;
}
.film:hover .film-track { animation-play-state: paused; }
.film figure { margin: 0; width: 280px; position: relative; }
.film img {
    width: 280px;
    height: 168px;
    object-fit: cover;
    border-radius: 16px;
}
.film figcaption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(10, 12, 10, 0.72);
    color: white;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.75rem;
}

.screen {
    border-radius: 18px;
    overflow: hidden;
    background: #101410;
    color: #d7e0cf;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: perspective(900px) rotateX(0) rotateY(0);
    transition: transform 0.2s ease;
}
.screen-bar em {
    margin-left: auto;
    font-style: normal;
    color: #ff5a5a;
    letter-spacing: 0.14em;
    animation: blink 1.1s steps(1) infinite;
}
.screen-bar span { margin-left: 8px; }
.screen-view { position: relative; height: 340px; overflow: hidden; }
.screen-view img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: top;
    animation: ken 18s ease-in-out infinite alternate;
}
@keyframes ken {
    from { transform: scale(1) translateY(0); }
    to { transform: scale(1.08) translateY(-4%); }
}
.playhead {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--accent);
    transform-origin: left center;
    animation: play 7s linear infinite;
}
@keyframes play {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
.code-run {
    margin: 0;
    padding: 8px 16px 20px;
    min-height: 250px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.84rem;
    line-height: 1.7;
}
.c { color: #8d9786; }
.k { color: #6aa4ff; }
.t { color: #3ddc97; }
.s { color: #ffb086; }
.fn { color: #ff5a3c; }

.mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}
.mosaic a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    text-decoration: none;
}
.mosaic img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.mosaic a:hover img { transform: scale(1.07); }
.mosaic span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(10, 12, 10, 0.75);
    color: white;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
}
.mail-direct {
    color: var(--muted);
    font-size: 0.92rem;
}
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
    .mosaic { grid-template-columns: 1fr 1fr; }
    .film figure, .film img { width: 220px; height: 132px; }
    .screen-view, .code-run { min-height: 190px; height: auto; }
    .code-run { white-space: pre-wrap; overflow-wrap: anywhere; }
    .screen-view { height: 190px; }
    .cursor { display: none; }
}

.marquee-back .marquee-track {
    animation-direction: reverse;
    animation-duration: 42s;
    text-transform: none;
    letter-spacing: 0;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    color: var(--blue);
}
.marquee-back span:nth-child(odd) { color: var(--accent); }

.rail {
    display: none;
    position: fixed;
    z-index: 11;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    gap: 4px;
}
.rail a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.78rem;
    padding: 4px 0;
}
.rail span { display: none; }
.rail b {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-weight: 500;
    color: var(--blue);
    width: 1.5rem;
}
.rail a.active,
.rail a:hover { color: var(--ink); }
.rail a.active b { color: var(--accent); }

.codefield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.codefield span {
    position: absolute;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    color: var(--blue);
    opacity: 0.14;
    animation: floaty 16s linear infinite;
}
.codefield span:nth-child(3n) { color: var(--accent); }
.codefield span:nth-child(3n+1) { color: var(--green); }
.codefield span:nth-child(1) { top: 12%; left: 8%; }
.codefield span:nth-child(2) { top: 22%; left: 70%; animation-duration: 22s; }
.codefield span:nth-child(3) { top: 38%; left: 18%; animation-duration: 19s; }
.codefield span:nth-child(4) { top: 48%; left: 82%; }
.codefield span:nth-child(5) { top: 62%; left: 6%; animation-duration: 24s; }
.codefield span:nth-child(6) { top: 72%; left: 58%; }
.codefield span:nth-child(7) { top: 84%; left: 28%; animation-duration: 21s; }
.codefield span:nth-child(8) { top: 16%; left: 46%; }
.codefield span:nth-child(9) { top: 56%; left: 40%; animation-duration: 18s; }
.codefield span:nth-child(10) { top: 30%; left: 90%; }
.codefield span:nth-child(11) { top: 8%; left: 30%; animation-duration: 26s; }
.codefield span:nth-child(12) { top: 90%; left: 72%; }
.codefield span:nth-child(13) { top: 44%; left: 60%; animation-duration: 20s; }
.codefield span:nth-child(14) { top: 66%; left: 86%; }
.codefield span:nth-child(15) { top: 78%; left: 14%; animation-duration: 23s; }
.codefield span:nth-child(16) { top: 26%; left: 34%; animation-duration: 17s; }
.codefield span:nth-child(17) { top: 52%; left: 12%; }
.codefield span:nth-child(18) { top: 88%; left: 48%; animation-duration: 19s; }
.codefield span:nth-child(19) { top: 14%; left: 88%; }
.codefield span:nth-child(20) { top: 40%; left: 74%; animation-duration: 15s; }
.skill-board article { animation: cardglow 3.2s ease-in-out infinite; }
.skill-board article:nth-child(2) { animation-delay: 0.6s; }
.skill-board article:nth-child(3) { animation-delay: 1.2s; }
.skill-board article:nth-child(4) { animation-delay: 1.8s; }
@keyframes cardglow {
    50% { border-color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue) 35%, transparent); }
}
.case::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(var(--accent), var(--blue), var(--green));
    background-size: 100% 200%;
    animation: flow 2.4s linear infinite;
}
.case { position: relative; }
@keyframes flow { to { background-position: 0 200%; } }
@keyframes floaty {
    50% { transform: translateY(-28px); }
}

main, .marquee, .footer { position: relative; z-index: 1; }

@media (min-width: 1180px) {
    .rail { display: grid; }
    .nav, .hero, .section, .footer, .marquee { padding-left: 12rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .cursor, .net, .codefield { display: none; }
    body::before, body::after { display: none; }
}
