/* =========================================================
   DESIGN TOKENS — exact from moyibanez.com source
   ========================================================= */
:root {
    --bg:     #050506;
    --text:   #f7f8fb;
    --muted:  rgba(247, 248, 251, .58);
    --soft:   rgba(247, 248, 251, .42);
    --line:   rgba(255, 255, 255, .105);
    --blue:   #8bb8ff;
    --violet: #5865f2;
    --green:  #8ff0c4;
    --sans:   Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:   'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --shell:  min(100% - 40px, 1180px);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 0%, rgba(85, 87, 255, .2), transparent 34rem),
        radial-gradient(circle at 92% 8%, rgba(0, 137, 255, .14), transparent 30rem),
        linear-gradient(180deg, #050506, #080910 45%, #050506);
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; }
p { margin: 0; }

/* =========================================================
   AMBIENT — noise, cursor glow, orbs, grid
   ========================================================= */
.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    opacity: .036;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
    pointer-events: none;
    position: fixed;
    z-index: 7;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    opacity: 0;
    background: radial-gradient(circle, rgba(139, 184, 255, .14), transparent 68%);
    filter: blur(10px);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    transition: opacity .24s ease;
}

.ambient {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(64px);
}

.orb-a { left: -10rem; top: 7rem; width: 34rem; height: 34rem; background: #5865f226; }
.orb-b { right: -12rem; top: 0; width: 38rem; height: 38rem; background: #8bb8ff1c; }
.orb-one { left: -12rem; top: 8rem; width: 36rem; height: 36rem; background: #5865f224; filter: blur(70px); }
.orb-two { right: -12rem; top: 0; width: 38rem; height: 38rem; background: #8bb8ff1c; filter: blur(70px); }

.grid-layer {
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 72px 72px;
}

.archive-grid {
    position: absolute;
    inset: 0;
    opacity: .14;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 74px 74px;
}

/* =========================================================
   UTILITIES
   ========================================================= */
.glass {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff15, #ffffff08);
    box-shadow: inset 0 1px #ffffff14, 0 30px 90px #0000006b;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.section-shell {
    width: var(--shell);
    margin-inline: auto;
}

.hairline {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(10px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition:
        opacity .76s cubic-bezier(.22, 1, .36, 1),
        transform .76s cubic-bezier(.22, 1, .36, 1),
        filter .76s cubic-bezier(.22, 1, .36, 1);
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    border-bottom: 0;
    background: linear-gradient(180deg, #050506cc, #05050600);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Push site header below the WP admin bar when logged in */
.admin-bar .site-header { top: 32px; }

@media screen and (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 72px, 1760px);
    height: 86px;
    margin-inline: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: #ffffffe6;
    font-family: var(--mono);
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .22em;
}

.brand::before {
    content: "";
    width: .36rem;
    height: .36rem;
    border-radius: 999px;
    background: var(--violet);
    box-shadow: 0 0 18px #5865f2e6;
}

.nav-links {
    display: flex;
    gap: 3.4rem;
    color: #ffffff8c;
    font-size: .92rem;
}

.nav-links ul {
    display: flex;
    align-items: center;
    gap: 3.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li { list-style: none; }

.nav-links a {
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, color .18s ease;
    position: relative;
}

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

.nav-links a.is-active,
.nav-links li.current-menu-item a,
.nav-links li.current_page_item a {
    color: #fff;
    position: relative;
}

.nav-links a.is-active::after,
.nav-links li.current-menu-item a::after,
.nav-links li.current_page_item a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1rem;
    width: .34rem;
    height: .34rem;
    border-radius: 999px;
    background: var(--violet);
    box-shadow: 0 0 16px #5865f2cc;
    transform: translate(-50%);
}

.nav-status {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .55rem .8rem;
    background: #ffffff0e;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    color: #ffffffc7;
    font-size: .9rem;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.nav-status span {
    width: .42rem;
    height: .42rem;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 18px #8ff0c4d9;
}

.mobile-menu-button {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff0e;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    cursor: pointer;
}

.mobile-menu-button span {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffffdb;
    transition: top .18s ease, transform .18s ease;
}

.mobile-menu-button span:first-child { top: 16px; }
.mobile-menu-button span:last-child  { top: 25px; }

.mobile-menu-button.is-open span:first-child { top: 21px; transform: rotate(45deg); }
.mobile-menu-button.is-open span:last-child  { top: 21px; transform: rotate(-45deg); }

.mobile-nav {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    display: none;
    padding: 5.8rem 1rem 1rem;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(88, 101, 242, .24), transparent 28rem),
        #050506d1;
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    transition: opacity .18s ease;
}

.mobile-nav.is-open {
    pointer-events: auto;
    opacity: 1;
}

.mobile-nav-panel {
    display: grid;
    gap: .7rem;
    width: min(100%, 520px);
    margin-inline: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .75rem;
    background: linear-gradient(180deg, #ffffff17, #ffffff09);
    box-shadow: 0 30px 90px #00000075;
}

.mobile-nav-panel a,
.mobile-status {
    display: flex;
    align-items: center;
    min-height: 52px;
    border-radius: 8px;
    padding: .9rem 1rem;
    color: #ffffffc7;
    font-size: 1rem;
}

.mobile-nav-panel a.is-active,
.mobile-nav-panel li.current-menu-item a,
.mobile-nav-panel li.current_page_item a {
    background: #5865f229;
    color: #fff;
}

.mobile-nav-panel .menu { display: contents; }
.mobile-nav-panel .menu li { display: contents; }

.mobile-status {
    gap: .65rem;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #ffffff0e;
    color: #ffffffd6;
}

.mobile-status span {
    width: .42rem;
    height: .42rem;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 18px #8ff0c4d9;
}

main { position: relative; z-index: 2; }

/* =========================================================
   HOMEPAGE — ARCHIVE HERO
   ========================================================= */
.archive-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 9.6rem max(3.6vw, 2rem) 3rem;
    isolation: isolate;
}

.archive-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
        radial-gradient(circle at 68% 40%, rgba(29, 84, 156, .18), transparent 32rem),
        radial-gradient(circle at 22% 52%, rgba(77, 48, 147, .14), transparent 34rem),
        #030407;
}

.archive-hero::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 4;
    background:
        linear-gradient(90deg, #030407f5, #030407bd 24%, #03040714 52%, #03040773),
        linear-gradient(180deg, rgba(3, 4, 7, .14), transparent 58%, rgba(3, 4, 7, .78));
}

.portrait-backdrop {
    position: absolute;
    z-index: -2;
    inset: 0 0 auto auto;
    width: min(76vw, 1180px);
    height: 100vh;
    overflow: hidden;
    opacity: .78;
    mix-blend-mode: screen;
}

.portrait-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% 38%;
    filter: saturate(.7) contrast(1.12) brightness(.72) sepia(.06) hue-rotate(178deg);
    transform: scale(1.08);
    animation: portraitHomeDrift 14s ease-in-out infinite;
}

.portrait-backdrop::before,
.portrait-backdrop::after,
.portrait-scan,
.portrait-slice { content: ""; pointer-events: none; position: absolute; inset: 0; }

.portrait-backdrop::before {
    background:
        radial-gradient(circle at 50% 37%, transparent 20%, rgba(3, 4, 7, .16) 48%, rgba(3, 4, 7, .76) 82%),
        linear-gradient(90deg, rgba(139, 184, 255, .1), transparent 28%, rgba(88, 101, 242, .08));
}

.portrait-backdrop::after {
    opacity: .22;
    mix-blend-mode: screen;
    background:
        linear-gradient(90deg, transparent, rgba(139, 184, 255, .2), transparent),
        repeating-linear-gradient(90deg, transparent 0 80px, rgba(139, 184, 255, .08) 81px, transparent 82px);
}

.portrait-scan {
    opacity: .16;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 5px);
    animation: scanHome 8s linear infinite;
}

.portrait-slice { opacity: .24; mix-blend-mode: screen; }

.slice-a {
    clip-path: inset(20% 0 72% 0);
    background: linear-gradient(90deg, transparent, rgba(139, 184, 255, .36), transparent);
    animation: glitchHome 7s steps(1) infinite;
}

.slice-b {
    clip-path: inset(66% 0 26% 0);
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, .28), transparent);
    animation: glitchHome 9s steps(1) infinite reverse;
}

.hero-archive-grid {
    pointer-events: none;
    position: absolute;
    inset: 8rem 2.5rem 2rem auto;
    z-index: -1;
    width: 42vw;
    opacity: .22;
    background-image:
        radial-gradient(circle, rgba(139, 184, 255, .6) 1px, transparent 1px),
        linear-gradient(rgba(139, 184, 255, .11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 184, 255, .11) 1px, transparent 1px);
    background-size: 44px 44px, 180px 180px, 180px 180px;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 22%, black 82%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 22%, black 82%, transparent);
}

