@font-face {
    font-family: 'SF Pro Display Bold';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('SF Pro Display Bold'),
         local('SFProDisplay-Bold'),
         url('https://fonts.cdnfonts.com/s/59278/SFPRODISPLAYBOLD.woff') format('woff');
}

@font-face {
    font-family: 'SF Pro Display Bold';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('SF Pro Display Bold'),
         local('SFProDisplay-Bold'),
         url('https://fonts.cdnfonts.com/s/59278/SFPRODISPLAYBOLD.woff') format('woff');
}

@font-face {
    font-family: 'SF Pro Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('SF Pro Display Regular'),
         local('SF Pro Display'),
         url('https://fonts.cdnfonts.com/s/59278/SFPRODISPLAYREGULAR.woff') format('woff');
}

@font-face {
    font-family: 'SF Pro Display';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('SF Pro Display Medium'),
         url('https://fonts.cdnfonts.com/s/59278/SFPRODISPLAYMEDIUM.woff') format('woff');
}

@font-face {
    font-family: 'SF Pro Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('SF Pro Display Bold'),
         local('SFProDisplay-Bold'),
         url('https://fonts.cdnfonts.com/s/59278/SFPRODISPLAYBOLD.woff') format('woff');
}

@font-face {
    font-family: 'SF Pro Display';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: local('SF Pro Display Bold'),
         local('SFProDisplay-Bold'),
         url('https://fonts.cdnfonts.com/s/59278/SFPRODISPLAYBOLD.woff') format('woff');
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    max-width: 100%;
}

section[id] {
    scroll-margin-top: 38px;
}

body.admin-bar section[id] {
    scroll-margin-top: 70px;
}

@media screen and (max-width: 782px) {
    body.admin-bar section[id] {
        scroll-margin-top: 84px;
    }
}

:root {
    --bg: #f1f2ec;
    --surface: #e8e9e2;
    --surface2: #dfe0d8;
    --border: #c8c9c1;
    --border2: #b0b1a9;
    --white: #1a1a18;
    --muted: #5d5e57;
    --muted2: #484942;
    --yellow: #25734c;
    --yellow-bright: #2b8055;
    --red: #cc2a2a;
    --cyan: #1a7fa0;
    --purple: #6b3dcc;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    --sans: 'SF Pro Display', 'SF Pro Display Bold', -apple-system, BlinkMacSystemFont, sans-serif;
    --display: 'SF Pro Display Bold', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--sans);
    overflow-x: clip;
    max-width: 100%;
}

@media (hover: hover) and (pointer: fine) {

    body.ifm-cursor-active,
    body.ifm-cursor-active a,
    body.ifm-cursor-active button,
    body.ifm-cursor-active select,
    body.ifm-cursor-active .btn,
    body.ifm-cursor-active .nt,
    body.ifm-cursor-active .clip,
    body.ifm-cursor-active .wf-btn,
    body.ifm-cursor-active .vw-item,
    body.ifm-cursor-active .nle-ruler-scale,
    body.ifm-cursor-active .hero-right[role="button"],
    body.ifm-cursor-active #modal-close {
        cursor: none !important;
    }
}

@media (hover: none),
(pointer: coarse) {

    #c-ring,
    #c-dot {
        display: none !important;
    }
}

/* ── CURSOR ── */
#c-ring {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--yellow-bright);
    transform: translate(-50%, -50%);
    transition: width .2s, height .2s, border-color .2s, background .2s, opacity .15s;
    opacity: 0;
}

#c-dot {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--yellow-bright);
    transform: translate(-50%, -50%);
    transition: opacity .15s;
    opacity: 0;
}

/* ── SCANLINES ── */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
    background: repeating-linear-gradient(180deg,
            transparent 0px, transparent 3px,
            rgba(0, 0, 0, 0.03) 3px, rgba(0, 0, 0, 0.03) 4px);
}

/* ── GRAIN ── */
.grain {
    position: fixed;
    inset: -50%;
    z-index: 901;
    pointer-events: none;
    width: 200%;
    height: 200%;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainmove .08s steps(1) infinite;
}

@keyframes grainmove {
    0% {
        transform: translate(0, 0)
    }

    25% {
        transform: translate(-3%, -3%)
    }

    50% {
        transform: translate(3%, 3%)
    }

    75% {
        transform: translate(-3%, 3%)
    }

    100% {
        transform: translate(3%, -3%)
    }
}

/* ── TOPBAR ── */
#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 800;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 0;
    background: #e4e5de;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 10px;
}

.tb-seg {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    border-right: 1px solid var(--border);
    gap: 8px;
    color: var(--muted2);
    white-space: nowrap;
}

.tb-seg.logo {
    color: var(--yellow);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 11px;
    padding: 0 14px;
}

.tb-seg.logo img {
    height: 22px;
    width: auto;
    display: block;
    object-fit: contain;
}

.tb-seg.nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tb-seg.nav::-webkit-scrollbar {
    display: none;
}

.tb-seg.nav a {
    color: var(--muted);
    text-decoration: none;
    transition: color .15s, box-shadow .15s;
    padding: 0 6px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.tb-seg.nav a:hover,
.tb-seg.nav a.is-active {
    color: var(--white);
}

.tb-seg.nav a.is-active {
    color: var(--yellow);
    box-shadow: inset 0 -2px 0 var(--yellow);
    font-weight: 600;
}

.tb-seg.right {
    margin-left: auto;
    border-right: none;
    border-left: 1px solid var(--border);
}

.rec {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .2
    }
}

#tc {
    color: var(--yellow);
    letter-spacing: 2px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.tb-sep {
    width: 1px;
    height: 18px;
    background: var(--border);
    margin: 0 4px;
}

/* ── HERO ── */
#hero {
    min-height: 100vh;
    padding: 38px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

/* LEFT HALF */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 80px 80px;
    position: relative;
    z-index: 10;
    border-right: 1px solid var(--border);
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--yellow);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--yellow);
}

.hero-h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(50px, 8.2vw, 114px);
    line-height: .94;
    letter-spacing: -0.025em;
    position: relative;
}

.hero-h1 .line1 {
    display: block;
    color: var(--white);
}

.hero-h1 .line2 {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--yellow);
}

/* glitch on .line1 */
.hero-h1 .line1 {
    position: relative;
    animation: glitch-main 6s infinite;
}

@keyframes glitch-main {

    0%,
    88%,
    100% {
        clip-path: none;
        transform: none
    }

    89% {
        clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
        transform: translate(-4px, 0)
    }

    90% {
        clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
        transform: translate(4px, 0)
    }

    91% {
        clip-path: none;
        transform: none
    }
}

.hero-desc {
    margin-top: 32px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.9;
    color: var(--muted2);
    max-width: 400px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    padding: 11px 26px;
    text-decoration: none;
    transition: all .2s;
    display: inline-block;
    border: none;
}

.btn-y {
    background: var(--yellow-bright);
    color: #fff;
}

.btn-y:hover {
    background: #266f4b;
}

.btn-g {
    background: transparent;
    color: var(--muted2);
    border: 1px solid var(--border2);
}

.btn-g:hover {
    border-color: var(--white);
    color: var(--white);
}

/* RIGHT HALF — SHOWREEL */
.hero-right {
    position: relative;
    overflow: hidden;
    background: #141412;
    min-height: 360px;
}

.hero-right[role="button"] {
    cursor: pointer;
}

.hero-right:focus-visible,
.vw-item:focus-visible,
.nt:focus-visible,
.wf-btn:focus-visible,
.wt-btn:focus-visible,
.m-ctrl-btn:focus-visible,
.btn:focus-visible,
.soc:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: -2px;
}

.hero-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.hero-right.has-poster .hero-poster {
    opacity: .68;
}

.hero-right.has-video .hero-poster,
.hero-right.has-poster .hero-fallback {
    opacity: 0;
}

.hero-right.is-embed .hero-video {
    display: none;
}

.hero-video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .45s ease;
}

.hero-right.has-video .hero-video {
    opacity: .65;
}

