@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/libre-baskerville/libre-baskerville-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/libre-baskerville/libre-baskerville-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Libre Baskerville';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/libre-baskerville/libre-baskerville-latin-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Libre Baskerville';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/libre-baskerville/libre-baskerville-latin-ext-italic.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #f0f0f0;
    --text: #0d0d0d;
    --sub: #6e6e6e;
    --dot: #000000;
    --cord: #333;
    --line: rgba(0, 0, 0, 0.12);
    --logo-opacity: 0.1;
    --logo-filter: grayscale(100%) blur(2px);
    --halo: rgba(0, 0, 0, 0.04);
    --halo-ring: rgba(0, 0, 0, 0.03);
}
body.dark-mode {
    --bg: #050505;
    --text: #f1f1f1;
    --sub: #888888;
    --dot: #ffffff;
    --cord: #555;
    --line: rgba(255, 255, 255, 0.14);
    --logo-opacity: 0.05;
    --logo-filter: grayscale(100%) invert(1) blur(1px);
    --halo: rgba(255, 255, 255, 0.035);
    --halo-ring: rgba(255, 255, 255, 0.025);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    -webkit-user-select: none; -moz-user-select: none;
    -ms-user-select: none; user-select: none;
}
html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}
body {
    width: 100%; min-height: 100%;
    font-family: 'Libre Baskerville', 'Times New Roman', serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background-color 3s, color 3s;
    cursor: none;
}
img {
    pointer-events: none;
    -webkit-user-drag: none;
}
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.halo {
    position: fixed; width: 120px; height: 120px;
    border-radius: 50%; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(circle, var(--halo) 0%, transparent 70%);
}
.halo.visible { opacity: 1; }
.halo::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--dot); transform: translate(-50%, -50%);
    opacity: 0.5;
}
.halo::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--halo-ring);
    transform: translate(-50%, -50%);
    animation: haloPulse 2.5s ease-in-out infinite;
}
@keyframes haloPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50%      { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.halo-wave {
    position: fixed; pointer-events: none; z-index: 9998;
    width: 10px; height: 10px; border-radius: 50%;
    border: 1.5px solid var(--dot);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}
.halo-wave.active {
    animation: haloWave 0.6s cubic-bezier(0, 0.55, 0.45, 1) forwards;
}
@keyframes haloWave {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.45; }
    100% { transform: translate(-50%, -50%) scale(12); opacity: 0; }
}

.spotlight {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 150vh;
    background: radial-gradient(circle 90vh at center 40vh, rgba(255,255,255,0.15) 0%, transparent 100%);
    opacity: 0; pointer-events: none; z-index: 0;
    transition: opacity 0.5s ease;
}
body:not(.dark-mode) .spotlight {
    background: radial-gradient(circle 90vh at center 40vh, rgba(255,255,255,0.8) 0%, transparent 100%);
}
.spotlight.active { opacity: 1; }

.container {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    min-height: 100vh; padding: 20px 20px 150px;
    text-align: center; position: relative; z-index: 1;
    cursor: none;
}
.scene {
    position: relative; width: 320px; height: 250px;
    display: flex; justify-content: center; align-items: flex-end;
    margin-bottom: 20px;
}

.stem {
    position: absolute; top: 0; left: 50%;
    width: 2px; height: 60px;
    background-color: var(--cord);
    transform-origin: top center;
    transform: translateX(-50%);
    z-index: 5;
    transition: opacity 0.6s ease;
}
.stem::after {
    content: ''; position: absolute; bottom: -6px; left: -3px;
    width: 8px; height: 8px; border-radius: 50%;
    background-color: var(--cord);
}
.stem.anim-trigger { animation: stemPull 2.5s ease-out forwards; }
.stem.soft { opacity: 0.35; }

.logo {
    max-width: 200px; height: auto;
    position: relative; z-index: 2;
    opacity: var(--logo-opacity);
    filter: var(--logo-filter);
    transition: opacity 0.6s ease, filter 0.6s ease;
}
.logo.lit { opacity: 1; filter: none; }
body.dark-mode .logo.lit { filter: grayscale(100%) invert(1); }
.logo.soft { opacity: 0.22 !important; filter: grayscale(100%) blur(3px) !important; }
body.dark-mode .logo.soft { opacity: 0.14 !important; filter: grayscale(100%) invert(1) blur(3px) !important; }

.ball {
    position: absolute; bottom: 30px; left: 50%;
    width: 15px; height: 15px;
    background-color: var(--dot);
    border-radius: 50%; z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    will-change: transform;
}

.ripple {
    position: absolute; bottom: 30px; left: 50%;
    width: 15px; height: 15px; border-radius: 50%;
    border: 1.5px solid var(--dot);
    transform: translate(-50%, 50%) scale(1);
    opacity: 0; pointer-events: none; z-index: 9;
}
.ripple.big   { animation: rippleBig   0.8s cubic-bezier(0, 0.55, 0.45, 1) forwards; }
.ripple.small { animation: rippleSmall 0.5s cubic-bezier(0, 0.55, 0.45, 1) forwards; }