.archive-copy {
    position: relative;
    z-index: 8;
    max-width: 560px;
    margin-top: 8vh;
}

.archive-kicker {
    margin: 0;
    color: var(--violet);
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .42em;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(88, 101, 242, .5);
}

.archive-copy h1 {
    margin-top: 2.2rem;
    max-width: 620px;
    font-size: clamp(3.7rem, 5.4vw, 6.3rem);
    line-height: .98;
    letter-spacing: -.07em;
    color: #eef1faf0;
    text-wrap: balance;
    text-shadow: 0 18px 70px rgba(0, 0, 0, .5);
}

.archive-copy > p:not(.archive-kicker) {
    max-width: 470px;
    margin: 2rem 0 0;
    color: #c6cfe2ad;
    font-size: 1.05rem;
    line-height: 1.75;
}

.current-status { margin-top: 3.2rem; }

.current-status span {
    color: #c4cbe2a6;
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .35em;
    text-transform: uppercase;
}

.current-status p {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 1.2rem 0 0;
    color: #e0e5f1b8;
    font-size: 1rem;
}

.current-status i {
    width: .43rem;
    height: .43rem;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 18px #8ff0c4d9;
    flex-shrink: 0;
}

/* Operator log */
.operator-log {
    width: min(100%, 380px);
    margin-top: 2rem;
    margin-bottom: 3.5rem;
    overflow: hidden;
    border-radius: 9px;
    background: linear-gradient(180deg, #141926c7, #070a109e);
}

.operator-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: .8rem 1rem;
    color: #eaeef7ad;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.operator-top em,
.archive-card-head em {
    width: 28px;
    height: 4px;
    background: radial-gradient(circle, rgba(88, 101, 242, .75) 1px, transparent 2px);
    background-size: 9px 4px;
}

.operator-log pre {
    margin: 0;
    padding: 1.15rem 1.3rem 1.2rem;
    color: #97a6d3b8;
    font-family: var(--mono);
    font-size: .78rem;
    line-height: 1.75;
    white-space: pre-wrap;
}

/* Archive floating cards */
.archive-card {
    position: absolute;
    z-index: 9;
    width: 285px;
    overflow: hidden;
    border-radius: 9px;
    background: linear-gradient(180deg, #13192eb8, #070a119e);
}

.archive-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    padding: .9rem 1.1rem;
    color: #8bb8ff8f;
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stats-card { top: 28vh; right: 5.2vw; }

.stats-card dl {
    display: grid;
    gap: .8rem;
    margin: 0;
    padding: 1rem 1.1rem .7rem;
}

.stats-card dl div {
    display: flex;
    justify-content: space-between;
    color: #dee5f5b8;
    font-family: var(--mono);
    font-size: .75rem;
}

.stats-card dd {
    margin: 0;
    color: #8bb8ffc2;
}

.mini-chart {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 72px;
    margin: .45rem 1.1rem .8rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background:
        linear-gradient(rgba(88, 101, 242, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 101, 242, .08) 1px, transparent 1px);
    background-size: 18px 18px;
}

.mini-chart span {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #5865f2d1, #8bb8ff2e);
}
.mini-chart span:nth-child(1) { height: 22px; }
.mini-chart span:nth-child(2) { height: 31px; }
.mini-chart span:nth-child(3) { height: 28px; }
.mini-chart span:nth-child(4) { height: 42px; }
.mini-chart span:nth-child(5) { height: 36px; }
.mini-chart span:nth-child(6) { height: 56px; }
.mini-chart span:nth-child(7) { height: 44px; }

.stats-card small {
    display: block;
    padding: 0 1.1rem 1.1rem;
    color: #8bb8ff66;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stack-card { right: 5.2vw; bottom: 18vh; }

.stack-card ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .72rem;
    margin: 0;
    padding: 1.2rem 1.35rem 1.55rem;
    color: #dde4f6ad;
    font-family: var(--mono);
    font-size: .73rem;
    list-style: none;
}

.stack-light {
    position: absolute;
    right: 1.6rem;
    bottom: -.6rem;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(88, 101, 242, .95), rgba(139, 184, 255, .32) 34%, transparent 62%);
    filter: blur(2px);
    opacity: .72;
}

/* Hero coordinates footer */
.hero-coordinates {
    position: absolute;
    z-index: 9;
    left: 3.6vw;
    right: 3.6vw;
    bottom: 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    color: #d0d9f08c;
    font-family: var(--mono);
    font-size: .75rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero-coordinates i {
    height: 1px;
    background: linear-gradient(90deg, #d0d9f04d, #d0d9f014);
}

.hero-coordinates b {
    color: #5865f2cc;
    font-weight: 500;
    line-height: 1.8;
    text-align: right;
}

/* Hero title word animation */
.hero-title { perspective: 900px; }

.hero-title span {
    display: inline-block;
    transform-origin: 50% 72%;
    opacity: 0;
    filter: blur(14px);
    will-change: transform, opacity, filter;
    animation: titleWordIn .98s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: calc(.18s + var(--i) * 58ms);
}

/* =========================================================
   EXPERIENCE PAGE
   ========================================================= */
.page-experience main,
.page-expertise main,
.page-contact main { position: relative; z-index: 2; }

/* Experience hero */
.experience-hero {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    align-items: center;
    gap: 4.5rem;
    min-height: 100vh;
    padding-top: 7.4rem;
    padding-bottom: 5rem;
}

.portrait-stage { position: relative; min-height: 660px; }

.portrait-frame {
    position: relative;
    overflow: hidden;
    height: min(72vh, 680px);
    min-height: 560px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: #080b12;
    box-shadow: 0 40px 120px #0000008c;
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.035);
    animation: portraitDrift 12s ease-in-out infinite;
}

.portrait-vignette,
.scanlines,
.glitch-band { pointer-events: none; position: absolute; inset: 0; }

.portrait-vignette {
    background:
        radial-gradient(circle at 50% 35%, transparent 28%, rgba(0, 0, 0, .28) 70%),
        linear-gradient(180deg, #8bb8ff14, #0000008c);
    mix-blend-mode: multiply;
}

.scanlines {
    opacity: .16;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 5px);
    animation: scanMove 8s linear infinite;
}

.glitch-band { opacity: .22; mix-blend-mode: screen; }

.band-a {
    clip-path: inset(22% 0 70% 0);
    background: linear-gradient(90deg, transparent, rgba(139, 184, 255, .3), transparent);
    animation: glitchSoft 7s steps(1) infinite;
}

.band-b {
    clip-path: inset(68% 0 24% 0);
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, .22), transparent);
    animation: glitchSoft 9s steps(1) infinite reverse;
}