.hero-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 28px),
        radial-gradient(circle at 55% 45%, #242620 0%, #141412 100%);
    font-family: var(--mono);
    text-align: center;
    transition: opacity .35s ease;
    pointer-events: none;
}

.hero-right.has-video .hero-fallback {
    opacity: 0;
}

.hero-fallback-title {
    font-family: var(--display);
    font-size: 28px;
    letter-spacing: 2px;
    color: #f4f5ef;
}

.hero-fallback-status {
    font-size: 9px;
    letter-spacing: 2px;
    color: #6ee0a6;
}

.hero-right-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(241, 242, 236, .34) 0%, transparent 28%),
        linear-gradient(0deg, rgba(20, 20, 18, .48) 0%, transparent 45%);
}

.hero-right-label {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 6;
    font-family: var(--mono);
    font-size: 10px;
    color: #f4f5ef;
    background: rgba(20, 20, 18, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(110, 224, 166, .38);
    padding: 6px 12px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-right[role="button"]:hover .hero-right-label {
    border-color: #6ee0a6;
}

.hero-right-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: blink 1s infinite;
}

/* corner marks */
.corner {
    position: absolute;
    width: 14px;
    height: 14px;
    z-index: 5;
}

.corner.tl {
    top: 12px;
    left: 12px;
    border-top: 1.5px solid var(--yellow);
    border-left: 1.5px solid var(--yellow);
}

.corner.tr {
    top: 12px;
    right: 12px;
    border-top: 1.5px solid var(--yellow);
    border-right: 1.5px solid var(--yellow);
}

.corner.bl {
    bottom: 12px;
    left: 12px;
    border-bottom: 1.5px solid var(--yellow);
    border-left: 1.5px solid var(--yellow);
}

.corner.br {
    bottom: 12px;
    right: 12px;
    border-bottom: 1.5px solid var(--yellow);
    border-right: 1.5px solid var(--yellow);
}

/* ── TICKER ── */
.ticker {
    height: 36px;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
}

.ticker-inner {
    display: flex;
    gap: 0;
    animation: tick 22s linear infinite;
    width: max-content;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
}

.ticker-item {
    padding: 0 24px;
    color: var(--muted);
    white-space: nowrap;
}

.ticker-item b {
    color: var(--yellow);
}

@keyframes tick {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* ── SECTION COMMONS ── */
.section {
    padding: 80px;
    border-top: 1px solid var(--border);
}

.sec-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 56px;
}

.sec-num {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 3px 8px;
    letter-spacing: 1px;
}

.sec-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(34px, 3.4vw, 50px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--white);
}

.sec-title span {
    color: var(--yellow);
}

/* ── NLE TIMELINE ── */
#timeline-section {
    background: var(--surface);
    padding: 80px;
    border-top: 1px solid var(--border);
}

.nle {
    border: 1px solid var(--border2);
    background: var(--bg);
    font-family: var(--mono);
    font-size: 10px;
}

.nle-bar {
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 6px 14px;
    gap: 10px;
    flex-wrap: wrap;
}

.nle-tools {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nt {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted2);
    transition: all .15s;
    font-size: 11px;
    font-family: inherit;
}

.nt:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.nt.on {
    border-color: var(--yellow);
    color: var(--yellow);
    background: rgba(62, 158, 110, .14);
}

.nt.razor-on {
    border-color: var(--red);
    color: var(--red);
    background: rgba(204, 42, 42, .12);
}

.nle-seq-name {
    margin-left: auto;
    color: var(--muted);
    font-size: 9px;
}

.nle-seq-name b {
    color: var(--yellow);
}

/* unified workspace so ruler & tracks scroll/zoom together */
.nle-workspace {
    display: flex;
    align-items: stretch;
}

.nle-left-col {
    width: 140px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    background: var(--bg);
}

.nle-scroll-col {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.nle-canvas {
    --nle-zoom: 1;
    min-width: calc(600px * var(--nle-zoom));
    width: calc(100% * var(--nle-zoom));
    position: relative;
}

.nle-ruler-gutter {
    height: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--muted);
}

.nle-ruler-scale {
    height: 24px;
    border-bottom: 1px solid var(--border);
    position: relative;
    background: var(--surface);
    user-select: none;
    touch-action: pan-y;
}

.tick-mark {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px solid var(--border);
    font-size: 8px;
    color: var(--muted);
    padding: 2px 0 0 4px;
    pointer-events: none;
    white-space: nowrap;
}

.tick-mark.major {
    border-left-color: var(--border2);
    color: var(--muted2);
    font-weight: 700;
}

.tick-mark.end {
    left: auto !important;
    right: 0;
    border-left: none;
    border-right: 1px solid var(--border2);
    padding: 2px 4px 0 0;
}

.nle-label-row {
    height: 36px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
    color: var(--muted2);
    font-size: 9px;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nle-label-row:last-child {
    border-bottom: none;
}

.dot-y {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow-bright);
    flex-shrink: 0;
}

.dot-r {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

.dot-c {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    flex-shrink: 0;
}

.dot-p {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple);
    flex-shrink: 0;
}

.nle-tracks {
    position: relative;
}

.nle-track-row {
    height: 36px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.nle-track-row:last-child {
    border-bottom: none;
}

.nle-track-row:hover {
    background: rgba(26, 26, 24, .03);
}

/* playhead */
.nle-ph {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28%;
    width: 2px;
    background: var(--red);
    z-index: 20;
    pointer-events: none;
}

.nle-ph::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    border: 6px solid transparent;
    border-top-color: var(--red);
    border-bottom: none;
    filter: drop-shadow(0 0 2px rgba(204, 42, 42, .5));
}

/* clips */
.clip {
    position: absolute;
    top: 4px;
    height: 28px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 9px;
    letter-spacing: .5px;
    transition: filter .15s, box-shadow .15s;
    white-space: nowrap;
    overflow: hidden;
    border-left: 2.5px solid var(--border2);
    user-select: none;
}

.clip:hover {
    filter: brightness(.93);
    z-index: 10;
}

.clip.selected {
    box-shadow: inset 0 0 0 1.5px var(--white);
    z-index: 12;
}

.nle.razor-mode .clip:hover {
    box-shadow: inset 0 0 0 1.5px var(--red);
}

.cy {
    background: rgba(62, 158, 110, .2);
    color: #19593b;
    border-left-color: var(--yellow-bright);
}

.cr {
    background: rgba(204, 42, 42, .13);
    color: #821717;
    border-left-color: var(--red);
}

.cc {
    background: rgba(26, 127, 160, .16);
    color: #0c4d66;
    border-left-color: var(--cyan);
}

.cp {
    background: rgba(107, 61, 204, .15);
    color: #452187;
    border-left-color: var(--purple);
}

.nle-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 14px;
    border-top: 1px solid var(--border);
    background: var(--surface2);
    font-size: 9px;
    color: var(--muted2);
    gap: 10px;
    flex-wrap: wrap;
}

.nle-status b {
    color: var(--white);
}

/* ── WORKS / VIDEO WALL ── */
#works {
    padding: 0;
    border-top: 1px solid var(--border);
}

.works-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 80px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.works-filter {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.wf-btn {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 2px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: transparent;
    transition: all .15s;
}

.wf-btn:hover,
.wf-btn.active {
    border-color: var(--yellow);
    color: var(--yellow);
    background: rgba(62, 158, 110, .08);
}

.video-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 2px;
    margin-top: 32px;
    background: var(--bg);
}

/* span rules */
.vw-item {
    position: relative;
    overflow: hidden;
    background: #141412;
    aspect-ratio: 16/9;
}

.vw-item.featured {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
    min-height: 100%;
}

.vw-item.featured.wide-only {
    grid-row: span 1;
    aspect-ratio: 16/9;
}

.vw-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
    opacity: .78;
    transition: transform .5s ease, opacity .4s;
}

.vw-item.has-poster:hover .vw-poster {
    transform: scale(1.04);
    opacity: .95;
}

.vw-item.has-video .vw-poster {
    opacity: 0;
    pointer-events: none;
}

.vw-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease, opacity .4s;
    opacity: 0;
    position: relative;
    z-index: 1;
}