.manifesto-wrap {
    position: relative; z-index: 3;
    min-height: 190px;
    display: flex; align-items: center; justify-content: center;
}
.manifesto {
    font-size: 1.5rem; line-height: 1.6; max-width: 600px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.6s;
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}
.manifesto span { display: block; margin-bottom: 15px; }
#text-sub { font-style: italic; color: var(--sub); }
.manifesto .descriptor {
    margin-bottom: 0; font-size: 0.7rem; letter-spacing: 0.18em;
    color: var(--sub); font-style: normal;
}
.manifesto.hide-out {
    opacity: 0 !important;
    transform: translateY(-14px);
    filter: blur(6px);
    pointer-events: none;
}
.manifesto-wrap.nudge-right { animation: nudgeRight 0.4s ease-out; }
.manifesto-wrap.nudge-left  { animation: nudgeLeft  0.4s ease-out; }
.manifesto-wrap.nudge-up    { animation: nudgeUp    0.35s ease-out; }

.skill-detail {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 0 10px;
    opacity: 0; pointer-events: none; z-index: 4;
    transition: opacity 0.4s ease;
}
.skill-detail.visible { opacity: 1; }
.detail-main {
    font-size: 1.35rem; line-height: 1.75; max-width: 620px;
}
.type-caret {
    display: inline-block; width: 2px; height: 1.05em;
    background: var(--text); margin-left: 3px;
    vertical-align: -0.12em; opacity: 0;
    transition: opacity 0.3s ease;
}
.type-caret.on { opacity: 1; animation: caretBlink 0.9s steps(1, end) infinite; }
@keyframes caretBlink {
    0%, 55%  { opacity: 1; }
    56%, 100% { opacity: 0; }
}
.detail-sub {
    margin-top: 16px; font-size: 1.02rem; font-style: italic;
    color: var(--sub); opacity: 0; transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.detail-sub.visible { opacity: 1; transform: translateY(0); }

.skills-row {
    display: flex; flex-wrap: wrap;
    justify-content: center; align-items: baseline;
    column-gap: 6px; row-gap: 8px;
    max-width: 680px; margin-top: 38px;
    position: relative; z-index: 3;
}
.skill-btn {
    background: none; border: none; cursor: none;
    font-family: inherit; font-size: 1.05rem;
    letter-spacing: 0.01em;
    color: var(--sub); padding: 2px 6px;
    opacity: 0; transform: translateY(14px);
    animation: skillIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: color 0.35s ease;
}
.skill-btn:nth-child(1) { animation-delay: 2.85s; }
.skill-btn:nth-child(2) { animation-delay: 2.97s; }
.skill-btn:nth-child(3) { animation-delay: 3.09s; }
.skill-btn:nth-child(4) { animation-delay: 3.21s; }
.skill-btn .skill-word { position: relative; display: inline-block; }
.skill-btn .skill-word::after {
    content: ''; position: absolute;
    left: 0; right: 0; bottom: -3px; height: 1px;
    background: var(--text);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.skill-btn:hover, .skill-btn.active, .skill-btn.tease { color: var(--text); }
.skill-btn:hover .skill-word::after,
.skill-btn.active .skill-word::after,
.skill-btn.tease .skill-word::after { transform: scaleX(1); transform-origin: left; }
.skill-comma { color: var(--sub); }

.skills-hint {
    margin-top: 16px; font-size: 0.72rem;
    letter-spacing: 0.1em; font-style: italic;
    color: var(--sub); opacity: 0;
    animation: fadeIn 1s ease forwards 3.7s;
    transition: opacity 0.6s ease;
    position: relative; z-index: 3;
}

.scroll-cue {
    position: absolute; bottom: 92px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    font-size: 0.66rem; letter-spacing: 0.18em; color: var(--sub);
    opacity: 0; animation: fadeIn 1s ease forwards 4.2s;
    z-index: 20; cursor: none;
    transition: color 0.3s ease;
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue::after {
    content: ''; width: 1px; height: 24px;
    background: var(--cord); transform-origin: top center;
    animation: cueGrow 2.4s ease-in-out infinite;
}
@keyframes cueGrow {
    0%   { transform: scaleY(0); opacity: 0; }
    25%  { opacity: 1; }
    70%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

.footer {
    position: absolute; bottom: 30px;
    display: flex; flex-direction: column;
    align-items: center; gap: 15px;
    opacity: 0; z-index: 20;
    animation: fadeIn 1s ease forwards 3s;
}
.copyright {
    font-size: 0.75rem; letter-spacing: 0.1em;
    color: var(--sub);
}
.copyright a {
    color: inherit; text-decoration: none;
    transition: color 0.3s; cursor: none;
}
.copyright a:hover {
    color: var(--text);
    text-decoration: underline;
}
.lang-selector { display: flex; gap: 15px; }

.lang-btn {
    background: none; border: none; cursor: none;
    color: var(--sub); font-size: 0.75rem;
    font-family: inherit;
    position: relative; padding: 2px 0;
    transition: color 0.3s ease;
}
.lang-btn::after {
    content: ''; position: absolute;
    bottom: -1px; left: 0; right: 0; height: 1px;
    background: var(--text);
    transform: scaleX(0); transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.lang-btn:hover { color: var(--text); }
.lang-btn:hover::after { transform: scaleX(1); }
.lang-btn.active { color: var(--text); }
.lang-btn.active::after { transform: scaleX(1); }

.lang-ripple {
    position: absolute; top: 50%; left: 50%;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--dot); opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
}
.lang-ripple.pop {
    animation: langPop 0.5s ease-out forwards;
}

.roman-char {
    display: inline-block; opacity: 0;
    transform: translateY(4px);
    animation: romanIn 0.4s ease forwards;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes romanIn { to { opacity: 1; transform: translateY(0); } }
@keyframes skillIn { to { opacity: 1; transform: translateY(0); } }
@keyframes langPop {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.15; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}
@keyframes stemPull {
    0%, 55% { height: 60px; }
    65% { height: 95px; }
    68% { height: 50px; }
    75% { height: 65px; }
    100% { height: 60px; }
}
@keyframes introJump {
    0%   { transform: translate(-50%, -200px); }
    10%  { transform: translate(-50%, 0) scale(1.4, 0.6); }
    20%  { transform: translate(-50%, 0) scale(1, 1); }
    40%  { transform: translate(-50%, 0) scale(1.3, 0.7); }
    50%  { transform: translate(-50%, -145px) scale(0.9, 1.2); }
    59%  { transform: translate(-50%, -142px) scale(1, 1); } 
    69%  { transform: translate(-50%, -107px) scale(0.95, 1.05); } 
    80%  { transform: translate(-50%, 0) scale(1.5, 0.5); }
    90%  { transform: translate(-50%, 0) scale(0.9, 1.1); }
    100% { transform: translate(-50%, 0) scale(1, 1); }
}
@keyframes idleCurious {
    0%   { transform: translate(-50%, 0) scale(1, 1); }
    8%   { transform: translate(-50%, 0) scale(1.08, 0.92); }
    20%  { transform: translate(-10px, -2px) scale(0.95, 1.05); }
    35%  { transform: translate(25px, -3px) scale(0.92, 1.08); }
    45%  { transform: translate(28px, -2px) scale(0.94, 1.06); }
    55%  { transform: translate(-50%, 0) scale(1.06, 0.94); }
    65%  { transform: translate(-30px, -2px) scale(0.93, 1.07); }
    75%  { transform: translate(-25px, -1px) scale(0.96, 1.04); }
    88%  { transform: translate(-50%, 1px) scale(1.04, 0.96); }
    100% { transform: translate(-50%, 0) scale(1, 1); }
}
@keyframes idleExcited {
    0%   { transform: translate(-50%, 0) scale(1, 1); }
    5%   { transform: translate(-50%, 0) scale(1.15, 0.85); }
    10%  { transform: translate(-50%, -15px) scale(0.9, 1.15); }
    15%  { transform: translate(-50%, 0) scale(1.12, 0.88); }
    20%  { transform: translate(-50%, 0) scale(1.2, 0.8); }
    27%  { transform: translate(-50%, -35px) scale(0.85, 1.2); }
    34%  { transform: translate(-50%, 0) scale(1.18, 0.82); }
    38%  { transform: translate(-50%, 0) scale(1.3, 0.7); }
    48%  { transform: translate(-50%, -60px) scale(0.8, 1.3); }
    58%  { transform: translate(-50%, 0) scale(1.35, 0.65); }
    62%  { transform: translate(-50%, 0) scale(1.4, 0.6); }
    72%  { transform: translate(-50%, -90px) scale(0.75, 1.35); }
    82%  { transform: translate(-50%, 0) scale(1.5, 0.5); }
    88%  { transform: translate(-50%, -8px) scale(0.92, 1.08); }
    93%  { transform: translate(-50%, 0) scale(1.06, 0.94); }
    97%  { transform: translate(-50%, -2px) scale(0.98, 1.02); }
    100% { transform: translate(-50%, 0) scale(1, 1); }
}
@keyframes idleSneeze {
    0%   { transform: translate(-50%, 0) scale(1, 1); }
    25%  { transform: translate(-50%, 0) scale(1, 1); }
    30%  { transform: translate(-50%, 0) scale(1.03, 0.97); }
    33%  { transform: translate(-50%, 0) scale(0.97, 1.03); }
    38%  { transform: translate(-50%, 0) scale(1.06, 0.94); }
    41%  { transform: translate(-50%, 0) scale(0.94, 1.06); }
    46%  { transform: translate(-50%, 1px) scale(1.12, 0.88); }
    50%  { transform: translate(-50%, 3px) scale(1.5, 0.5); }
    55%  { transform: translate(-50%, -100px) scale(0.6, 1.7); }
    65%  { transform: translate(-50%, -30px) scale(0.8, 1.2); }
    72%  { transform: translate(-50%, 4px) scale(1.6, 0.4); }
    80%  { transform: translate(-50%, -15px) scale(0.9, 1.1); }
    87%  { transform: translate(-50%, 2px) scale(1.1, 0.9); }
    94%  { transform: translate(-50%, -3px) scale(0.97, 1.03); }
    100% { transform: translate(-50%, 0) scale(1, 1); }
}
@keyframes idleSpin {
    0%   { transform: translate(-50%, 0) scale(1, 1); }
    6%   { transform: translate(-40px, 0) scale(1.05, 0.95); }
    12%  { transform: translate(-60px, 0) scale(0.95, 1.05); }
    17%  { transform: translate(-40px, -2px) scale(1.07, 0.93); }
    22%  { transform: translate(-70px, -2px) scale(0.93, 1.07); }
    26%  { transform: translate(-35px, -3px) scale(1.1, 0.9); }
    30%  { transform: translate(-75px, -3px) scale(0.9, 1.1); }
    36%  { transform: translate(-30px, -5px) scale(1.15, 0.85); }
    44%  { transform: translate(50px, -8px) scale(0.85, 1.15); }
    52%  { transform: translate(70px, -3px) scale(1.05, 0.95); }
    60%  { transform: translate(55px, 0) scale(0.95, 1.05); }
    67%  { transform: translate(35px, 1px) scale(1.03, 0.97); }
    74%  { transform: translate(10px, 0) scale(0.98, 1.02); }
    82%  { transform: translate(-50%, 1px) scale(1.04, 0.96); }
    91%  { transform: translate(-50%, -1px) scale(0.99, 1.01); }
    100% { transform: translate(-50%, 0) scale(1, 1); }
}
@keyframes idleNap {
    0%   { transform: translate(-50%, 0) scale(1, 1); }
    10%  { transform: translate(-50%, 1px) scale(1.05, 0.95); }
    20%  { transform: translate(-50%, 2px) scale(1.1, 0.9); }
    30%  { transform: translate(-50%, 3px) scale(1.18, 0.82); }
    40%  { transform: translate(-50%, 4px) scale(1.25, 0.75); }
    50%  { transform: translate(-50%, 5px) scale(1.35, 0.65); }
    58%  { transform: translate(-50%, 5px) scale(1.4, 0.6); }
    66%  { transform: translate(-50%, 5px) scale(1.4, 0.6); }
    68%  { transform: translate(-50%, 5px) scale(1.45, 0.55); }
    72%  { transform: translate(-50%, -130px) scale(0.55, 1.8); }
    78%  { transform: translate(-50%, -150px) scale(0.9, 1.15); }
    82%  { transform: translate(-50%, -145px) scale(1.05, 0.95); }
    88%  { transform: translate(-50%, -30px) scale(0.85, 1.2); }
    92%  { transform: translate(-50%, 3px) scale(1.35, 0.65); }
    96%  { transform: translate(-50%, -5px) scale(0.95, 1.05); }
    100% { transform: translate(-50%, 0) scale(1, 1); }
}
@keyframes idleShy {
    0%   { transform: translate(-50%, 0) scale(1, 1); }
    5%   { transform: translate(-50%, -12px) scale(0.85, 1.25); }
    10%  { transform: translate(-50%, 0) scale(1.15, 0.85); }
    18%  { transform: translate(-30px, 0) scale(0.95, 1.05); }
    28%  { transform: translate(-65px, 1px) scale(1.05, 0.95); }
    35%  { transform: translate(-70px, 0) scale(0.97, 1.03); }
    38%  { transform: translate(-68px, 0) scale(1.03, 0.97); }
    41%  { transform: translate(-70px, 0) scale(0.98, 1.02); }
    50%  { transform: translate(-60px, -2px) scale(0.96, 1.04); }
    60%  { transform: translate(-45px, -1px) scale(0.97, 1.03); }
    68%  { transform: translate(-30px, 0) scale(1, 1); }
    78%  { transform: translate(-50%, -3px) scale(0.95, 1.05); }
    88%  { transform: translate(-50%, 1px) scale(1.04, 0.96); }
    95%  { transform: translate(-50%, -1px) scale(0.99, 1.01); }
    100% { transform: translate(-50%, 0) scale(1, 1); }
}
@keyframes patrol1 {
    0%   { transform: translate(85px, 0) scale(1, 1); }
    8%   { transform: translate(85px, 2px) scale(1.15, 0.85); }
    16%  { transform: translate(75px, -70px) scale(0.9, 1.1); }
    28%  { transform: translate(40px, -65px) scale(1, 1); }
    38%  { transform: translate(-10px, -68px) scale(1, 1); }
    48%  { transform: translate(-60px, -65px) scale(1, 1); }
    55%  { transform: translate(-85px, -67px) scale(1.05, 0.95); }
    58%  { transform: translate(-88px, -65px) scale(0.95, 1.05); }
    68%  { transform: translate(-30px, -68px) scale(1, 1); }
    78%  { transform: translate(40px, -65px) scale(1, 1); }
    88%  { transform: translate(83px, -20px) scale(0.92, 1.08); }
    94%  { transform: translate(85px, 2px) scale(1.08, 0.92); }
    100% { transform: translate(85px, 0) scale(1, 1); }
}
@keyframes patrol2 {
    0%   { transform: translate(85px, 0) scale(1, 1); }
    8%   { transform: translate(88px, 2px) scale(1.1, 0.9); }
    18%  { transform: translate(90px, 30px) scale(1, 1); }
    28%  { transform: translate(88px, 80px) scale(1, 1); }
    38%  { transform: translate(60px, 110px) scale(1.03, 0.97); }
    48%  { transform: translate(0px, 115px) scale(1, 1); }
    56%  { transform: translate(-60px, 110px) scale(1, 1); }
    66%  { transform: translate(-88px, 60px) scale(0.95, 1.05); }
    74%  { transform: translate(-85px, 10px) scale(1, 1); }
    82%  { transform: translate(-40px, -30px) scale(0.9, 1.1); }
    90%  { transform: translate(50px, -15px) scale(1.05, 0.95); }
    96%  { transform: translate(84px, 2px) scale(1.05, 0.95); }
    100% { transform: translate(85px, 0) scale(1, 1); }
}
@keyframes patrol3 {
    0%   { transform: translate(85px, 0) scale(1, 1); }
    10%  { transform: translate(80px, -40px) scale(0.95, 1.05); }
    22%  { transform: translate(20px, -70px) scale(1, 1); }
    32%  { transform: translate(-50px, -65px) scale(1, 1); }
    42%  { transform: translate(-90px, 20px) scale(1.05, 0.95); }
    52%  { transform: translate(-30px, 115px) scale(1, 1); }
    60%  { transform: translate(40px, 110px) scale(1, 1); }
    70%  { transform: translate(90px, 40px) scale(0.95, 1.05); }
    80%  { transform: translate(88px, -10px) scale(1, 1); }
    92%  { transform: translate(86px, 3px) scale(1.06, 0.94); }
    97%  { transform: translate(85px, -1px) scale(0.98, 1.02); }
    100% { transform: translate(85px, 0) scale(1, 1); }
}
@keyframes revealJump {
    0%   { transform: translate(-50%, 0) scale(1, 1); }
    8%   { transform: translate(-50%, 5px) scale(1.5, 0.5); }
    18%  { transform: translate(-20px, -100px) scale(0.7, 1.5); }
    30%  { transform: translate(30px, -260px) scale(0.8, 1.3); }
    40%  { transform: translate(70px, -290px) scale(1.08, 0.92); }
    52%  { transform: translate(80px, -150px) scale(0.85, 1.2); }
    64%  { transform: translate(85px, 5px) scale(1.7, 0.4); }
    74%  { transform: translate(83px, -30px) scale(0.88, 1.15); }
    83%  { transform: translate(84px, 3px) scale(1.12, 0.88); }
    92%  { transform: translate(84px, -5px) scale(0.96, 1.04); }
    100% { transform: translate(85px, 0) scale(1, 1); }
}
@keyframes returnBounce {
    0%   { transform: translate(85px, 0) scale(1, 1); }
    10%  { transform: translate(85px, 4px) scale(1.3, 0.7); }
    22%  { transform: translate(50px, -70px) scale(0.8, 1.3); }
    36%  { transform: translate(0px, -90px) scale(0.9, 1.15); }
    44%  { transform: translate(-20px, -85px) scale(1.05, 0.95); }
    58%  { transform: translate(-50%, -25px) scale(0.88, 1.15); }
    70%  { transform: translate(-50%, 4px) scale(1.3, 0.7); }
    80%  { transform: translate(-50%, -10px) scale(0.94, 1.06); }
    90%  { transform: translate(-50%, 2px) scale(1.05, 0.95); }
    96%  { transform: translate(-50%, -1px) scale(0.98, 1.02); }
    100% { transform: translate(-50%, 0) scale(1, 1); }
}

@keyframes rippleBig {
    0%   { transform: translate(-50%, 50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, 50%) scale(14); opacity: 0; }
}
@keyframes rippleSmall {
    0%   { transform: translate(-50%, 50%) scale(1); opacity: 0.35; }
    100% { transform: translate(-50%, 50%) scale(6); opacity: 0; }
}
@keyframes stemShake {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    15% { transform: translateX(-50%) rotate(3deg); }
    30% { transform: translateX(-50%) rotate(-2.5deg); }
    45% { transform: translateX(-50%) rotate(2deg); }
    60% { transform: translateX(-50%) rotate(-1.5deg); }
    75% { transform: translateX(-50%) rotate(0.8deg); }
}
@keyframes stemShakeSmall {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    20% { transform: translateX(-50%) rotate(1.5deg); }
    40% { transform: translateX(-50%) rotate(-1deg); }
    60% { transform: translateX(-50%) rotate(0.5deg); }
}
.stem.shake       { animation: stemShake      0.9s ease-out forwards !important; }
.stem.shake-small  { animation: stemShakeSmall 0.5s ease-out forwards !important; }

@keyframes spotlightFlicker {
    0% { opacity: 1; } 10% { opacity: 0.3; }
    20% { opacity: 0.9; } 30% { opacity: 0.5; }
    45% { opacity: 1; } 100% { opacity: 1; }
}
.spotlight.flicker { animation: spotlightFlicker 0.5s ease-out; }

@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(0, 3px); }
    20% { transform: translate(-2px, -1px); }
    30% { transform: translate(2px, 2px); }
    40% { transform: translate(-1px, -2px); }
    50% { transform: translate(1px, 1px); }
    60% { transform: translate(-1px, 0); }
    70% { transform: translate(0, 1px); }
    80% { transform: translate(1px, 0); }
}
.container.screen-shake { animation: screenShake 0.4s ease-out; }

@keyframes nudgeRight { 0% { transform: translateX(0); } 30% { transform: translateX(8px); } 60% { transform: translateX(-2px); } 100% { transform: translateX(0); } }
@keyframes nudgeLeft  { 0% { transform: translateX(0); } 30% { transform: translateX(-8px); } 60% { transform: translateX(2px); } 100% { transform: translateX(0); } }
@keyframes nudgeUp    { 0% { transform: translateY(0); } 30% { transform: translateY(-5px); } 60% { transform: translateY(1px); } 100% { transform: translateY(0); } }

.projects-trigger-top {
    position: fixed; top: 26px; right: 30px; z-index: 40;
    display: flex; align-items: center; gap: 9px;
    background: none; border: none; cursor: none;
    font-family: inherit; color: var(--sub);
    font-size: 0.8rem; letter-spacing: 0.08em;
    padding: 6px 4px;
    opacity: 0; animation: fadeIn 1s ease forwards 3.2s;
}
.projects-trigger-top.off { opacity: 0 !important; pointer-events: none; }
.trigger-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--dot);
    transform-origin: center bottom;
    animation: triggerHop 2.6s ease-in-out infinite;
}
.trigger-label { position: relative; transition: color 0.3s ease; }
.trigger-label::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1px;
    background: var(--text); transform: scaleX(0); transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.projects-trigger-top:hover .trigger-label,
.cta-float:hover .trigger-label { color: var(--text); }
.projects-trigger-top:hover .trigger-label::after,
.cta-float:hover .trigger-label::after { transform: scaleX(1); }
.projects-trigger-top:hover .trigger-dot,
.cta-float:hover .trigger-dot { animation-play-state: paused; }
@keyframes triggerHop {
    0%, 62%, 100% { transform: translateY(0) scale(1, 1); }
    68% { transform: translateY(0) scale(1.3, 0.7); }
    78% { transform: translateY(-9px) scale(0.88, 1.12); }
    88% { transform: translateY(0) scale(1.18, 0.82); }
    94% { transform: translateY(-2px) scale(0.97, 1.03); }
}

.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 45;
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 30px;
    background-color: var(--bg);
    opacity: 0; transform: translateY(-14px); pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 3s;
}
.topbar.on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tb-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.78rem; letter-spacing: 0.2em;
    color: var(--sub); text-decoration: none; cursor: none;
    transition: color 0.3s ease;
}
.tb-brand:hover { color: var(--text); }
.tb-right { display: flex; align-items: center; gap: 30px; }
.tb-nav { display: flex; gap: 24px; }
.tb-nav a {
    position: relative; font-size: 0.78rem; letter-spacing: 0.08em;
    color: var(--sub); text-decoration: none; cursor: none;
    padding: 2px 0; transition: color 0.3s ease;
}
.tb-nav a::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
    background: var(--text); transform: scaleX(0); transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.tb-nav a:hover, .tb-nav a.active { color: var(--text); }