.portrait-meta {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 12px;
    padding: .9rem 1rem;
    color: #ffffff8f;
    font-family: var(--mono);
    font-size: .72rem;
}

.portrait-meta strong { color: #ffffffc7; font-weight: 500; }

/* Eyebrow */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .48rem .72rem;
    background: #ffffff0e;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    margin: 0;
    color: #8bb8ffb8;
    font-family: var(--mono);
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow span {
    width: .42rem;
    height: .42rem;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 18px #8ff0c4d9;
}

/* Hero copy (experience page) */
.hero-copy h1 {
    max-width: 800px;
    margin-top: 1.5rem;
    font-size: clamp(3.3rem, 7.2vw, 7rem);
    line-height: .98;
    letter-spacing: -.06em;
    text-wrap: balance;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 720px;
    margin: 1.8rem 0 0;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.8;
}

.hero-log {
    display: grid;
    gap: .4rem;
    max-width: 520px;
    margin-top: 2.5rem;
    border-radius: 12px;
    padding: 1rem;
    font-family: var(--mono);
}

.hero-log span { color: #ffffff5c; font-size: .72rem; }
.hero-log code { color: #ffffffad; font-family: inherit; font-size: .82rem; }

/* Section kicker */
.section-kicker {
    margin: 0;
    color: #5865f2b8;
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.section-heading { margin-bottom: 4rem; }

.section-heading h2,
.about h2 {
    max-width: 780px;
    margin-top: 1rem;
    font-size: clamp(2.2rem, 4.5vw, 4.5rem);
    line-height: 1.04;
    text-wrap: balance;
}

/* Archive (experience list) */
.archive { padding: 7rem 0; }

/* Timeline — vertical (mobile-first) */
.timeline {
    position: relative;
    display: grid;
    gap: 1.3rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 202px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(139, 184, 255, .34), rgba(88, 101, 242, .2), transparent);
}

.log-entry {
    position: relative;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
}

.timeline time {
    padding-top: 1.15rem;
    color: #ffffff75;
    font-family: var(--mono);
    font-size: .82rem;
}

.log-entry::before {
    content: "";
    position: absolute;
    left: 197px;
    top: 1.55rem;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 24px #8bb8ffa6;
}

.log-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 1.35rem;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.log-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(139, 184, 255, .12), transparent 30%);
    transition: opacity .18s ease;
}

.log-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.log-card:hover::before { opacity: 1; }
.log-card > * { position: relative; }

.log-index { color: #ffffff57; font-family: var(--mono); font-size: .72rem; }

.log-card h3 {
    margin-top: 1.4rem;
    font-size: clamp(1.45rem, 2.8vw, 2.45rem);
    line-height: 1.08;
}

.log-card h4 {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: .75rem 0 0;
    color: #bed3ff9e;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.log-card h4 span { color: #ffffff61; font-weight: 500; }

.log-card p {
    max-width: 760px;
    margin: 1.3rem 0 0;
    color: #ffffff94;
    line-height: 1.75;
}

/* Skills cloud */
.skills { padding: 7rem 0; background: #ffffff06; }

.skill-cloud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .85rem;
}

.skill-cloud span {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, #ffffff13, #ffffff07);
    color: #ffffffb3;
    box-shadow: 0 20px 70px #00000038;
    transition: transform .18s ease, border-color .18s ease;
}

.skill-cloud span:hover { transform: translateY(-7px) scale(1.015); border-color: rgba(255,255,255,.22); }

/* =========================================================
   EXPERIENCE — SINGLE FILE VIEW
   ========================================================= */
.page-exp-entry {
    position: relative;
    z-index: 2;
    padding: 8.5rem 0 7rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Back link */
.exp-file-back {
    display: block;
    font-family: var(--mono);
    font-size: .72rem;
    color: #ffffff38;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .18s ease, letter-spacing .18s ease;
}
.exp-file-back:hover { color: var(--blue); letter-spacing: .14em; }

/* File window */
.exp-file-window {
    border-radius: 18px;
    overflow: hidden;
}

/* Window chrome bar */
.exp-file-chrome {
    display: flex;
    align-items: center;
    gap: .48rem;
    height: 2.9rem;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #0a0d16e6, #080a108c);
}

.chrome-dot {
    width: .58rem;
    height: .58rem;
    border-radius: 999px;
    flex-shrink: 0;
}
.dot-red    { background: #ff6969b8; }
.dot-yellow { background: #ffdc6eb8; }
.dot-green  { background: #8ff0c4b8; }

.chrome-path {
    margin-left: .75rem;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ffffff4a;
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* File layout: sidebar | main */
.exp-file-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 480px;
}

/* Sidebar */
.exp-file-sidebar {
    border-right: 1px solid var(--line);
    padding: 2rem 1.5rem;
    background: rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.exp-file-sidebar-divider {
    height: 1px;
    background: var(--line);
}

.exp-file-meta { display: flex; flex-direction: column; gap: .28rem; }

.meta-key {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #ffffff28;
}

.meta-val {
    font-family: var(--mono);
    font-size: .8rem;
    color: #ffffffb8;
    line-height: 1.5;
}

.meta-val.status-active   { color: var(--green); text-shadow: 0 0 14px #8ff0c47a; }
.meta-val.status-archived { color: #ffffff3a; }

/* Main content area */
.exp-file-main {
    padding: 2.75rem 3.25rem 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exp-file-breadcrumb {
    font-family: var(--mono);
    font-size: .68rem;
    color: #ffffff28;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.exp-file-subline {
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--violet);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}

.exp-file-title {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.02;
    margin: 0 0 2rem;
    text-wrap: balance;
}

.exp-file-summary {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.78;
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
}

.exp-file-body { max-width: 780px; }

.exp-file-empty {
    font-family: var(--mono);
    font-size: .875rem;
    color: #ffffff28;
    margin-top: 1rem;
}

.exp-file-empty span { color: var(--violet); }

/* ── Log card link state ── */
.log-card--link { text-decoration: none; color: inherit; display: block; }
.log-card--link:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); }

.log-card__cta {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--blue);
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: letter-spacing .18s ease;
}

.log-card--link:hover .log-card__cta { letter-spacing: .13em; }

/* ── Experience entry navigation ── */
.exp-entry-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.exp-entry-nav__prev,
.exp-entry-nav__next {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff0e, #ffffff06);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.exp-entry-nav__prev:hover,
.exp-entry-nav__next:hover {
    border-color: rgba(255, 255, 255, .2);
    background: linear-gradient(180deg, #ffffff14, #ffffff09);
    transform: translateY(-2px);
}
.exp-entry-nav__next { text-align: right; }

.exp-entry-nav__dir {
    font-family: var(--mono);
    font-size: .65rem;
    color: #ffffff28;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.exp-entry-nav__title {
    font-size: .92rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -.015em;
    line-height: 1.3;
}

.exp-entry-nav__back {
    text-align: center;
    font-family: var(--mono);
    font-size: .7rem;
    color: #ffffff2a;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .18s ease;
}
.exp-entry-nav__back:hover { color: var(--blue); }

/* Responsive */
@media (max-width: 980px) {
    .exp-file-layout { grid-template-columns: 1fr; }

    .exp-file-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--line);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem 2.5rem;
        padding: 1.25rem 1.75rem;
    }

    .exp-file-sidebar-divider { display: none; }

    .exp-file-meta { flex-direction: row; align-items: baseline; gap: .65rem; }
    .meta-key { min-width: 56px; }

    .exp-entry-nav { grid-template-columns: 1fr 1fr; }
    .exp-entry-nav__back { display: none; }
}

@media (max-width: 700px) {
    .page-exp-entry { padding-top: 7rem; }
    .exp-file-main { padding: 1.75rem; }
    .exp-file-title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    .exp-entry-nav { grid-template-columns: 1fr; }
    .exp-entry-nav__next { text-align: left; }
    .exp-entry-nav__back { display: block; grid-row: 3; text-align: left; }
}

/* Detailed Record */
.exp-record { padding: 7rem 0; background: #ffffff04; }

.exp-record-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exp-record-entry {
    border-radius: 16px;
    padding: 2.5rem 3rem;
    transition: border-color .18s ease;
}

.exp-record-entry:hover { border-color: rgba(255, 255, 255, .18); }

.exp-record-entry__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.exp-record-entry__title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.03em;
}

.exp-record-entry__subline {
    margin-top: .35rem;
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--violet);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.exp-record-entry__summary {
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.exp-record-entry__content { max-width: 820px; }

@media (max-width: 700px) {
    .exp-record-entry { padding: 1.75rem; }
    .exp-record-entry__head { flex-direction: column; gap: .5rem; }
}

/* About */
.about { padding: 7rem 0; }

.about-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    border-radius: 18px;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.about-panel h2 { max-width: 820px; }

.about-copy p {
    margin: 0 0 1.3rem;
    color: rgba(255,255,255,.6);
    font-size: 1.03rem;
    line-height: 1.85;
}

.about-copy p:last-child { margin-bottom: 0; }

/* =========================================================
   EXPERTISE PAGE
   ========================================================= */
.expertise-page-section { padding-top: 9.5rem; }

.expertise-page-section h1 {
    max-width: 860px;
    margin-top: 1rem;
    font-size: clamp(2.7rem, 5.7vw, 5.45rem);
    line-height: 1.02;
    text-wrap: balance;
}

.page-intro {
    max-width: 760px;
    margin: 1.4rem 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.expertise-section { padding: 7rem 0 0; background: #ffffff06; }

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3.4rem;
}

.expertise-card {
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem;
    background: linear-gradient(180deg, #ffffff13, #ffffff07);
    box-shadow: 0 24px 80px #00000047;
    transition: transform .18s ease, border-color .18s ease;
}

.expertise-card:hover { transform: translateY(-7px); border-color: rgba(255,255,255,.18); }

.expertise-card > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 2rem;
    border-radius: 10px;
    background: #ffffff17;
    color: var(--blue);
    font-family: var(--mono);
    font-size: .72rem;
}

.expertise-card h3 { font-size: 1.05rem; letter-spacing: -.02em; }

.expertise-card p {
    margin: .85rem 0 0;
    color: #ffffff85;
    font-size: .92rem;
    line-height: 1.65;
}

/* Philosophy */
.philosophy {
    position: relative;
    padding: 6rem 0;
}

.philosophy::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
}

.philosophy-panel {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #0000004d;
    padding: 2rem;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: relative;
}

.philosophy-panel h2 { margin-top: 1rem; font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: 1.05; }

.principles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

.principles span {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1rem 1rem 2.2rem;
    background: #ffffff09;
    color: #ffffffbf;
}

.principles span::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1.42rem;
    width: .45rem;
    height: .45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.page-section { padding-top: 9.5rem; }

.availability { padding: 5rem 0; }

.availability-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.availability-grid article {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff0a;
    padding: 1rem;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: transform .18s ease, border-color .18s ease;
}

.availability-grid article:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.18); }

.availability-grid small {
    color: #ffffff57;
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.availability-grid p {
    margin: 1.5rem 0 0;
    color: #ffffffad;
    font-size: .9rem;
    line-height: 1.6;
}

.contact-section { padding: 7rem 0; }

.contact-panel {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: clamp(2rem, 6vw, 4rem);
}

.contact-glow {
    position: absolute;
    right: -10rem;
    top: -12rem;
    width: 30rem;
    height: 30rem;
    border-radius: 999px;
    background: #5865f229;
    filter: blur(70px);
}

.contact-content { position: relative; max-width: 820px; }

.contact-section h2 {
    margin-top: 1.5rem;
    font-size: clamp(2.3rem, 5vw, 5.4rem);
    line-height: 1.04;
}

.contact-section p {
    max-width: 660px;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 2.4rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 46px;
    border-radius: 8px;
    padding: .85rem 1.05rem;
    font-size: .94rem;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover { transform: translateY(-2px); }

.button.primary { background: #fff; color: #050506; }
.button.primary:hover { background: #dbe9ff; }

.button.secondary {
    border: 1px solid var(--line);
    background: #ffffff0e;
    color: #ffffffd6;
}

.button.secondary:hover { border-color: rgba(255,255,255,.24); background: #ffffff17; }

/* =========================================================
   HORIZONTAL TIMELINE SCROLL (desktop)
   ========================================================= */
@media (min-width: 981px) {
    .timeline-scroll-section {
        --timeline-distance: 0px;
        --timeline-progress: 0;
        min-height: calc(100vh + var(--timeline-distance));
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .timeline-sticky {
        position: sticky;
        top: 66px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: calc(100vh - 66px);
        overflow: hidden;
        padding: 3rem 0;
    }

    .timeline-track-wrap {
        position: relative;
        width: 100%;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .105);
        border-radius: 18px;
        padding: 3.6rem clamp(1rem, 8vw, 7rem) 1.4rem;
        background:
            linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px),
            linear-gradient(180deg, #ffffff13, #ffffff07);
        background-size: 54px 54px, 54px 54px, auto;
        box-shadow: inset 0 1px #ffffff14, 0 34px 100px #0000006b;
        -webkit-backdrop-filter: blur(22px);
        backdrop-filter: blur(22px);
    }

    .timeline-track-wrap::before,
    .timeline-track-wrap::after {
        content: "";
        pointer-events: none;
        position: absolute;
        top: 2.9rem;
        bottom: 0;
        z-index: 6;
        width: clamp(4rem, 13vw, 12rem);
    }

    .timeline-track-wrap::before {
        left: 0;
        background: linear-gradient(90deg, rgba(4,5,7,.96), rgba(4,5,7,.68) 36%, transparent);
    }

    .timeline-track-wrap::after {
        right: 0;
        background: linear-gradient(270deg, rgba(4,5,7,.96), rgba(4,5,7,.68) 36%, transparent);
    }

    .timeline-window-chrome {
        position: absolute;
        inset: 0 0 auto;
        z-index: 7;
        display: flex;
        align-items: center;
        gap: .45rem;
        height: 2.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        padding: 0 1rem;
        background: linear-gradient(180deg, #080a10e6, #080a108f);
        color: #ffffff61;
        font-family: var(--mono);
        font-size: .68rem;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

    .timeline-window-chrome span {
        width: .55rem;
        height: .55rem;
        border-radius: 999px;
        background: #ffffff47;
    }

    .timeline-window-chrome span:first-child { background: #ff6969b8; }
    .timeline-window-chrome span:nth-child(2) { background: #ffdc6eb8; }
    .timeline-window-chrome span:nth-child(3) { background: #8ff0c4b8; }

    .timeline-window-chrome em {
        margin-left: auto;
        color: #8bb8ff8c;
        font-style: normal;
    }

    .timeline {
        display: flex;
        width: max-content;
        gap: clamp(1rem, 2vw, 1.6rem);
        padding: 2.2rem 0 1rem;
        transform: translate3d(calc(var(--timeline-progress) * var(--timeline-distance) * -1), 0, 0);
        will-change: transform;
    }

    .timeline::before {
        left: 0;
        right: 0;
        top: 4.15rem;
        bottom: auto;
        width: auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(139,184,255,.34), rgba(88,101,242,.28), transparent);
    }

    .log-entry {
        display: grid;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 1rem;
        width: clamp(560px, 62vw, 760px);
    }

    .timeline time {
        min-height: 2rem;
        padding: 0 0 0 1.05rem;
    }

    .log-entry::before { left: 1rem; top: 3.72rem; }

    .log-card { min-height: 340px; height: 100%; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes titleWordIn {
    0%   { opacity: 0; transform: translateY(34px) translateZ(80px) scale(1.38) rotateX(18deg); filter: blur(18px); }
    58%  { opacity: 1; transform: translateY(-4px) translateZ(0) scale(1.03) rotateX(0); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) translateZ(0) scale(1) rotateX(0); filter: blur(0); }
}

@keyframes portraitHomeDrift {
    0%, 100% { transform: scale(1.08) translateY(0); }
    50%       { transform: scale(1.105) translateY(-10px); }
}

@keyframes portraitDrift {
    0%, 100% { transform: scale(1.035) translateY(0); }
    50%       { transform: scale(1.055) translateY(-8px); }
}

@keyframes scanHome {
    0%   { transform: translateY(0); }
    100% { transform: translateY(24px); }
}

@keyframes scanMove {
    0%   { transform: translateY(0); }
    100% { transform: translateY(24px); }
}

@keyframes glitchHome {
    0%, 88%, 100% { transform: translate(0); opacity: .08; }
    90%  { transform: translate(-12px); opacity: .28; }
    91%  { transform: translate(9px); opacity: .2; }
    92%  { transform: translate(0); opacity: .08; }
}

@keyframes glitchSoft {
    0%, 88%, 100% { transform: translate(0); opacity: .08; }
    90%  { transform: translate(-10px); opacity: .24; }
    91%  { transform: translate(8px); opacity: .18; }
    92%  { transform: translate(0); opacity: .08; }
}

@keyframes fillBar {
    0%   { width: 0; }
    100% { width: var(--w); }
}

@keyframes floatA {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

@keyframes floatB {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(14px); }
}

@keyframes floatC {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
    .nav-links, .nav-status { display: none; }
    .mobile-menu-button, .mobile-nav { display: block; }
    .nav-shell { width: min(100% - 32px, 1180px); }

    .archive-hero { min-height: auto; padding: 7.5rem 1rem 3rem; }
    .archive-hero::after {
        background:
            linear-gradient(180deg, #03040740, #030407a3 48%, #030407eb),
            linear-gradient(90deg, #030407e6, #03040747);
    }
    .portrait-backdrop { inset: 0 0 auto; width: 100%; height: 62vh; opacity: .5; }
    .portrait-backdrop img { object-position: center top; }
    .archive-copy { max-width: 700px; margin-top: 40vh; }
    .archive-copy h1 { font-size: clamp(3rem, 10vw, 5.8rem); }
    .stats-card, .stack-card {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: 520px;
        margin-top: 1rem;
        margin-left: 0;
    }
    .stats-card { margin-top: 2rem; }
    .hero-coordinates {
        position: relative;
        left: auto; right: auto; bottom: auto;
        grid-template-columns: 1fr;
        gap: .9rem;
        margin-top: 4rem;
    }
    .hero-coordinates i { display: none; }
    .hero-coordinates b { text-align: left; }

    .experience-hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 8rem; }
    .portrait-stage { min-height: auto; }
    .portrait-frame { height: 560px; min-height: 0; }

    .expertise-grid, .availability-grid { grid-template-columns: repeat(2, 1fr); }
    .philosophy-panel { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .nav-shell { width: min(100% - 28px, 1180px); }
    .brand { font-size: .72rem; }
    .mobile-menu-button { width: 42px; height: 42px; }
    .mobile-nav-panel a, .mobile-status { font-size: .96rem; }

    .archive-hero { padding-top: 6.8rem; }
    .portrait-backdrop { height: 54vh; }
    .archive-copy { margin-top: 34vh; }
    .archive-kicker { letter-spacing: .28em; }
    .archive-copy h1 { font-size: clamp(2.8rem, 15vw, 4.7rem); }
    .archive-copy > p:not(.archive-kicker) { font-size: 1rem; }
    .operator-log { width: 100%; }

    .hero-copy h1 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
    .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
    .portrait-frame { height: 480px; }
    .portrait-meta { display: grid; }

    .archive, .skills, .about { padding: 5rem 0; }
    .timeline::before, .log-entry::before { display: none; }
    .log-entry { grid-template-columns: 1fr; gap: .75rem; }
    .timeline time { padding-top: 0; }

    .expertise-grid, .availability-grid, .principles { grid-template-columns: 1fr; }

    .actions { flex-direction: column; }
    .button { width: 100%; }
    .contact-section { padding: 5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   LANDING PAGE
   ========================================================= */
.lp-body {
    background:
        radial-gradient(circle at 18% 0%, rgba(85, 87, 255, .2), transparent 34rem),
        radial-gradient(circle at 92% 8%, rgba(0, 137, 255, .14), transparent 30rem),
        linear-gradient(180deg, #050506, #080910 45%, #050506);
}

.lp-shell {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
}

/* Minimal nav */
.lp-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    background: linear-gradient(180deg, #050506cc, #05050600);
}

.lp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 72px, 1760px);
    height: 86px;
    margin-inline: auto;
}

.lp-main { position: relative; z-index: 2; }

/* Hero */
.lp-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 10.5rem max(3.6vw, 2rem) 5rem;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
        radial-gradient(circle at 68% 40%, rgba(29, 84, 156, .18), transparent 32rem),
        radial-gradient(circle at 22% 52%, rgba(77, 48, 147, .14), transparent 34rem),
        #030407;
}

.lp-hero::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 4;
    background:
        linear-gradient(90deg, #030407f5, #030407bd 24%, #03040714 52%, #03040773),
        linear-gradient(180deg, rgba(3, 4, 7, .14), transparent 58%, rgba(3, 4, 7, .78));
}

.lp-portrait-wrap {
    position: absolute;
    z-index: -2;
    inset: 0 0 auto auto;
    width: min(74vw, 1100px);
    height: 100%;
    overflow: hidden;
    opacity: .72;
    mix-blend-mode: screen;
}

.lp-portrait-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% 30%;
    filter: saturate(.6) contrast(1.1) brightness(.68) sepia(.06) hue-rotate(178deg);
    transform: scale(1.06);
    animation: portraitHomeDrift 14s ease-in-out infinite;
}

.lp-portrait-wrap::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 37%, transparent 20%, rgba(3, 4, 7, .18) 48%, rgba(3, 4, 7, .8) 82%),
        linear-gradient(90deg, rgba(139, 184, 255, .08), transparent 28%);
}

/* Hero copy */
.lp-hero-copy {
    position: relative;
    z-index: 8;
    max-width: 600px;
}

.lp-kicker {
    margin: 0 0 1.6rem;
    color: var(--violet);
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .42em;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(88, 101, 242, .5);
}

.lp-headline {
    font-size: clamp(3.2rem, 5.2vw, 6rem);
    line-height: .98;
    letter-spacing: -.07em;
    color: #eef1faf0;
    text-wrap: balance;
    text-shadow: 0 18px 70px rgba(0, 0, 0, .5);
    margin: 0 0 1.8rem;
}

.lp-subtext {
    max-width: 480px;
    margin: 0 0 2.4rem;
    color: #c6cfe2b8;
    font-size: 1.06rem;
    line-height: 1.78;
}

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.lp-cta-primary { min-width: 180px; }

/* Stats strip */
.lp-stats {
    position: relative;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 4rem;
    padding: 1.25rem 1.6rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    max-width: 560px;
}

.lp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: .2rem;
}

.lp-stat strong {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.05em;
    color: var(--text);
    line-height: 1;
}

.lp-stat span {
    font-family: var(--mono);
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #ffffff57;
    text-align: center;
}

.lp-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--line);
    flex-shrink: 0;
    margin-inline: .5rem;
}

/* Sections */
.lp-section {
    padding: 7rem 0;
}

.lp-section-head {
    margin-bottom: 2.5rem;
}

.lp-section-head h2 {
    max-width: 640px;
    margin-top: .75rem;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -.04em;
    text-wrap: balance;
}

/* Project cards */
.lp-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.lp-project-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease;
}

.lp-project-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.2); }

.lp-project-card__thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.lp-project-card__body {
    padding: 1.5rem 1.6rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .65rem;
}

.lp-project-card__meta { display: flex; gap: .5rem; flex-wrap: wrap; }

.lp-project-card__body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.lp-project-card__client { font-size: .875rem; color: var(--muted); }

.lp-project-card__excerpt { font-size: .875rem; color: var(--muted); line-height: 1.65; flex: 1; }

.lp-project-card__stack { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }

/* Experience cards */
.lp-exp-list { display: flex; flex-direction: column; gap: 1rem; }

.lp-exp-card {
    border-radius: 14px;
    padding: 1.75rem 2rem;
    transition: transform .18s ease, border-color .18s ease;
}

.lp-exp-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.2); }

.lp-exp-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: .75rem;
}

.lp-exp-card__role {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

.lp-exp-card__company {
    margin-top: .25rem;
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.lp-exp-card__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .3rem;
    flex-shrink: 0;
}

.lp-exp-card__location {
    font-family: var(--mono);
    font-size: .7rem;
    color: #ffffff38;
}

.lp-exp-card__excerpt { font-size: .94rem; color: var(--muted); line-height: 1.7; }

.lp-exp-card__achievements {
    margin-top: .75rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    list-style: none;
    padding: 0;
}

.lp-exp-card__achievements li {
    font-size: .875rem;
    color: var(--muted);
    padding-left: 1.2rem;
    position: relative;
}

.lp-exp-card__achievements li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--violet);
    font-family: var(--mono);
}

/* Closing CTA */
.lp-cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

@media (max-width: 820px) {
    .lp-cta-split { grid-template-columns: 1fr; }
}

.lp-cta-block {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.lp-cta-content { position: relative; max-width: 760px; }

.lp-cta-content h2 {
    margin-top: 1.2rem;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.06;
    letter-spacing: -.05em;
}

.lp-cta-content p {
    max-width: 520px;
    margin: 1rem 0 1.8rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* Editor content section */
.lp-editor-content { padding: 4rem 0 7rem; }
.lp-editor-content .post-content { margin-inline: 0; }

/* Footer */
.lp-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
}

.lp-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.lp-footer-left {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

/* Variant: minimal — no portrait backdrop */
.lp-variant--minimal .lp-hero::after {
    background: linear-gradient(180deg, #030407, transparent 40%, #030407e0);
}

/* Admin bar offset */
.admin-bar .lp-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .lp-header { top: 46px; } }

/* LP Responsive */
@media (max-width: 980px) {
    .lp-nav { width: min(100% - 32px, 1180px); }
    .lp-portrait-wrap { width: 100%; height: 60vh; opacity: .5; }
    .lp-portrait-wrap img { object-position: center top; }
    .lp-hero-copy { margin-top: 36vh; }
    .lp-project-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-exp-card__head { flex-direction: column; gap: .5rem; }
    .lp-exp-card__right { align-items: flex-start; }
}

@media (max-width: 700px) {
    .lp-nav { width: min(100% - 28px, 1180px); height: 72px; }
    .lp-hero { padding-top: 8.9rem; }
    .lp-hero-copy { margin-top: 30vh; }
    .lp-headline { font-size: clamp(2.6rem, 12vw, 4rem); }
    .lp-stats { flex-wrap: wrap; gap: 1rem; }
    .lp-stat-divider { display: none; }
    .lp-project-grid { grid-template-columns: 1fr; }
    .lp-actions { flex-direction: column; }
    .lp-actions .button { width: 100%; }
    .lp-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   LANDING PAGE — NEW SECTIONS
   Custom properties added:
     --lp-section-pad  : clamp(3rem, 5vw, 5rem)  — uniform vertical rhythm
     --lp-card-radius  : 14px                     — card corner radius
   All other colours reuse existing tokens:
     --bg --text --muted --line --blue --violet --green --sans --mono
   ========================================================= */

:root {
    --lp-section-pad: clamp(3rem, 5vw, 5rem);
    --lp-card-radius: 14px;
}

/* ── Shared section rhythm ──────────────────────────────── */
.lp-tools-section,
.lp-services-section,
.lp-process-section,
.lp-working-section,
.lp-case-study-section,
.lp-testimonials-section,
.lp-faq-section,
.lp-availability-section {
    padding: var(--lp-section-pad) 0;
}

/* ── Tools & Platforms ──────────────────────────────────── */
.lp-tools-section { padding: 2.5rem 0 3rem; }

.lp-tools-label {
    margin-bottom: .8rem;
}

.lp-tools-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.lp-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--muted);
    letter-spacing: .04em;
    transition: border-color .18s, color .18s, background .18s;
}

.lp-tool-badge:hover {
    border-color: rgba(255,255,255,.22);
    color: var(--text);
    background: rgba(255,255,255,.07);
}

.lp-tool-badge img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(.7);
}

/* ── Services ───────────────────────────────────────────── */
.lp-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.6rem);
    margin-top: clamp(1.5rem, 3vw, 2rem);
}

@media (max-width: 900px) {
    .lp-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .lp-services-grid { grid-template-columns: 1fr; }
}

.lp-service-card {
    padding: clamp(1.6rem, 3vw, 2.2rem);
    border-radius: var(--lp-card-radius);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform .2s ease, border-color .2s;
}

.lp-service-card:hover { transform: translateY(-4px); }

.lp-service-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.lp-service-title {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.lp-service-desc {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Process Steps ──────────────────────────────────────── */
.lp-process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: clamp(1.5rem, 3vw, 2rem);
    list-style: none;
    padding: 0;
    align-items: stretch;
}

.lp-process-step {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    position: relative;
    padding: 1.6rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--lp-card-radius);
    background: rgba(255,255,255,.03);
}

.lp-step-num {
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--blue);
    line-height: 1;
}

.lp-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.lp-step-desc {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

.lp-step-arrow { display: none; }

@media (max-width: 820px) {
    .lp-process-steps {
        grid-template-columns: 1fr;
        gap: .6rem;
    }
    .lp-process-step {
        flex-direction: row;
        padding: 1.1rem 1.2rem;
        align-items: flex-start;
        gap: 1rem;
    }
    .lp-step-num { min-width: 2.2rem; padding-top: .1rem; }
    .lp-step-body { flex: 1; }
}

/* ── Working With Me ────────────────────────────────────── */
.lp-working-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    margin-top: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

@media (max-width: 700px) {
    .lp-working-split { grid-template-columns: 1fr; }
}

.lp-working-desc p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    margin: 0 0 1em;
}

.lp-working-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.lp-perk-item {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    font-size: .96rem;
    color: var(--text);
    line-height: 1.5;
}

.lp-perk-check {
    color: var(--green);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: .05em;
}

/* ── Case Study ─────────────────────────────────────────── */
.lp-cs-card {
    border-radius: var(--lp-card-radius);
    padding: clamp(1.8rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.lp-cs-client {
    margin: 0;
}

.lp-cs-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 700px) {
    .lp-cs-columns { grid-template-columns: 1fr; }
}

.lp-cs-col h3 {
    font-size: .8rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--blue);
    margin: 0 0 .6rem;
    font-weight: 600;
}

.lp-cs-col p {
    font-size: .96rem;
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
}

.lp-cs-stats {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.lp-cs-stat {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.lp-cs-stat-value {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text);
    line-height: 1;
}

.lp-cs-stat-label {
    font-size: .78rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}

/* ── Testimonials ───────────────────────────────────────── */
.lp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.6rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 820px) {
    .lp-testimonials-grid { grid-template-columns: 1fr; }
}

.lp-testimonial-card {
    border-radius: var(--lp-card-radius);
    padding: clamp(1.4rem, 3vw, 2rem);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.lp-testimonial-quote {
    font-size: .98rem;
    color: var(--text);
    line-height: 1.75;
    margin: 0;
    font-style: italic;
}

.lp-testimonial-footer {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-top: auto;
}

.lp-testimonial-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
}

.lp-testimonial-meta {
    font-size: .78rem;
    font-family: var(--mono);
    color: var(--muted);
    letter-spacing: .04em;
}

/* ── FAQ (pure CSS <details> accordion) ─────────────────── */
.lp-faq-list {
    margin-top: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.lp-faq-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    overflow: hidden;
    transition: border-color .18s, background .18s;
}

.lp-faq-item[open],
.lp-faq-item:hover {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.05);
}

.lp-faq-question {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.4rem;
    font-size: .98rem;
    font-weight: 600;
    color: var(--text);
    user-select: none;
    gap: 1rem;
}

.lp-faq-question::-webkit-details-marker { display: none; }
.lp-faq-question::marker { display: none; }

.lp-faq-icon {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform .22s ease, border-color .18s;
}

.lp-faq-icon::before,
.lp-faq-icon::after {
    content: '';
    position: absolute;
    background: var(--text);
    border-radius: 2px;
    transition: transform .22s ease, opacity .18s;
}

.lp-faq-icon::before { width: .5rem; height: 1.5px; }
.lp-faq-icon::after  { width: 1.5px; height: .5rem; }

.lp-faq-item[open] .lp-faq-icon { border-color: var(--blue); transform: rotate(45deg); }
.lp-faq-item[open] .lp-faq-icon::before,
.lp-faq-item[open] .lp-faq-icon::after { background: var(--blue); }

.lp-faq-answer {
    padding: 0 1.4rem 1.1rem;
}

.lp-faq-answer p {
    font-size: .94rem;
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
}

/* ── Availability CTA ───────────────────────────────────── */
.lp-availability-section {
    background: linear-gradient(180deg, rgba(88,101,242,.06), transparent);
}

.lp-availability-inner {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.lp-availability-inner h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.045em;
    margin: 0;
}

.lp-availability-sub {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.lp-availability-cta { margin-top: .4rem; }

/* ── Sticky mobile CTA ──────────────────────────────────── */
#lp-sticky-cta {
    display: none;
    position: fixed;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    z-index: 50;
    background: var(--text);
    color: #050506;
    font-weight: 700;
    font-size: .92rem;
    padding: .75rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    white-space: nowrap;
}

#lp-sticky-cta.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 700px) {
    #lp-sticky-cta { display: block; }
}