.vw-item.has-video .vw-video {
    opacity: .78;
}

.vw-item.has-video:hover .vw-video {
    transform: scale(1.04);
    opacity: .95;
}

.vw-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    text-align: center;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 22px),
        radial-gradient(circle at 50% 42%, #242620 0%, #141412 100%);
    transition: opacity .35s ease;
    pointer-events: none;
}

.vw-item.has-video .vw-fallback,
.vw-item.has-poster .vw-fallback {
    opacity: 0;
}

.vw-fallback-badge {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 2px;
    color: #a6a89e;
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 3px 7px;
}

.vw-item.is-error .vw-fallback-badge {
    color: #f3a6a6;
    border-color: rgba(204, 42, 42, .45);
}

.vw-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(20, 20, 18, .92) 0%, rgba(20, 20, 18, .35) 35%, transparent 65%);
    transition: opacity .3s;
}

.vw-item:hover .vw-overlay {
    opacity: .78;
}

.vw-item {
    transition: box-shadow .25s ease;
}

.vw-item:hover {
    box-shadow: inset 0 0 0 1px rgba(110, 224, 166, .48);
}

.vw-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 3;
    pointer-events: none;
}

.vw-tag {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 3px;
    color: #6ee0a6;
    margin-bottom: 4px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vw-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 17px;
    color: #f4f5ef;
    line-height: 1.08;
    letter-spacing: -0.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.vw-item.featured .vw-title {
    font-size: 26px;
}

.vw-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #6ee0a6;
    background: rgba(20, 20, 18, .68);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6ee0a6;
    font-size: 14px;
    opacity: 0;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .3s;
}

.vw-item:hover .vw-play,
.vw-item:focus-visible .vw-play {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

@media (hover: none),
(pointer: coarse) {
    .vw-play {
        transform: translate(-50%, -50%) scale(.9);
        opacity: .85;
    }
}

/* corner marks on featured */
.vw-item.featured::before,
.vw-item.featured::after {
    content: '';
    position: absolute;
    z-index: 5;
    width: 10px;
    height: 10px;
    pointer-events: none;
}

.vw-item.featured::before {
    top: 8px;
    left: 8px;
    border-top: 1.5px solid #6ee0a6;
    border-left: 1.5px solid #6ee0a6;
}

.vw-item.featured::after {
    bottom: 8px;
    right: 8px;
    border-bottom: 1.5px solid #6ee0a6;
    border-right: 1.5px solid #6ee0a6;
}

/* LOAD MORE */
.load-more-row {
    padding: 32px 80px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.load-count {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1px;
}

.load-count b {
    color: var(--white);
}

/* ── ABOUT ── */
#about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.about-left {
    padding: 80px;
    border-right: 1px solid var(--border);
}

.about-right {
    padding: 80px;
    background: var(--surface);
}

.about-kicker {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--yellow);
    margin-bottom: 24px;
}

.about-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(48px, 4.8vw, 72px);
    line-height: .94;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}

.about-name span {
    color: var(--yellow);
    display: block;
}

.about-handle {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.about-bio {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted2);
    margin-bottom: 14px;
}

.about-quote {
    margin: 32px 0;
    border-left: 2px solid var(--yellow);
    padding-left: 20px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted2);
    line-height: 1.8;
    font-style: italic;
}

/* SOFTWARE */
.sw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-bottom: 2px;
}

.sw-item {
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: border-color .2s;
}

.sw-item:hover {
    border-color: var(--yellow);
}

.sw-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(62, 158, 110, .06);
    opacity: 0;
    transition: opacity .2s;
}

.sw-item:hover::before {
    opacity: 1;
}

.sw-icon {
    font-size: 28px;
    line-height: 1;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.sw-icon img.emoji,
.sw-item img.emoji {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

img.emoji {
    max-width: 1.15em !important;
    max-height: 1.15em !important;
    vertical-align: -0.1em !important;
}

.sw-logo-wrap {
    position: relative;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sw-logo-tile {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 9px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00005B;
    box-shadow: 0 4px 14px rgba(0, 0, 91, 0.22);
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease;
    animation: ifmSwFloat 3.8s ease-in-out infinite;
    will-change: transform;
}

.sw-logo-pr {
    animation-delay: -1.9s;
}

.sw-logo-ps {
    background: #001E36;
    box-shadow: 0 4px 14px rgba(0, 30, 54, 0.28);
    animation-delay: -0.95s;
}

.sw-logo-ai {
    background: #330000;
    box-shadow: 0 4px 14px rgba(51, 0, 0, 0.28);
    animation-delay: -2.85s;
}

.sw-logo-tile::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -130%;
    width: 75%;
    height: 160%;
    background: linear-gradient(110deg, transparent 20%, rgba(153, 153, 255, 0.32) 50%, transparent 80%);
    transform: skewX(-18deg);
    animation: ifmSwSheen 4.4s ease-in-out infinite;
    pointer-events: none;
}

.sw-logo-pr::after {
    animation-delay: 2.2s;
}

.sw-logo-ps::after {
    background: linear-gradient(110deg, transparent 20%, rgba(49, 168, 255, 0.34) 50%, transparent 80%);
    animation-delay: 1.1s;
}

.sw-logo-ai::after {
    background: linear-gradient(110deg, transparent 20%, rgba(255, 154, 0, 0.32) 50%, transparent 80%);
    animation-delay: 3.3s;
}

.sw-logo-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sw-ae-kf {
    position: absolute;
    right: -3px;
    top: -3px;
    width: 9px;
    height: 9px;
    background: #9999FF;
    border: 1.5px solid #00005B;
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(153, 153, 255, 0.75);
    animation: ifmAeDiamond 2.8s ease-in-out infinite;
    pointer-events: none;
}

.sw-pr-track {
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 4px;
    height: 2px;
    background: rgba(153, 153, 255, 0.22);
    border-radius: 2px;
    overflow: hidden;
    pointer-events: none;
}

.sw-pr-track::after {
    content: '';
    position: absolute;
    top: 0;
    left: -45%;
    width: 45%;
    height: 100%;
    background: #9999FF;
    border-radius: 2px;
    animation: ifmPrScrub 2.6s ease-in-out infinite;
}

.sw-ps-marquee {
    position: absolute;
    inset: 3px;
    border-radius: 7px;
    border: 1px dashed rgba(49, 168, 255, 0.55);
    animation: ifmPsPulse 2.8s ease-in-out infinite;
    pointer-events: none;
}

.sw-ai-anchor {
    position: absolute;
    right: -3px;
    top: -3px;
    width: 8px;
    height: 8px;
    background: #FF9A00;
    border: 1.5px solid #330000;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 154, 0, 0.75);
    animation: ifmAiAnchor 2.6s ease-in-out infinite;
    pointer-events: none;
}

.sw-item:hover .sw-logo-tile {
    animation-play-state: paused;
    transform: translateY(-3px) scale(1.09);
    box-shadow: 0 8px 22px rgba(0, 0, 91, 0.34), 0 0 0 2px rgba(153, 153, 255, 0.55);
}

.sw-item:hover .sw-logo-ps {
    box-shadow: 0 8px 22px rgba(0, 30, 54, 0.36), 0 0 0 2px rgba(49, 168, 255, 0.6);
}

.sw-item:hover .sw-logo-ai {
    box-shadow: 0 8px 22px rgba(51, 0, 0, 0.36), 0 0 0 2px rgba(255, 154, 0, 0.6);
}

.sw-item:hover .sw-ae-kf {
    animation-duration: 0.9s;
    background: #c6c6ff;
}

.sw-item:hover .sw-pr-track::after {
    animation-duration: 1.1s;
    background: #c6c6ff;
}

.sw-item:hover .sw-ps-marquee {
    animation-duration: 1.1s;
    border-color: rgba(49, 168, 255, 0.92);
}

.sw-item:hover .sw-ai-anchor {
    animation-duration: 0.9s;
    background: #ffc266;
}

@keyframes ifmSwFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes ifmSwSheen {
    0%, 58% {
        left: -130%;
        opacity: 0;
    }
    70% {
        opacity: 1;
    }
    92%, 100% {
        left: 165%;
        opacity: 0;
    }
}

@keyframes ifmAeDiamond {
    0%, 100% {
        transform: rotate(45deg) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: rotate(225deg) scale(1.22);
        opacity: 1;
    }
}

@keyframes ifmPrScrub {
    0% {
        left: -45%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -45%;
    }
}

@keyframes ifmPsPulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.92;
        transform: scale(0.96);
    }
}