.tb-nav a:hover::after, .tb-nav a.active::after { transform: scaleX(1); }
.tb-langs { gap: 14px; }

.cta-float {
    position: fixed; right: 30px; bottom: 26px; z-index: 44;
    display: flex; align-items: center; gap: 9px;
    font-size: 0.8rem; letter-spacing: 0.08em;
    color: var(--sub); text-decoration: none; cursor: none;
    padding: 6px 4px;
    opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease;
}
.cta-float.on { opacity: 1; transform: translateY(0); pointer-events: auto; }

.chapters {
    position: relative; max-width: 860px;
    margin: 0 auto; padding: 40px 28px 60px;
    z-index: 1;
}
.fil {
    position: absolute; width: 1px;
    background: var(--line); pointer-events: none;
}
.fil-ink {
    position: absolute; left: 0; top: 0; width: 100%; height: 0;
    background: var(--cord);
    transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.guide {
    position: absolute; left: 0; top: 0; width: 15px; height: 15px;
    z-index: 6; pointer-events: none; opacity: 0;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    will-change: transform;
}
.guide.on { opacity: 1; }
.guide.jump { transition: none !important; }
.guide.fly { opacity: 0; }
.guide-inner {
    width: 100%; height: 100%; border-radius: 50%;
    background: var(--dot);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.guide-inner.hop { animation: guideHop 0.9s cubic-bezier(0.25, 1, 0.5, 1); }
@keyframes guideHop {
    0%   { transform: translateY(0) scale(1, 1); }
    10%  { transform: translateY(2px) scale(1.3, 0.7); }
    45%  { transform: translateY(-38px) scale(0.85, 1.15); }
    80%  { transform: translateY(0) scale(1.2, 0.8); }
    92%  { transform: translateY(-3px) scale(0.96, 1.04); }
    100% { transform: translateY(0) scale(1, 1); }
}

.chapter {
    display: grid; grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 24px; padding: 120px 0 30px;
}
.ch-side { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.perch { width: 15px; height: 15px; margin-bottom: 14px; }
.rn {
    position: absolute; top: 35px; right: calc(50% + 10px);
    font-size: 0.85rem; letter-spacing: 0.16em; color: var(--sub); white-space: nowrap;
}
.ch-title { font-size: 1.9rem; font-weight: 400; line-height: 1.3; margin-bottom: 20px; }
.ch-lead {
    font-size: 1.1rem; line-height: 1.7; color: var(--sub);
    font-style: italic; max-width: 640px; margin-bottom: 36px;
}
.plus {
    font-size: 1.05rem; line-height: 1.6; font-style: italic;
    color: var(--sub); margin-top: 26px; max-width: 640px;
}
.rv {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.rv.in { opacity: 1; transform: translateY(0); }

.offers { border-top: 1px solid var(--line); }
.offer { border-bottom: 1px solid var(--line); }
.offer:nth-child(2) { transition-delay: 90ms; }
.offer:nth-child(3) { transition-delay: 180ms; }
.offer-h { margin: 0; font-weight: 400; font-size: inherit; }
.offer-head {
    display: flex; align-items: baseline; gap: 20px; width: 100%;
    background: none; border: none; cursor: none;
    font-family: inherit; text-align: left; color: var(--text);
    padding: 22px 6px;
}
.offer-num { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--sub); flex: 0 0 auto; }
.offer-text-wrap { display: flex; flex-direction: column; gap: 5px; }
.offer-name {
    font-size: 1.35rem; line-height: 1.3; position: relative;
    width: -moz-fit-content; width: fit-content;
    transition: color 0.35s ease;
}
.offer-name::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
    background: var(--text); transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.offer-head:hover .offer-name::after,
.offer.open .offer-name::after { transform: scaleX(1); transform-origin: left; }
.offer-line { font-size: 0.95rem; font-style: italic; color: var(--sub); }
.offer-arrow {
    margin-left: auto; font-size: 1rem; color: var(--sub); flex: 0 0 auto;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
}
.offer-head:hover .offer-arrow { color: var(--text); }
.offer.open .offer-arrow { transform: rotate(45deg); color: var(--text); }
.offer-body {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.offer.open .offer-body { grid-template-rows: 1fr; }
.offer-inner { overflow: hidden; min-height: 0; }
.offer-desc { font-size: 1.12rem; line-height: 1.7; padding: 2px 6px 16px 52px; max-width: 700px; }
.offer-list { list-style: none; padding: 0 6px 6px 52px; }
.offer-list li {
    position: relative; font-size: 0.98rem; line-height: 1.5; color: var(--sub);
    padding: 6px 0 6px 20px;
    opacity: 0; transform: translateX(12px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.offer-list li:nth-child(1) { transition-delay: 120ms; }
.offer-list li:nth-child(2) { transition-delay: 230ms; }
.offer-list li:nth-child(3) { transition-delay: 340ms; }
.offer-list li::before {
    content: ''; position: absolute; left: 0; top: 0.95em;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--dot); opacity: 0.5;
}
.offer.open .offer-list li { opacity: 1; transform: translateX(0); }
.offer:not(.open) .offer-list li { transition-delay: 0ms !important; }
.offer-cta {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 12px 6px 26px 52px;
    font-size: 0.8rem; letter-spacing: 0.1em; color: var(--sub);
    text-decoration: none; cursor: none; position: relative;
    transition: color 0.3s ease;
}
.offer-cta::after,
.cform-send::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1px;
    background: var(--text); transform: scaleX(0); transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.offer-cta:hover { color: var(--text); }
.offer-cta:hover::after, .cform-send:hover::after { transform: scaleX(1); }

.steps {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 18px; position: relative; margin: 6px 0 30px;
}
.steps::before {
    content: ''; position: absolute; left: 7px; right: 7px; top: 7px; height: 1px;
    background: var(--cord); opacity: 0.22;
}
.step {
    position: relative; align-self: start; background: none; border: none; cursor: none;
    font-family: inherit; text-align: left; color: var(--sub); padding: 0;
    transition: color 0.4s ease;
}
.step-dot {
    display: block; width: 15px; height: 15px; border-radius: 50%;
    border: 1px solid var(--cord); background: var(--bg);
    margin-bottom: 16px;
    transition: opacity 0.3s ease, background-color 3s;
}
.step:hover, .step.active { color: var(--text); }
.step.active .step-dot { opacity: 0; }
.step-name { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.step-desc { display: block; font-size: 0.88rem; line-height: 1.55; }
.proof {
    display: flex; flex-wrap: wrap; gap: 8px 0;
    font-size: 0.75rem; letter-spacing: 0.12em; color: var(--sub); margin-top: 6px;
}
.proof span + span::before { content: '·'; margin: 0 12px; }

.projects { border-top: 1px solid var(--line); }
.projects .project-link { border-bottom: 1px solid var(--line); padding: 18px 6px; }

.project-link {
    --accent: var(--brand);
    display: flex; align-items: center; gap: 16px;
    text-decoration: none; color: var(--text); cursor: none;
    padding: 14px 6px; position: relative;
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
body.dark-mode .project-link { --accent: var(--brand-d, var(--brand)); }
.project-link.visible { opacity: 1; transform: translateY(0); }

.proj-dot {
    flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px rgba(127, 127, 127, 0.18);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-link:hover .proj-dot { transform: scale(1.5); }

.proj-text { display: flex; flex-direction: column; gap: 4px; line-height: 1.2; }
.proj-name {
    font-size: 1.5rem; color: var(--text);
    position: relative; width: -moz-fit-content; width: fit-content;
    transition: color 0.35s ease;
}
.proj-name::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.project-link:hover .proj-name { color: var(--accent); }
.project-link:hover .proj-name::after { transform: scaleX(1); }

.proj-tagline {
    font-size: 0.92rem; font-style: italic;
    color: var(--sub); line-height: 1.35;
}
.proj-domain {
    font-size: 0.68rem; letter-spacing: 0.06em;
    color: var(--sub); opacity: 0.7; margin-top: 1px;
}

.proj-arrow {
    margin-left: auto; font-size: 0.95rem; color: var(--sub);
    opacity: 0; transform: translate(-4px, 4px);
    transition: opacity 0.35s ease, transform 0.35s ease, color 0.35s ease;
}
.project-link:hover .proj-arrow { opacity: 1; transform: translate(0, 0); color: var(--accent); }

.cform { max-width: 560px; }
.field { position: relative; margin-bottom: 26px; }
.field input, .field textarea {
    width: 100%; background: none; border: 0;
    border-bottom: 1px solid var(--line);
    font-family: inherit; font-size: 1.05rem; color: var(--text);
    padding: 10px 0; outline: none; cursor: none; resize: none;
    -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;
    transition: border-color 0.35s ease;
    border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--sub); opacity: 1; font-style: italic; }
.field::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--text); transform: scaleX(0); transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.field:focus-within::after { transform: scaleX(1); }
.field.err input, .field.err textarea { border-bottom-color: var(--text); }
.field.err::after { transform: scaleX(1); }
.cform-send {
    background: none; border: none; cursor: none; font-family: inherit;
    font-size: 0.85rem; letter-spacing: 0.12em; color: var(--text);
    padding: 6px 0; position: relative;
    display: inline-flex; align-items: center; gap: 8px;
}
.cform-note { font-size: 0.92rem; color: var(--sub); font-style: italic; min-height: 1.4em; margin-top: 16px; }
.cform-or { font-size: 0.85rem; color: var(--sub); margin-top: 26px; }
.cform-or a { color: var(--text); text-decoration: none; cursor: none; border-bottom: 1px solid var(--line); transition: border-color 0.3s ease; }
.cform-or a:hover { border-color: var(--text); }

.footer-end {
    max-width: 860px; margin: 0 auto; padding: 60px 28px 40px;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
    border-top: 1px solid var(--line);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 1px dashed var(--sub); outline-offset: 4px;
}

@media (max-width: 768px) {
    .scene { transform: scale(0.8); }
    .manifesto-wrap { min-height: 210px; }
    .detail-main { font-size: 1.12rem; line-height: 1.8; }
    .detail-sub { font-size: 0.92rem; }
    .skill-btn { font-size: 0.92rem; }
    .skills-row { margin-top: 30px; padding: 0 10px; }
    .projects-trigger-top { top: 18px; right: 16px; font-size: 0.75rem; }
    .topbar { padding: 14px 16px; }
    .tb-nav { display: none; }
    .tb-right { gap: 0; }
    .cta-float { right: 16px; bottom: 16px; }
    .chapters { padding: 20px 18px 40px; }
    .chapter { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 90px 0 20px; }
    .rn { right: calc(50% + 7px); letter-spacing: 0.1em; }
    .ch-title { font-size: 1.45rem; }
    .ch-lead { font-size: 1rem; }
    .offer-head { gap: 14px; padding: 18px 2px; }
    .offer-name { font-size: 1.12rem; }
    .offer-desc { padding-left: 2px; font-size: 1.02rem; }
    .offer-list { padding-left: 2px; }
    .offer-cta { margin-left: 2px; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
    .steps::before { display: none; }
    .proj-name { font-size: 1.25rem; }
    .proj-tagline { font-size: 0.85rem; }
    .footer-end { padding: 40px 18px 30px; flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .scene { transform: scale(0.7); margin-bottom: 10px; }
    .manifesto { font-size: 1.22rem; }
    .manifesto-wrap { min-height: 200px; }
    .detail-main { font-size: 1.02rem; }
    .skill-btn { font-size: 0.88rem; padding: 2px 4px; }
    .container { padding: 20px 14px 140px; }
    .scroll-cue { bottom: 86px; }
}
@media (prefers-reduced-motion: reduce) {
    .halo::after, .trigger-dot, .scroll-cue::after, .type-caret.on { animation: none; }
}