/* =========================================================
   BLOG — LISTING (home.php / archive.php)
   ========================================================= */
.blog-header {
    padding: 9.6rem 0 5rem;
}

.blog-header h1 {
    max-width: 760px;
    margin-top: 1rem;
    font-size: clamp(3rem, 5.4vw, 5rem);
    line-height: .98;
    letter-spacing: -.06em;
    text-wrap: balance;
}

.blog-header p {
    max-width: 580px;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.posts-feed { padding-bottom: 8rem; }

/* Featured first post */
.entry-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: linear-gradient(180deg, #ffffff10, #ffffff07);
    transition: border-color .18s ease, transform .18s ease;
    text-decoration: none;
    color: inherit;
}

.entry-featured:hover {
    border-color: rgba(255, 255, 255, .2);
    transform: translateY(-4px);
}

.entry-featured--no-thumb {
    grid-template-columns: 1fr;
}

.entry-featured__thumb {
    overflow: hidden;
    min-height: 320px;
}

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

.entry-featured:hover .entry-featured__thumb img { transform: scale(1.04); }

.entry-featured__body {
    padding: 2.8rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.entry-featured--no-thumb .entry-featured__body {
    padding: 3rem 3.5rem;
    max-width: 760px;
}

/* Post cards grid */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.entry-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff13, #ffffff07);
    transition: border-color .18s ease, transform .18s ease;
    text-decoration: none;
    color: inherit;
}

.entry-card:hover {
    border-color: rgba(255, 255, 255, .2);
    transform: translateY(-5px);
}

.entry-card__thumb { overflow: hidden; }

.entry-card__thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.entry-card:hover .entry-card__thumb img { transform: scale(1.04); }

.entry-card__body {
    padding: 1.5rem 1.6rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .65rem;
}

/* Shared meta row */
.entry-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.entry-date {
    font-family: var(--mono);
    font-size: .72rem;
    color: #ffffff57;
    letter-spacing: .06em;
}

.entry-cat {
    display: inline-block;
    padding: .2rem .65rem;
    border: 1px solid rgba(88, 101, 242, .3);
    border-radius: 999px;
    background: rgba(88, 101, 242, .12);
    color: var(--violet);
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}

.entry-cat:hover {
    background: rgba(88, 101, 242, .22);
    border-color: rgba(88, 101, 242, .5);
}

.entry-readtime {
    font-family: var(--mono);
    font-size: .7rem;
    color: #ffffff38;
    letter-spacing: .04em;
}

/* Title */
.entry-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.025em;
    color: var(--text);
}