@keyframes ifmAiAnchor {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.25) rotate(90deg);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sw-logo-tile,
    .sw-logo-tile::after,
    .sw-ae-kf,
    .sw-pr-track::after,
    .sw-ps-marquee,
    .sw-ai-anchor {
        animation: none !important;
    }
}

.sw-name {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted2);
    margin-bottom: 4px;
}

.sw-level {
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--yellow);
}

/* SKILLS */
.skill-list {
    margin-top: 32px;
}

.sk {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.sk:last-child {
    border-bottom: none;
}

.sk-name {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted2);
    letter-spacing: 1px;
    width: 130px;
    flex-shrink: 0;
}

.sk-bar {
    flex: 1;
    height: 2px;
    background: var(--border);
}

.sk-fill {
    height: 100%;
    animation: skillgrow 1.2s ease-out forwards;
    animation-delay: var(--d, 0s);
}

.about-left:not(.in) .sk-fill {
    width: 0 !important;
    animation: none;
}

@keyframes skillgrow {
    from {
        width: 0 !important
    }
}

.sk-pct {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--yellow);
    width: 36px;
    text-align: right;
}

/* ── CONTACT ── */
#contact {
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px;
    text-align: center;
}

.contact-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 20vw;
    color: rgba(62, 158, 110, .08);
    letter-spacing: -0.04em;
    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

.contact-kicker {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--yellow);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(46px, 5.4vw, 82px);
    line-height: .96;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

.contact-title span {
    color: var(--yellow);
}

.contact-email {
    font-family: var(--mono);
    font-size: clamp(11px, 3.2vw, 14px);
    color: var(--cyan);
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(26, 127, 160, .4);
    padding-bottom: 3px;
    transition: color .2s, border-color .2s;
    display: inline-block;
    margin-bottom: 40px;
    word-break: break-word;
}

.contact-email:hover {
    color: var(--yellow);
    border-color: var(--yellow);
}

.socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.soc {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 2px;
    padding: 9px 18px;
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    transition: all .15s;
}

.soc:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 80px;
    font-family: var(--mono);
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 1px;
}

footer img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ── REVEAL ── */
.rv {
    transition: opacity .6s, transform .6s;
}

html.ifm-reveal-ready .rv:not(.in) {
    opacity: 0;
    transform: translateY(20px);
}

.rv.in {
    opacity: 1;
    transform: none;
}

/* ── ADAPTIVE VIDEO & NETWORK COMPRESSION TOOLBAR ── */
.works-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 80px 0;
    margin-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 14px;
    background: var(--bg);
}

.wt-left,
.wt-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wt-net-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--muted2);
    border-radius: 2px;
}

.wt-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.wt-pulse.fast {
    background: #25734c;
    box-shadow: 0 0 6px #25734c;
}

.wt-pulse.med {
    background: #e6a700;
    box-shadow: 0 0 6px #e6a700;
}

.wt-pulse.slow {
    background: #e05252;
    box-shadow: 0 0 6px #e05252;
    animation: netBlink 1.2s infinite ease-in-out;
}

@keyframes netBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.wt-badge {
    font-size: 8px;
    padding: 2px 6px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--muted);
    letter-spacing: 1px;
}

.wt-badge.badge-saver {
    background: rgba(224, 82, 82, 0.15);
    border-color: rgba(224, 82, 82, 0.4);
    color: #e05252;
}

.wt-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wt-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin-right: 2px;
}

.wt-btn {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
    transition: all .15s;
}

.wt-btn:hover {
    color: var(--white);
    border-color: var(--border2);
}

.wt-btn.active {
    background: var(--surface2);
    color: var(--yellow);
    border-color: var(--yellow);
    font-weight: 600;
}

/* ── GRID SIZE VARIANTS & RESPONSIVE SCALING ── */
.video-wall.grid-compact {
    grid-template-columns: repeat(4, 1fr);
}

.video-wall.grid-standard {
    grid-template-columns: repeat(3, 1fr);
}

.video-wall.grid-large {
    grid-template-columns: repeat(2, 1fr);
}

.video-wall.grid-large .vw-item.featured {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
}

/* ── COMPRESSED VIDEO & SAVER STYLING ── */
.vw-item.compressed-mode .vw-fallback-badge {
    color: #e6a700;
    border-color: rgba(230, 167, 0, 0.35);
}

.vw-item {
    contain: layout;
}

/* ── MODAL PLAYER ENHANCEMENTS & SIZING ── */
.modal-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-badge {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 1.5px;
    padding: 2px 7px;
    background: rgba(110, 224, 166, 0.12);
    border: 1px solid rgba(110, 224, 166, 0.35);
    color: #6ee0a6;
}

.modal-bar-center {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.modal-ctrl-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.modal-ctrl-label {
    font-size: 8px;
    color: #888;
    letter-spacing: 1px;
}

.m-ctrl-btn {
    font-family: var(--mono);
    font-size: 8px;
    padding: 3px 8px;
    border: 1px solid #444;
    background: #222;
    color: #aaa;
    cursor: pointer;
    transition: all .15s;
}

.m-ctrl-btn:hover {
    color: #fff;
    border-color: #666;
}

.m-ctrl-btn.active {
    background: #333;
    border-color: #6ee0a6;
    color: #6ee0a6;
}

/* Modal Stage Fit Modes */
.modal-stage.fit-contain #modal-video {
    object-fit: contain;
}

.modal-stage.fit-cover #modal-video {
    object-fit: cover;
}

.modal-stage.size-cinema {
    aspect-ratio: 21/9;
}

.modal-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-top: 1px solid #282826;
    font-family: var(--mono);
    font-size: 8px;
    color: #777;
    background: #141412;
    letter-spacing: 1px;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── VIDEO MODAL ── */
#modal {
    position: fixed;
    inset: 0;
    z-index: 950;
    background: rgba(26, 26, 24, .96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

#modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal-inner {
    width: 90%;
    max-width: 960px;
    border: 1px solid var(--border2);
    background: #1a1a18;
    position: relative;
    transition: max-width .25s ease, width .25s ease;
}

.modal-inner.size-standard {
    width: 90%;
    max-width: 960px;
}

.modal-inner.size-cinema {
    width: 94%;
    max-width: 1240px;
}

.modal-inner.size-theater {
    width: 96%;
    max-width: 1480px;
}

.modal-inner.size-compact {
    width: 75%;
    max-width: 640px;
}

.modal-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #333;
    font-family: var(--mono);
    font-size: 10px;
    color: #aaa;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-bar span {
    color: #6ee0a6;
}

#modal-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    padding: 2px 6px;
    transition: color .15s;
}

#modal-close:hover {
    color: #fff;
}

.modal-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a08;
    min-height: 240px;
    overflow: hidden;
}

#modal-video {
    width: 100%;
    display: block;
    max-height: 70vh;
    background: #000;
}

#modal-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    border: 0;
    display: none;
    background: #000;
}

.modal-stage.is-embed #modal-video {
    display: none;
}

.modal-stage.is-embed #modal-iframe {
    display: block;
}

#modal-status {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    font-family: var(--mono);
    font-size: 11px;
    color: #d6d7ce;
    background: rgba(20, 20, 18, .92);
}

#modal-status.show {
    display: flex;
}

#modal-status a {
    color: #6ee0a6;
    font-size: 10px;
    letter-spacing: 1px;
}