.entry-featured .entry-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -.04em;
    line-height: 1.1;
}

/* Excerpt */
.entry-excerpt {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.7;
    flex: 1;
}

.entry-featured .entry-excerpt {
    font-size: 1rem;
    max-width: 480px;
}

/* Read link */
.entry-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--blue);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: .5rem;
    transition: gap .18s ease, color .18s ease;
}

.entry-link:hover { gap: .7rem; color: #fff; }

/* Blog pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--line);
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding-inline: .7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--muted);
    background: #ffffff09;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    border-color: var(--violet);
    color: var(--text);
    background: rgba(88, 101, 242, .12);
}

.blog-pagination .page-numbers.current { pointer-events: none; }

/* Empty state */
.feed-empty {
    padding: 6rem 0;
    color: #ffffff38;
    font-family: var(--mono);
    font-size: .875rem;
    letter-spacing: .08em;
}

/* =========================================================
   BLOG — SINGLE POST
   ========================================================= */
.page-single-post {
    position: relative;
    z-index: 2;
}

/* Back link */
.post-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--mono);
    font-size: .78rem;
    color: #ffffff4a;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .18s ease, gap .18s ease;
}

.post-back:hover { color: var(--blue); gap: .75rem; }

/* Post header */
.post-header {
    padding-top: 9rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4rem;
}