/* ── RESPONSIVE ── */
@media(min-width:1600px) {
    .hero-left {
        padding: 88px 72px 88px max(80px, calc((100vw - 1480px) / 2));
    }

    .hero-h1 {
        font-size: clamp(72px, 7.5vw, 132px);
    }

    .hero-desc {
        max-width: 480px;
        font-size: 13px;
    }

    .section,
    #timeline-section,
    #contact {
        padding: 88px max(80px, calc((100vw - 1480px) / 2));
    }

    .works-header {
        padding: 48px max(80px, calc((100vw - 1480px) / 2)) 0;
    }

    .works-toolbar {
        padding: 18px max(80px, calc((100vw - 1480px) / 2)) 0;
    }

    .load-more-row {
        padding: 36px max(80px, calc((100vw - 1480px) / 2));
    }

    .about-left {
        padding: 88px 72px 88px max(80px, calc((100vw - 1480px) / 2));
    }

    .about-right {
        padding: 88px max(80px, calc((100vw - 1480px) / 2)) 88px 72px;
    }

    footer {
        padding: 20px max(80px, calc((100vw - 1480px) / 2));
    }
}

@media(max-width:1366px) {
    .hero-left {
        padding: 60px 44px 60px 56px;
    }

    .hero-eyebrow {
        margin-bottom: 22px;
    }

    .hero-h1 {
        font-size: clamp(48px, 7.4vw, 96px);
    }

    .hero-desc {
        margin-top: 22px;
    }

    .hero-actions {
        margin-top: 28px;
    }

    .section,
    #timeline-section,
    .about-left,
    .about-right,
    #contact {
        padding: 64px 56px;
    }

    .works-header {
        padding: 36px 56px 0;
    }

    .works-toolbar {
        padding: 16px 56px 0;
    }

    .load-more-row {
        padding: 28px 56px;
    }

    footer {
        padding: 18px 56px;
    }
}