.post-header__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.8rem;
}

.post-header__title {
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.05em;
    text-wrap: balance;
    margin-bottom: 1.6rem;
}

.post-header__excerpt {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.post-hero-img {
    margin-top: 3rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.post-hero-img img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    display: block;
    filter: brightness(.9) saturate(.9);
}

/* Post content — prose */
.post-content {
    max-width: 720px;
    font-size: 1.06rem;
    line-height: 1.82;
    color: rgba(247, 248, 251, .78);
}

.post-content > * + * { margin-top: 1.4em; }

.post-content h2 {
    margin-top: 2.8em;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.1;
    color: var(--text);
}

.post-content h3 {
    margin-top: 2.2em;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--text);
}

.post-content h4 {
    margin-top: 1.8em;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.post-content p { margin-top: 1.4em; }
.post-content p:first-child { margin-top: 0; }

.post-content a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: rgba(139, 184, 255, .3);
    transition: text-decoration-color .18s ease;
}

.post-content a:hover { text-decoration-color: var(--blue); }

.post-content strong { color: var(--text); font-weight: 700; }

.post-content em { color: rgba(247, 248, 251, .9); font-style: italic; }

.post-content ul,
.post-content ol {
    margin-top: 1.4em;
    padding-left: 1.5em;
}

.post-content ul { list-style: none; }
.post-content ul li { position: relative; padding-left: .3em; }
.post-content ul li::before {
    content: "—";
    position: absolute;
    left: -1.3em;
    color: var(--violet);
    font-family: var(--mono);
}