@media(max-width:1180px) {
    .hero-left {
        padding: 48px 32px 48px 36px;
    }

    .hero-h1 {
        font-size: clamp(44px, 6.8vw, 84px);
    }

    .section,
    #timeline-section,
    .about-left,
    .about-right,
    #contact {
        padding: 52px 36px;
    }

    .works-header {
        padding: 32px 36px 0;
    }

    .works-toolbar {
        padding: 16px 36px 0;
    }

    .load-more-row {
        padding: 24px 36px;
    }

    footer {
        padding: 18px 36px;
    }

    .video-wall.grid-compact {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:960px) {
    .works-header {
        padding: 36px 28px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .works-toolbar {
        padding: 16px 28px 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .wt-left,
    .wt-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-inner,
    .modal-inner.size-standard,
    .modal-inner.size-cinema,
    .modal-inner.size-theater,
    .modal-inner.size-compact {
        width: 94%;
        max-width: 94vw;
    }

    .modal-bar-center {
        width: 100%;
        order: 3;
        gap: 8px;
        padding-top: 6px;
        border-top: 1px solid #262624;
    }

    .tb-seg {
        padding: 0 12px;
    }

    .tb-seg.nav a {
        padding: 0 6px;
    }

    #hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left {
        padding: 44px 28px 32px;
        border-right: none;
    }

    .hero-h1 {
        font-size: clamp(46px, 9.5vw, 84px);
    }

    .hero-desc {
        max-width: 540px;
    }

    .hero-right {
        display: block;
        min-height: 0;
        aspect-ratio: 16 / 9;
        max-height: 440px;
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .section,
    .about-left,
    .about-right,
    .load-more-row,
    #contact,
    #timeline-section {
        padding: 44px 28px;
    }

    .sec-head {
        margin-bottom: 28px;
        flex-wrap: wrap;
    }

    #about {
        grid-template-columns: 1fr;
    }

    .about-left {
        border-right: none;
    }

    .about-right {
        border-top: 1px solid var(--border);
    }

    .video-wall,
    .video-wall.grid-standard {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 18px;
    }

    .video-wall.grid-compact {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 18px;
    }

    .video-wall.grid-compact .vw-item:not(.featured) .vw-info {
        padding: 10px 12px;
    }

    .video-wall.grid-compact .vw-item:not(.featured) .vw-title {
        font-size: 14px;
    }

    .video-wall.grid-compact .vw-item:not(.featured) .vw-play {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }

    .video-wall.grid-large {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .vw-item.featured {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .video-wall.grid-large .vw-item.featured {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    footer {
        padding: 18px 28px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .nle-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nle-left-col {
        width: 112px;
    }

    .nt {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .wf-btn,
    .wt-btn {
        min-height: 32px;
        padding: 6px 12px;
    }

    #contact {
        min-height: auto;
    }
}

@media(max-width:600px) {
    .tb-seg {
        padding: 0 8px;
    }

    .tb-seg.logo {
        padding: 0 8px;
    }

    .tb-seg.logo img {
        height: 18px;
    }

    .tb-seg.nav {
        padding: 0 6px;
        gap: 2px;
        font-size: 9px;
        justify-content: space-around;
    }

    .tb-seg.nav a {
        padding: 0 5px;
        height: 100%;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

    .tb-seg.right {
        padding: 0 8px;
        gap: 6px;
    }

    .tb-rec-text,
    .tb-sep {
        display: none;
    }

    #tc {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .hero-left {
        padding: 26px 16px 22px;
    }

    .hero-eyebrow {
        margin-bottom: 14px;
        font-size: 9px;
        letter-spacing: 2px;
        gap: 8px;
    }

    .hero-eyebrow::before {
        width: 20px;
    }

    .hero-h1 {
        font-size: clamp(40px, 12.5vw, 68px);
        line-height: .92;
    }

    .hero-desc {
        margin-top: 16px;
        font-size: 11px;
        line-height: 1.7;
        max-width: 100%;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 20px;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 40px;
        padding: 10px 8px;
        font-size: 10px;
        letter-spacing: 1.2px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }

    .hero-right {
        min-height: 0;
        aspect-ratio: 16 / 9;
        max-height: 260px;
    }

    .hero-right-label {
        bottom: 10px;
        right: 10px;
        font-size: 8px;
        letter-spacing: 1.5px;
        padding: 4px 8px;
    }

    .ticker {
        height: 32px;
    }

    .ticker-inner {
        font-size: 9px;
    }

    .section,
    .about-left,
    .about-right,
    #contact,
    #timeline-section {
        padding: 32px 16px;
    }

    .sec-head {
        gap: 10px;
        margin-bottom: 22px;
    }

    .sec-title {
        font-size: clamp(28px, 8.5vw, 42px);
    }

    .works-header {
        padding: 28px 16px 0;
        gap: 12px;
    }

    .works-filter {
        width: 100%;
        gap: 6px;
    }

    .wf-btn {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 8.5px;
        letter-spacing: 1.5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .works-toolbar {
        padding: 12px 16px 0;
        gap: 8px;
    }

    .wt-left,
    .wt-right {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .wt-net-status {
        width: 100%;
        justify-content: space-between;
        font-size: 8.5px;
        padding: 6px 10px;
    }

    .wt-group {
        width: 100%;
        gap: 4px;
        flex-wrap: wrap;
    }

    .wt-label {
        font-size: 8px;
        margin-right: 4px;
        flex-shrink: 0;
    }

    .wt-btn {
        flex: 1 1 auto;
        min-height: 32px;
        padding: 5px 8px;
        font-size: 8.5px;
        text-align: center;
    }

    .load-more-row {
        padding: 20px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .load-more-row .btn {
        width: 100%;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .nle-bar {
        padding: 8px 10px;
        gap: 6px;
    }

    .nle-tools {
        gap: 4px;
    }

    .nt {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .nle-left-col {
        width: 82px;
    }

    .nle-label-row {
        padding: 0 6px;
        font-size: 8px;
    }

    .nle-scroll-col {
        scrollbar-width: thin;
        scrollbar-color: var(--yellow) var(--surface);
    }

    .nle-seq-name {
        width: 100%;
        margin-left: 0;
        font-size: 8px;
    }

    .nle-status {
        flex-wrap: wrap;
        gap: 4px 10px;
        font-size: 8px;
        padding: 7px 10px;
    }

    .video-wall,
    .video-wall.grid-standard,
    .video-wall.grid-compact {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 14px;
    }

    .video-wall.grid-large {
        grid-template-columns: 1fr;
        margin-top: 14px;
    }

    .vw-item.featured {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .video-wall.grid-compact .vw-item.featured,
    .video-wall.grid-large .vw-item.featured {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .vw-item.featured .vw-title {
        font-size: 20px;
    }

    .video-wall:not(.grid-large) .vw-item:not(.featured) .vw-info,
    .video-wall.grid-compact .vw-item.featured .vw-info {
        padding: 8px 10px;
    }

    .video-wall:not(.grid-large) .vw-item:not(.featured) .vw-tag,
    .video-wall.grid-compact .vw-item.featured .vw-tag {
        font-size: 7px;
        letter-spacing: 1.5px;
        margin-bottom: 2px;
    }

    .video-wall:not(.grid-large) .vw-item:not(.featured) .vw-title,
    .video-wall.grid-compact .vw-item.featured .vw-title {
        font-size: 13px;
    }

    .video-wall:not(.grid-large) .vw-item:not(.featured) .vw-play,
    .video-wall.grid-compact .vw-item.featured .vw-play {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .vw-play {
        opacity: .88;
    }

    .about-name {
        font-size: clamp(38px, 11.5vw, 56px);
        margin-bottom: 16px;
    }

    .about-handle {
        margin-bottom: 20px;
        font-size: 10px;
    }

    .about-bio {
        font-size: 13px;
        line-height: 1.7;
    }

    .about-quote {
        margin: 20px 0;
        padding-left: 14px;
        font-size: 10.5px;
    }

    .sk-name {
        width: 96px;
        font-size: 9px;
    }

    .sw-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sw-item {
        padding: 14px 12px;
    }

    .sw-logo-wrap {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }

    .sw-logo-tile {
        width: 34px;
        height: 34px;
        border-radius: 7px;
    }

    .sw-icon {
        width: 36px;
        height: 36px;
        font-size: 22px;
        margin-bottom: 8px;
    }

    .sw-icon img.emoji,
    .sw-item img.emoji {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
    }

    .sw-name {
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .sw-level {
        font-size: 17px;
    }

    .about-stats-grid>div {
        padding: 14px 8px !important;
        text-align: center;
    }

    .about-stats-grid>div>div:first-child {
        font-size: clamp(22px, 6.5vw, 30px) !important;
    }

    .about-stats-grid>div>div:last-child {
        font-size: 8px !important;
        letter-spacing: 0.5px !important;
    }

    .contact-title {
        font-size: clamp(34px, 11vw, 54px);
        margin-bottom: 22px;
    }

    .contact-email {
        font-size: clamp(11px, 3.2vw, 13px);
        word-break: break-word;
        margin-bottom: 24px;
    }

    .socials {
        width: 100%;
        max-width: 360px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .soc {
        padding: 10px 8px;
        text-align: center;
        font-size: 8.5px;
        letter-spacing: 1.5px;
    }

    footer {
        padding: 16px;
        gap: 8px;
        font-size: 8.5px;
    }

    .modal-inner,
    .modal-inner.size-standard,
    .modal-inner.size-cinema,
    .modal-inner.size-theater,
    .modal-inner.size-compact {
        width: 96%;
        max-width: 96vw;
        max-height: 94vh;
        max-height: 94dvh;
        display: flex;
        flex-direction: column;
    }

    .modal-bar {
        padding: 8px 10px;
    }

    .modal-footer-bar {
        padding: 6px 10px;
    }

    .modal-stage {
        min-height: 180px;
    }

    #modal-video,
    #modal-iframe {
        max-height: 54dvh;
    }

    .m-ctrl-btn {
        min-height: 28px;
        padding: 4px 7px;
    }
}

@media(max-width:460px) {
    .tb-seg.right {
        display: none;
    }
}

@media(max-width:339px) {
    .tb-seg.logo {
        padding: 0 6px;
    }

    .tb-seg.nav {
        padding: 0 4px;
        font-size: 8px;
        gap: 1px;
    }

    .tb-seg.nav a {
        padding: 0 3px;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .nle-left-col {
        width: 72px;
    }

    .video-wall,
    .video-wall.grid-standard,
    .video-wall.grid-large {
        grid-template-columns: 1fr;
    }

    .video-wall.grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .vw-item.featured,
    .video-wall.grid-large .vw-item.featured {
        grid-column: span 1;
    }

    .sw-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .about-stats-grid>div {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
    }

    .about-stats-grid>div:last-child {
        border-bottom: none;
    }

    .socials {
        grid-template-columns: 1fr;
    }
}


/* ── WORDPRESS ADMIN BAR & SUBPAGE COMPATIBILITY ── */
body.admin-bar #topbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #topbar {
        top: 46px;
    }
}

body.admin-bar #wpadminbar,
body.admin-bar #wpadminbar * {
    cursor: auto !important;
}

.tb-seg.nav ul.tb-nav-list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tb-seg.nav li {
    list-style: none;
    display: inline-flex;
    align-items: center;
}

/* Subpages, 404 & Single Render Templates */
.ifm-page-wrap {
    min-height: calc(100vh - 102px);
    padding: 96px 80px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.ifm-page-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
    margin-bottom: 40px;
}

.ifm-page-kicker {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--yellow);
    margin-bottom: 12px;
}

.ifm-page-title {
    font-family: var(--display);
    font-size: clamp(40px, 5vw, 72px);
    line-height: 0.95;
    color: var(--white);
}

.ifm-page-content {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.85;
    color: var(--muted2);
}

.ifm-page-content h2,
.ifm-page-content h3 {
    font-family: var(--display);
    color: var(--white);
    margin: 28px 0 12px;
    letter-spacing: 0.5px;
}

.ifm-page-content p {
    margin-bottom: 16px;
}

.ifm-page-content a {
    color: var(--cyan);
}

.ifm-single-stage {
    border: 1px solid var(--border2);
    background: #0a0a08;
    margin-bottom: 28px;
    position: relative;
}

.ifm-single-stage video {
    width: 100%;
    max-height: 75vh;
    display: block;
}

.ifm-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.ifm-post-card {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s;
}

.ifm-post-card:hover {
    border-color: var(--yellow);
}

@media (max-width: 1180px) {
    .ifm-page-wrap {
        padding: 84px 48px 64px;
    }
}

@media (max-width: 900px) {
    .ifm-page-wrap {
        padding: 78px 24px 56px;
    }
}

@media (max-width: 600px) {
    .ifm-page-wrap {
        padding: 72px 16px 48px;
    }
}

/* ── BLOG & JOURNAL SECTION + ARCHIVE + SINGLE READER ── */
#blog {
    padding: 76px 80px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.blog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.blog-filter {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.blog-filter a.wf-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.blog-grid.is-archive {
    grid-template-columns: repeat(3, 1fr);
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color .22s, transform .22s, box-shadow .22s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blog-card:hover {
    border-color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(26, 26, 24, .06);
}

.blog-card.is-hidden {
    display: none;
}

.blog-card.is-lead {
    grid-column: 1 / -1;
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-card.is-lead .blog-card-link {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
}

.blog-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #171815;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.blog-card.is-lead .blog-card-media {
    height: 100%;
    min-height: 240px;
    border-bottom: none;
    border-right: 1px solid var(--border);
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.03);
}

.blog-card-fallback {
    position: absolute;
    inset: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a1a18 0%, #242621 55%, #19261f 100%);
    color: #f1f2ec;
}

.blog-fallback-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(241, 242, 236, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(241, 242, 236, .06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.blog-fallback-index {
    position: relative;
    z-index: 1;
    margin-top: auto;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 2px;
    color: #6ee0a6;
}

.blog-fallback-topic {
    position: relative;
    z-index: 1;
    font-family: var(--display);
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.02;
    letter-spacing: 0.5px;
    color: rgba(241, 242, 236, .92);
    word-break: break-word;
}

.blog-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

.blog-badge {
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 1.5px;
    padding: 4px 8px;
    background: rgba(26, 26, 24, .88);
    color: #f1f2ec;
    border: 1px solid rgba(255, 255, 255, .16);
    text-decoration: none;
    text-transform: uppercase;
}

.blog-badge.is-trending {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    font-weight: 700;
}

.blog-badge.is-kw {
    background: var(--surface2);
    border-color: var(--border);
    color: var(--muted2);
}

.blog-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.blog-card.is-lead .blog-card-body {
    padding: 28px 32px;
    justify-content: center;
}

.blog-card-meta {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.blog-card-title {
    font-family: var(--display);
    font-size: clamp(20px, 1.9vw, 26px);
    line-height: 1.08;
    color: var(--white);
    letter-spacing: -0.2px;
}

.blog-card.is-lead .blog-card-title {
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.04;
}

.blog-card-excerpt {
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted2);
    margin: 0;
}

.blog-card-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-read-cta {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 1.8px;
    font-weight: 700;
    color: var(--yellow);
}

.blog-kw-pill {
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.8px;
    color: var(--muted);
}

.blog-footer-row {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.blog-footer-meta {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 1.5px;
    color: var(--muted);
}

.blog-empty-box {
    border: 1px dashed var(--border2);
    background: var(--surface);
    padding: 32px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted2);
    text-align: center;
}

/* Reading Progress Bar & Single Article View */
.ifm-read-progress {
    position: fixed;
    top: 46px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 495;
    pointer-events: none;
}

body.admin-bar .ifm-read-progress {
    top: 78px;
}

.ifm-read-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--cyan));
    transition: width .08s linear;
}

.ifm-article-wrap {
    max-width: 880px;
    margin: 0 auto;
}

.ifm-breadcrumbs {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 1.5px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
}

.ifm-breadcrumbs a {
    color: var(--yellow);
    text-decoration: none;
}

.ifm-breadcrumbs a:hover {
    text-decoration: underline;
}

.ifm-article-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.ifm-article-title {
    font-size: clamp(32px, 4.4vw, 56px);
    line-height: 0.98;
}

.ifm-article-meta {
    margin-top: 16px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.6px;
    color: var(--muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ifm-article-cover {
    margin: 0 0 32px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.ifm-article-cover img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.ifm-toc-box {
    border: 1px solid var(--border);
    border-left: 3px solid var(--yellow);
    background: var(--surface);
    padding: 18px 22px;
    margin-bottom: 28px;
}

.ifm-toc-head {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--yellow);
    margin-bottom: 10px;
}

.ifm-toc-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.ifm-toc-list li {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--muted2);
}

.ifm-toc-list li.ifm-toc-lvl-3 {
    margin-left: 16px;
    font-size: 12.5px;
}

.ifm-toc-list a {
    color: var(--white);
    text-decoration: none;
}

.ifm-toc-list a:hover {
    color: var(--yellow);
    text-decoration: underline;
}

.ifm-article-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--white);
}

.ifm-article-body h2 {
    font-family: var(--display);
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.1;
    margin: 34px 0 14px;
    scroll-margin-top: 70px;
}

.ifm-article-body h3 {
    font-family: var(--display);
    font-size: clamp(19px, 2vw, 24px);
    margin: 26px 0 10px;
    scroll-margin-top: 70px;
}

.ifm-article-body blockquote {
    border-left: 3px solid var(--yellow);
    background: var(--surface);
    padding: 16px 20px;
    margin: 24px 0;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--muted2);
}

.ifm-article-body img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
}

.ifm-share-strip {
    margin: 36px 0 28px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ifm-share-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--yellow);
}

.ifm-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ifm-share-btn {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 1.4px;
    padding: 7px 12px;
    border: 1px solid var(--border2);
    background: var(--bg);
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.ifm-share-btn:hover {
    border-color: var(--yellow);
    background: var(--yellow);
    color: #f7f8f3;
}

.ifm-author-box {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 22px 24px;
    margin-bottom: 36px;
}

.ifm-author-kicker {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--yellow);
    margin-bottom: 6px;
}

.ifm-author-name {
    font-family: var(--display);
    font-size: 24px;
    line-height: 1.1;
    color: var(--white);
}

.ifm-author-role {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin: 4px 0 10px;
}

.ifm-author-bio {
    font-family: var(--sans);
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--muted2);
    margin: 0;
}

.ifm-related-section {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    margin-top: 12px;
}

.ifm-related-head {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 18px;
}

.ifm-related-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Blog Archive Search & Pagination */
.ifm-archive-desc {
    margin-top: 14px;
    max-width: 700px;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted2);
}

.ifm-blog-archive-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.ifm-blog-search-form {
    display: flex;
    gap: 6px;
    flex: 1 1 280px;
    max-width: 380px;
}

.ifm-blog-search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--border2);
    background: var(--surface);
    color: var(--white);
    font-family: var(--mono);
    font-size: 10.5px;
}

.ifm-pagination {
    margin-top: 32px;
}

.ifm-pagination ul.page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ifm-pagination .page-numbers a,
.ifm-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid var(--border2);
    background: var(--surface);
    color: var(--white);
    font-family: var(--mono);
    font-size: 10px;
    text-decoration: none;
}

.ifm-pagination .page-numbers span.current {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #fff;
}

/* Standalone Blog Reader Modal (for invalidfm.html) */
#blogModal {
    position: fixed;
    inset: 0;
    z-index: 905;
    background: rgba(16, 16, 14, .88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#blogModal.open {
    display: flex;
}

.blog-modal-inner {
    width: min(860px, 100%);
    max-height: 90vh;
    background: var(--bg);
    border: 1px solid var(--border2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blog-modal-bar {
    background: #1a1a18;
    color: #f1f2ec;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.blog-modal-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
    color: #f1f2ec;
    padding: 4px 10px;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 11px;
}

.blog-modal-body {
    padding: 28px 34px;
    overflow-y: auto;
}

.blog-modal-body h2,
.blog-modal-body h3 {
    font-family: var(--display);
    margin: 22px 0 10px;
    color: var(--white);
}

.blog-modal-body p {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.78;
    color: var(--muted2);
    margin-bottom: 14px;
}

.blog-modal-body blockquote {
    border-left: 3px solid var(--yellow);
    background: var(--surface);
    padding: 14px 18px;
    margin: 18px 0;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted2);
}

.blog-modal-foot {
    padding: 12px 18px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

@media(min-width:1600px) {
    #blog {
        padding: 88px max(80px, calc((100vw - 1480px) / 2));
    }
}

@media(max-width:1366px) {
    #blog {
        padding: 64px 56px;
    }
}

@media(max-width:1180px) {
    #blog {
        padding: 52px 36px;
    }

    .blog-grid.is-archive,
    .ifm-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:960px) {
    #blog {
        padding: 44px 28px;
    }

    .blog-card.is-lead .blog-card-link {
        grid-template-columns: 1fr;
    }

    .blog-card.is-lead .blog-card-media {
        border-right: none;
        border-bottom: 1px solid var(--border);
        min-height: 200px;
    }
}

@media(max-width:680px) {
    .blog-grid,
    .blog-grid.is-archive,
    .ifm-related-grid {
        grid-template-columns: 1fr;
    }

    .blog-card.is-lead {
        grid-column: span 1;
    }
}

@media(max-width:600px) {
    #blog {
        padding: 32px 16px;
    }

    .tb-seg.nav {
        padding: 0 4px;
        gap: 1px;
        font-size: 8.5px;
        letter-spacing: 0.6px;
    }

    .tb-seg.nav a {
        padding: 0 4px;
    }

    .blog-card-body,
    .blog-card.is-lead .blog-card-body {
        padding: 18px 16px;
    }

    .blog-modal-body {
        padding: 18px 16px;
    }
}

@media(max-width:359px) {
    .tb-seg.logo {
        padding: 0 5px;
    }

    .tb-seg.logo img {
        height: 15px;
    }

    .tb-seg.nav {
        font-size: 7.5px;
        letter-spacing: 0.3px;
        padding: 0 3px;
    }

    .tb-seg.nav a {
        padding: 0 2.5px;
    }
}