.post-content ol { list-style: decimal; }
.post-content ol li::marker { color: var(--violet); font-family: var(--mono); font-size: .9em; }

.post-content li + li { margin-top: .45em; }

.post-content blockquote {
    position: relative;
    border-left: 2px solid var(--violet);
    padding: 1rem 0 1rem 1.75rem;
    margin: 2em 0;
    color: rgba(247, 248, 251, .65);
    font-size: 1.08rem;
    font-style: italic;
}

.post-content blockquote p { margin-top: 0; }

.post-content code {
    font-family: var(--mono);
    font-size: .875em;
    padding: .2em .48em;
    border-radius: 5px;
    background: rgba(139, 184, 255, .1);
    border: 1px solid rgba(139, 184, 255, .15);
    color: var(--blue);
}

.post-content pre {
    margin: 2em 0;
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #0c0f1a, #080b12);
    overflow-x: auto;
    box-shadow: 0 20px 60px #00000052;
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #c6d8ff;
    font-size: .875rem;
    line-height: 1.75;
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line);
    margin-block: 1.5em;
    display: block;
}

.post-content figure {
    margin: 2em 0;
}

.post-content figcaption {
    margin-top: .75rem;
    font-family: var(--mono);
    font-size: .75rem;
    color: #ffffff38;
    letter-spacing: .06em;
    text-align: center;
}

.post-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
    margin: 3em 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    margin: 2em 0;
}

.post-content th,
.post-content td {
    padding: .65rem 1rem;
    border: 1px solid var(--line);
    text-align: left;
}

.post-content th {
    background: rgba(255, 255, 255, .05);
    font-family: var(--mono);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--blue);
}

/* Post footer — tags */
.post-footer {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.post-footer__label {
    font-family: var(--mono);
    font-size: .72rem;
    color: #ffffff38;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .85rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.post-tag {
    display: inline-block;
    padding: .3rem .8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff09;
    color: rgba(247, 248, 251, .5);
    font-family: var(--mono);
    font-size: .75rem;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.post-tag:hover {
    border-color: rgba(255, 255, 255, .2);
    color: var(--text);
    background: #ffffff14;
}

/* Post navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--line);
}

.post-nav__card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.4rem 1.6rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff0e, #ffffff06);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.post-nav__card:hover {
    border-color: rgba(255, 255, 255, .2);
    background: linear-gradient(180deg, #ffffff14, #ffffff0a);
    transform: translateY(-3px);
}

.post-nav__card--next { text-align: right; }

.post-nav__dir {
    font-family: var(--mono);
    font-size: .7rem;
    color: #ffffff38;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.post-nav__title {
    font-size: .96rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    letter-spacing: -.015em;
}

/* Archive header variant */
.archive-banner {
    padding: 9.6rem 0 4rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 5rem;
}

.archive-banner h1 {
    max-width: 680px;
    margin-top: 1rem;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.archive-banner p {
    max-width: 560px;
    margin: 1.2rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* =========================================================
   404 PAGE
   ========================================================= */
.page-404 {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 7rem 1.5rem 4rem;
}

.error-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.6rem;
    max-width: 640px;
    width: 100%;
}

.error-kicker {
    color: #ff6b6b99;
    letter-spacing: .4em;
}

.error-code {
    font-size: clamp(7rem, 22vw, 16rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.06em;
    background: linear-gradient(180deg, #ffffff22 0%, #ffffff06 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    user-select: none;
}

.error-sub {
    max-width: 400px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.error-log {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    background: linear-gradient(180deg, #141926c7, #070a109e);
    text-align: left;
}

.error-log pre {
    margin: 0;
    padding: 1.15rem 1.3rem 1.4rem;
    color: #97a6d3b8;
    font-family: var(--mono);
    font-size: .78rem;
    line-height: 1.9;
    white-space: pre-wrap;
}

.error-accent { color: #ff6b6ba8; }

/* =========================================================
   BLOG RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
    .entry-featured { grid-template-columns: 1fr; }
    .entry-featured__thumb { min-height: 260px; max-height: 320px; }
    .entry-grid { grid-template-columns: repeat(2, 1fr); }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav__card--next { text-align: left; }
}

@media (max-width: 700px) {
    .blog-header { padding: 8rem 0 3.5rem; }
    .entry-grid { grid-template-columns: 1fr; }
    .entry-featured__body { padding: 1.75rem; }
    .post-header { padding-top: 8rem; }
    .post-content { font-size: 1rem; }
    .post-content h2 { font-size: clamp(1.35rem, 6vw, 1.8rem); }
}