/* ── BLOG COMMUNITY CHAT, SCREENSHOT PASTE & LIGHTBOX ── */
.blog-foot-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-reply-pill,
.blog-sol-pill {
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.9px;
    padding: 2px 7px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--muted2);
    text-transform: uppercase;
}

.blog-sol-pill {
    border-color: var(--yellow);
    background: rgba(37, 115, 76, .1);
    color: var(--yellow);
    font-weight: 700;
}

.ifm-chat-box {
    margin-top: 34px;
    border: 1px solid var(--border2);
    background: var(--surface);
    display: flex;
    flex-direction: column;
}

.ifm-chat-box.is-home-dock {
    margin-top: 28px;
    background: var(--surface);
}

.ifm-chat-head {
    padding: 18px 22px;
    background: #1a1a18;
    color: #f1f2ec;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    border-bottom: 2px solid var(--yellow);
}

.ifm-chat-kicker {
    display: block;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1.8px;
    color: #6ee0a6;
    margin-bottom: 4px;
}

.ifm-chat-title {
    font-family: var(--display);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.08;
    color: #f1f2ec;
    margin: 0;
}

.ifm-chat-head-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ifm-chat-topic-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1px;
    color: #c8c9c1;
}

.ifm-chat-topic-select {
    background: #272823;
    color: #f1f2ec;
    border: 1px solid #484942;
    padding: 5px 8px;
    font-family: var(--mono);
    font-size: 9.5px;
    max-width: 240px;
}

.ifm-chat-filters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.ifm-chat-head .wf-btn {
    border-color: #3f413a;
    color: #d6d7ce;
    background: #252622;
    font-size: 8.5px;
    padding: 5px 9px;
}

.ifm-chat-head .wf-btn.active {
    border-color: #6ee0a6;
    background: var(--yellow);
    color: #fff;
}

.ifm-chat-feed {
    max-height: 440px;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg);
}

.ifm-chat-empty {
    padding: 28px 16px;
    text-align: center;
    border: 1px dashed var(--border2);
    background: var(--surface);
    font-family: var(--mono);
    font-size: 10.5px;
    line-height: 1.6;
    color: var(--muted2);
}

.ifm-chat-msg {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ifm-chat-msg.is-hidden {
    display: none;
}

.ifm-chat-msg.is-reply {
    margin-left: 28px;
    border-left: 3px solid var(--cyan);
}

.ifm-chat-msg.is-creator {
    background: #eef4ef;
    border-color: var(--border2);
}

.ifm-chat-msg.is-solution {
    border-left: 4px solid var(--yellow);
    box-shadow: inset 0 0 0 1px rgba(37, 115, 76, .24);
}

.ifm-chat-msg-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ifm-chat-author-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.ifm-chat-avatar {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a1a18;
    color: #f1f2ec;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
}

.ifm-chat-msg.is-creator .ifm-chat-avatar {
    background: var(--yellow);
    color: #fff;
}

.ifm-chat-author {
    font-family: var(--display);
    font-size: 14px;
    color: var(--white);
}

.ifm-chat-badge {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 1px;
    padding: 2px 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--muted2);
    text-transform: uppercase;
}

.ifm-chat-badge.is-creator {
    background: #1a1a18;
    border-color: #1a1a18;
    color: #6ee0a6;
}

.ifm-chat-badge.is-solution {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #fff;
    font-weight: 700;
}

.ifm-chat-badge.is-pending {
    background: #fff6e5;
    border-color: #d9822b;
    color: #8f4f00;
}

.ifm-chat-time {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--muted);
}

.ifm-chat-reply-ref {
    font-family: var(--mono);
    font-size: 9.5px;
    color: var(--cyan);
    padding: 3px 8px;
    background: rgba(26, 127, 160, .08);
    border-left: 2px solid var(--cyan);
    align-self: flex-start;
}

.ifm-chat-msg-body {
    font-family: var(--sans);
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--white);
    word-break: break-word;
}

.ifm-chat-msg-body p {
    margin: 0 0 6px;
}

.ifm-chat-msg-body p:last-child {
    margin-bottom: 0;
}

.ifm-chat-screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.ifm-chat-shot-btn {
    position: relative;
    width: 184px;
    aspect-ratio: 16 / 10;
    padding: 0;
    border: 1px solid var(--border2);
    background: #141412;
    cursor: pointer;
    overflow: hidden;
    display: block;
}

.ifm-chat-shot-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.ifm-chat-shot-btn:hover img {
    transform: scale(1.04);
}

.ifm-shot-zoom {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: rgba(26, 26, 24, .88);
    color: #f1f2ec;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 1px;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, .2);
}

.ifm-chat-msg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.ifm-chat-act-btn {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.8px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--muted2);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}

.ifm-chat-act-btn:hover,
.ifm-chat-act-btn.is-active {
    border-color: var(--yellow);
    color: var(--yellow);
    background: rgba(37, 115, 76, .08);
}

.ifm-chat-composer {
    padding: 16px 20px 18px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ifm-chat-replying-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    background: rgba(26, 127, 160, .1);
    border-left: 3px solid var(--cyan);
    font-family: var(--mono);
    font-size: 9.5px;
    color: var(--white);
}

.ifm-replying-cancel-btn {
    border: 1px solid var(--border2);
    background: var(--bg);
    color: var(--white);
    font-family: var(--mono);
    font-size: 9px;
    padding: 3px 8px;
    cursor: pointer;
}

.ifm-chat-user-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ifm-chat-user-row input,
.ifm-chat-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border2);
    background: var(--bg);
    color: var(--white);
    padding: 9px 11px;
    font-family: var(--sans);
    font-size: 13px;
}

.ifm-chat-user-row input::placeholder,
.ifm-chat-textarea::placeholder {
    color: var(--muted);
    font-size: 12px;
}

.ifm-chat-signed-in {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ifm-chat-dropzone {
    border: 1px solid var(--border);
    background: var(--bg);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .15s, background .15s;
}

.ifm-chat-dropzone.is-dragover {
    border-color: var(--yellow);
    background: rgba(37, 115, 76, .08);
}

.ifm-chat-dropzone .ifm-chat-textarea {
    border: none;
    padding: 4px;
    resize: vertical;
    min-height: 68px;
    outline: none;
}

.ifm-chat-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
}

.ifm-chat-preview-item {
    position: relative;
    width: 96px;
    height: 60px;
    border: 1px solid var(--border2);
    overflow: hidden;
    background: #141412;
}

.ifm-chat-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ifm-preview-rm {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border: none;
    background: rgba(204, 42, 42, .92);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ifm-chat-composer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

.ifm-chat-attach-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ifm-chat-paste-hint {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--muted);
}

.ifm-chat-form-status {
    font-family: var(--mono);
    font-size: 9.5px;
    color: var(--yellow);
}

/* Lightbox Zoom Modal */
#ifmImgLightbox {
    position: fixed;
    inset: 0;
    z-index: 960;
    background: rgba(12, 12, 10, .92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#ifmImgLightbox.open {
    display: flex;
}

.ifm-lightbox-inner {
    width: min(1040px, 100%);
    max-height: 92vh;
    background: #141412;
    border: 1px solid #3f413a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ifm-lightbox-bar {
    padding: 10px 16px;
    background: #1a1a18;
    color: #f1f2ec;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ifm-lightbox-raw {
    color: #6ee0a6;
    text-decoration: none;
}

.ifm-lightbox-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
    color: #f1f2ec;
    padding: 4px 10px;
    font-family: var(--mono);
    font-size: 10px;
    cursor: pointer;
}

.ifm-lightbox-stage {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a08;
    padding: 12px;
    overflow: auto;
}

#ifmLightboxImg {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
}

@media(max-width:600px) {
    .ifm-chat-head,
    .ifm-chat-feed,
    .ifm-chat-composer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ifm-chat-user-row {
        grid-template-columns: 1fr;
    }

    .ifm-chat-msg.is-reply {
        margin-left: 12px;
    }

    .ifm-chat-shot-btn {
        width: 140px;
    }

    .ifm-chat-topic-select {
        max-width: 100%;
    }
}
