:root {
    color-scheme: dark;
    --bg: #05070b;
    --bg-soft: #090d13;
    --panel: rgba(16, 18, 26, 0.82);
    --panel-solid: #10121a;
    --line: rgba(255, 80, 128, 0.24);
    --line-strong: rgba(255, 80, 128, 0.48);
    --text: #f3edf1;
    --muted: #b4a5ad;
    --muted-2: #786d74;
    --hot: #ff4f86;
    --hot-2: #ff2d6f;
    --green: #80d47e;
    --amber: #f3b35c;
    --blue: #77a8ff;
    --shadow: rgba(255, 47, 109, 0.18);
    --mono: "Cascadia Mono", "Consolas", "Courier New", monospace;
    --sans: "Segoe UI", Arial, sans-serif;
    --mobile-topbar: 68px;
    --mobile-bottombar: 78px;
}

body[data-theme="mono"] {
    --hot: #d8d1cc;
    --hot-2: #ffffff;
    --line: rgba(216, 209, 204, 0.2);
    --line-strong: rgba(216, 209, 204, 0.42);
    --shadow: rgba(216, 209, 204, 0.1);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        radial-gradient(circle at 78% 12%, rgba(255, 45, 111, 0.12), transparent 28%),
        radial-gradient(circle at 32% 92%, rgba(119, 168, 255, 0.08), transparent 25%),
        var(--bg);
    background-size: 72px 72px, 72px 72px, auto, auto, auto;
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

body::before {
    content: none;
}

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

img {
    display: block;
    max-width: 100%;
}

@supports (content-visibility: auto) {
    .content-band,
    .split-band,
    .gallery-band,
    .contact-band,
    .about-care,
    .about-footer-mark,
    .analytics-panel {
        content-visibility: auto;
        contain-intrinsic-size: 1px 720px;
    }
}

.content-item-card,
.gallery-post,
.project-card,
.timeline article,
.about-timeline-item,
.analytics-stat,
.visual-tile {
    contain: layout paint style;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button,
input,
textarea {
    font: inherit;
}

h1,
h2,
h3,
p,
a,
button,
span,
li {
    overflow-wrap: break-word;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    width: 220px;
    padding: 28px 16px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(8, 10, 15, 0.98), rgba(5, 7, 11, 0.92));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    contain: layout paint style;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.brand {
    width: fit-content;
    padding: 0 8px 16px;
    color: var(--hot);
    font-family: var(--mono);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 0 24px var(--shadow);
}

.brand::after {
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 15px;
    content: "";
    background: var(--hot);
    box-shadow: 0 0 18px var(--shadow);
}

.side-nav {
    display: grid;
    gap: 9px;
}

.nav-link {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    gap: 13px;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 16px;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link svg {
    width: 21px;
    height: 21px;
    stroke-width: 2;
}

.nav-link:hover,
.nav-link.active {
    border-color: var(--line-strong);
    background: rgba(255, 79, 134, 0.12);
    color: var(--text);
    transform: translateX(2px);
}

.nav-link.active::after {
    position: absolute;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    content: "";
    background: var(--hot);
    box-shadow: 0 0 16px var(--hot);
}

.sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 24px;
}

.control-group p {
    margin: 0 0 12px;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 13px;
    text-transform: uppercase;
}

.theme-toggle {
    display: grid;
    grid-template-columns: 22px 1fr 18px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: 14px var(--mono);
    text-align: left;
}

.language-toggle {
    display: grid;
    grid-template-columns: 22px 1fr 34px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: 14px var(--mono);
    text-align: left;
}

.language-code {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 22px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    color: var(--hot);
    background: rgba(255, 79, 134, 0.08);
    font: 900 11px var(--mono);
}

.mobile-language-toggle {
    display: none;
}

.toggle-dot {
    width: 18px;
    height: 18px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--hot) 50%, rgba(255, 255, 255, 0.18) 50%);
    box-shadow: 0 0 18px var(--shadow);
}

.social-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.social-row a {
    color: var(--muted);
    transition: color 160ms ease, transform 160ms ease;
}

.social-row a:hover {
    color: var(--hot);
    transform: translateY(-2px);
}

.site-main {
    min-width: 0;
    margin-left: 220px;
}

.home-hero {
    position: relative;
    min-height: calc(100svh - 34px);
    padding: 72px min(7vw, 86px);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.68fr);
    align-items: center;
    gap: clamp(32px, 5vw, 74px);
    background:
        radial-gradient(circle at 79% 44%, rgba(255, 79, 134, 0.2), transparent 28%),
        linear-gradient(90deg, rgba(5, 7, 11, 0.98), rgba(7, 9, 14, 0.9));
}

.home-hero::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.65;
}

.home-hero::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 8px);
    opacity: 0.12;
}

.home-hero .hero-copy,
.portrait-stage {
    position: relative;
    z-index: 1;
}

.portrait-stage {
    min-height: 650px;
    display: grid;
    place-items: center;
}

.portrait-ring {
    position: absolute;
    width: min(46vw, 620px);
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: inset 0 0 70px rgba(255, 79, 134, 0.08), 0 0 80px rgba(255, 79, 134, 0.08);
}

.portrait-ring::before,
.portrait-ring::after {
    position: absolute;
    inset: 13%;
    border: 1px solid rgba(255, 79, 134, 0.18);
    border-radius: inherit;
    content: "";
}

.portrait-ring::after {
    inset: 27%;
}

.portrait-card {
    position: relative;
    width: min(78%, 430px);
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--panel-solid);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.52), 0 0 55px rgba(255, 79, 134, 0.14);
    transform: rotate(1.5deg);
}

.portrait-card::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(180deg, transparent 44%, rgba(5, 7, 11, 0.28)),
        repeating-linear-gradient(90deg, rgba(255, 79, 134, 0.08) 0 2px, transparent 2px 10px);
    opacity: 0.72;
}

.portrait-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 72%;
    filter: saturate(0.92) contrast(1.06) brightness(0.86);
}

.page-main {
    min-height: 100vh;
}

.page-hero {
    min-height: 42vh;
    padding: 78px min(7vw, 86px) 48px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 84% 16%, rgba(255, 79, 134, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(11, 14, 20, 0.98), rgba(5, 7, 11, 0.94));
}

.page-hero h1,
.contact-panel h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(44px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: 0;
}

.page-hero p:last-child {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--muted);
    font: 17px/1.8 var(--mono);
}

.gallery-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section {
    scroll-margin-top: 16px;
}

.hero {
    position: relative;
    min-height: calc(100svh - 36px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    display: grid;
    align-items: center;
    padding: 72px min(8vw, 96px);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(90deg, rgba(5, 7, 11, 0.94) 0%, rgba(5, 7, 11, 0.78) 32%, rgba(5, 7, 11, 0.18) 62%, rgba(5, 7, 11, 0.58) 100%),
        url("/static/hero-stang.webp");
    background-position: center;
    background-size: cover;
}

.scanline {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 8px);
    opacity: 0.16;
}

.hero-copy {
    width: min(100%, 760px);
}

.hello,
.section-heading p {
    margin: 0 0 14px;
    color: var(--hot);
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 800;
}

.hero h1,
.home-hero h1 {
    margin: 0;
    font-family: var(--sans);
    font-size: clamp(70px, 11vw, 156px);
    line-height: 0.9;
    letter-spacing: 0;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.2), 0 0 42px rgba(255, 79, 134, 0.2);
}

.hero h1 span,
.home-hero h1 span,
.tagline strong {
    color: var(--hot);
}

.tagline {
    margin: 22px 0 0;
    color: var(--text);
    font-family: var(--mono);
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 800;
}

.summary {
    max-width: 590px;
    margin: 28px 0 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 17px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    margin-top: 32px;
}

.primary-action,
.text-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    font-family: var(--mono);
    font-weight: 900;
    color: var(--hot);
}

.primary-action {
    min-width: 214px;
    padding: 0 24px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(255, 79, 134, 0.06);
    box-shadow: 0 0 28px rgba(255, 79, 134, 0.08);
}

.primary-action:hover,
.text-action:hover {
    color: var(--text);
}

.availability {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: 23px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 15px;
}

.availability span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px rgba(128, 212, 126, 0.7);
}

.availability p {
    margin: 0;
}

.presence-card {
    width: min(100%, 460px);
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 14, 21, 0.72);
    box-shadow: 0 0 34px rgba(255, 79, 134, 0.06);
}

.presence-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.presence-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--muted-2);
    box-shadow: 0 0 14px rgba(180, 165, 173, 0.35);
}

.presence-card.online .presence-dot {
    background: var(--green);
    box-shadow: 0 0 16px rgba(128, 212, 126, 0.72);
}

.presence-card.offline .presence-dot {
    background: var(--amber);
    box-shadow: 0 0 16px rgba(243, 179, 92, 0.55);
}

.presence-head p {
    margin: 0 0 3px;
    color: var(--muted-2);
    font: 800 11px/1 var(--mono);
    text-transform: uppercase;
}

.presence-head strong {
    color: var(--text);
    font: 900 15px/1.25 var(--mono);
}

.presence-detail {
    margin: 12px 0 0;
    color: var(--muted);
    font: 13px/1.55 var(--mono);
}

.presence-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.presence-app {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 79, 134, 0.08);
    color: var(--text);
    font: 800 12px var(--mono);
}

.presence-app svg {
    width: 14px;
    height: 14px;
    color: var(--hot);
}

.hero-rail {
    position: absolute;
    right: 46px;
    top: 50%;
    display: flex;
    gap: 28px;
    color: var(--muted);
    font: 800 14px var(--mono);
    text-transform: uppercase;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
}

.hero-rail span:not(:last-child)::after {
    content: "/";
    margin-block-start: 24px;
    color: var(--hot);
}

.stack-strip,
.content-band,
.split-band,
.gallery-band,
.contact-band {
    padding: 44px min(6vw, 72px);
    border-bottom: 1px solid var(--line);
}

.stack-strip {
    background: rgba(5, 7, 11, 0.88);
}

.section-heading {
    max-width: 920px;
    margin-bottom: 28px;
}

.section-heading.compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-heading.compact svg {
    color: var(--hot);
}

.section-heading h2 {
    margin: 0;
    max-width: 860px;
    font-size: clamp(32px, 4vw, 60px);
    line-height: 1.04;
    letter-spacing: 0;
}

.section-heading.compact h2 {
    font-size: 24px;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 22px;
}

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

.stack-card h3 {
    margin: 0 0 12px;
    color: var(--hot);
    font: 800 14px var(--mono);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(13, 15, 22, 0.76);
    color: var(--text);
    font: 700 14px var(--mono);
}

.tech-chip::before {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 9px;
    border-radius: 5px;
    color: #101014;
    font: 900 12px var(--sans);
    content: "<>";
}

.python::before { content: "Py"; background: #ffd45c; }
.js::before { content: "JS"; background: #f7df1e; }
.lua::before { content: "Lu"; background: #7a91ff; }
.html::before { content: "H5"; background: #ff6b45; }
.css::before { content: "C3"; background: #6aa7ff; }
.node::before { content: "N"; background: #86d37b; }
.express::before { content: "EX"; background: #c9c1c5; }
.api::before { content: "API"; background: #65d6c2; }
.linux::before { content: "LX"; background: #f2c66d; }
.ubuntu::before { content: "U"; background: #f06a3c; }
.server::before { content: "SV"; background: #a8a1ff; }
.mongo::before { content: "M"; background: #71d17b; }
.git::before { content: "G"; background: #ff765b; }
.shell::before { content: "$"; background: #d5d2ca; }
.roblox::before { content: "R"; background: #c8a0a9; }

.content-band {
    background: linear-gradient(180deg, rgba(11, 14, 20, 0.94), rgba(5, 7, 11, 0.94));
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card,
.lab-board article,
.timeline article,
.contact-panel,
.visual-tile {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(18, 20, 29, 0.86), rgba(8, 10, 15, 0.86));
}

.project-card {
    min-height: 286px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--hot);
    font: 900 13px var(--mono);
}

.card-top svg {
    width: 28px;
    height: 28px;
}

.project-card h3,
.lab-board h3,
.timeline h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0;
}

.project-card p,
.lab-board p,
.timeline p,
.about-grid p,
.about-grid dd {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.project-card a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    color: var(--hot);
    font: 900 14px var(--mono);
}

.split-band {
    background:
        radial-gradient(circle at 14% 22%, rgba(255, 79, 134, 0.12), transparent 28%),
        rgba(6, 8, 12, 0.98);
}

.lab-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.lab-board article {
    display: grid;
    grid-template-columns: 150px minmax(180px, 360px) 1fr;
    gap: 22px;
    align-items: center;
    padding: 18px 20px;
}

.lab-board span,
.timeline time,
.about-grid dt {
    color: var(--hot);
    font: 900 13px var(--mono);
    text-transform: uppercase;
}

.content-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.content-item-card {
    position: relative;
    min-width: 0;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(18, 20, 29, 0.9), rgba(8, 10, 15, 0.92));
}

.content-item-open {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: rgba(8, 10, 15, 0.92);
    color: inherit;
    cursor: pointer;
    display: grid;
    text-align: left;
}

.content-item-image {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #020305;
}

.content-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 220ms ease, filter 220ms ease;
}

.content-item-image-placeholder {
    display: grid;
    place-items: center;
}

.content-item-image-placeholder svg {
    width: 44px;
    height: 44px;
    color: var(--hot);
}

.content-item-open:hover .content-item-image img {
    filter: brightness(1.08);
    transform: scale(1.035);
}

.content-item-body {
    min-height: 120px;
    padding: 20px;
    display: grid;
    align-content: center;
    gap: 8px;
}

.content-item-body span {
    color: var(--hot);
    font: 900 12px var(--mono);
    text-transform: uppercase;
}

.content-item-body h2 {
    margin: 0;
    color: var(--text);
    font-size: 26px;
    line-height: 1.2;
}

.content-item-meta,
.content-detail-times {
    display: grid;
    gap: 5px;
}

.content-item-meta time,
.content-detail-times time {
    color: var(--muted-2);
    font: 11px/1.4 var(--mono);
    text-transform: uppercase;
}

.content-item-meta time:last-child,
.content-detail-times time:last-child {
    color: var(--hot);
}

.post-menu-wrap.content-card-menu {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
}

.content-card-menu .post-menu-button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 80, 128, 0.5);
    background: rgba(5, 7, 11, 0.88);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.content-card-menu .post-menu {
    z-index: 25;
    min-width: 190px;
}

.content-card-menu .post-menu button {
    pointer-events: auto;
}

.content-empty {
    grid-column: 1 / -1;
}

.content-modal {
    width: min(100%, 1220px);
}

.content-detail[hidden] {
    display: none;
}

.content-detail {
    display: grid;
    grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
    gap: clamp(18px, 2vw, 28px);
    align-items: start;
}

.content-detail-intro {
    min-width: 0;
    display: grid;
    gap: 12px;
    align-content: start;
}

.content-detail img {
    width: 100%;
    height: min(42dvh, 390px);
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #020305;
}

.content-detail-body {
    min-width: 0;
    display: grid;
    gap: 14px;
    align-content: start;
}

.content-detail h2 {
    margin: 0;
    padding-right: 42px;
    color: var(--text);
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.06;
}

.content-detail-intro > p:not(.hello),
.content-detail-text p,
.content-video-text p {
    margin: 0;
    color: var(--muted);
    font: 14px/1.65 var(--mono);
}

.content-detail-text {
    display: grid;
    gap: 10px;
}

.content-breakdown {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.content-breakdown[hidden] {
    display: none;
}

.content-breakdown section {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 80, 128, 0.28);
    border-radius: 8px;
    background: rgba(255, 80, 128, 0.045);
}

.content-breakdown strong {
    display: block;
    margin-bottom: 8px;
    color: var(--hot);
    font: 900 12px/1.2 var(--mono);
    text-transform: uppercase;
}

.content-breakdown p {
    margin: 0;
    white-space: pre-line;
    color: var(--muted);
    font: 14px/1.65 var(--mono);
}

.content-video-list[hidden] {
    display: none;
}

.content-video-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.content-video-card {
    min-width: 0;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 80, 128, 0.28);
    border-radius: 8px;
    background: rgba(5, 7, 11, 0.76);
}

.content-video-card h3 {
    margin: 0;
    color: var(--hot);
    font: 900 12px var(--mono);
    text-transform: uppercase;
}

.content-video-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: #020305;
}

.content-video-frame iframe,
.content-video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.content-video-frame iframe {
    object-fit: cover;
}

.content-video-frame video {
    background: #020305;
    object-fit: contain;
}

.content-video-frame video:fullscreen,
.content-video-frame video:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    background: #000;
    object-fit: contain;
}

.content-video-placeholder {
    min-height: 0;
    place-items: center;
    border-style: dashed;
    background:
        linear-gradient(135deg, rgba(255, 80, 128, 0.08), rgba(255, 255, 255, 0.02)),
        #020305;
    color: var(--muted);
}

.content-video-placeholder svg {
    width: 34px;
    height: 34px;
    color: var(--hot);
    opacity: 0.82;
}

.content-video-placeholder span {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font: 900 15px var(--mono);
    text-transform: uppercase;
}

.content-video-text {
    display: grid;
    gap: 8px;
}

.content-placeholder-copy {
    min-height: 46px;
    padding: 12px;
    border: 1px dashed rgba(255, 80, 128, 0.34);
    border-radius: 8px;
    background: rgba(255, 80, 128, 0.04);
}

.content-video-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 80, 128, 0.42);
    border-radius: 8px;
    color: var(--text);
    font: 900 13px var(--mono);
}

.content-video-link svg {
    width: 18px;
    height: 18px;
    color: var(--hot);
}

.log-view {
    display: grid;
    gap: 18px;
}

.log-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 10, 15, 0.9);
}

.log-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.log-panel-head span {
    color: var(--muted-2);
    font: 900 12px var(--mono);
    text-transform: uppercase;
}

.log-panel pre {
    margin: 0;
    max-width: 100%;
    padding: clamp(18px, 2.2vw, 28px);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--muted);
    font: 14px/1.72 var(--mono);
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline article {
    display: grid;
    grid-template-columns: 130px minmax(220px, 360px) 1fr;
    gap: 22px;
    align-items: start;
    padding: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px;
}

.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    background: #090b10;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-tile {
    min-height: 100%;
    padding: 22px;
    display: grid;
    align-content: end;
    gap: 16px;
    color: var(--muted);
    font: 900 16px var(--mono);
    background:
        linear-gradient(135deg, rgba(255, 79, 134, 0.12), transparent 42%),
        var(--panel-solid);
}

.visual-tile.accent {
    background:
        linear-gradient(135deg, rgba(119, 168, 255, 0.15), transparent 45%),
        var(--panel-solid);
}

.visual-tile svg {
    width: 44px;
    height: 44px;
    color: var(--hot);
}

.add-photo-button,
.modal-close {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(255, 79, 134, 0.1);
    color: var(--hot);
    cursor: pointer;
    font: 900 15px var(--mono);
}

.add-photo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 170px;
    min-height: 52px;
    padding: 0 20px;
}

.add-photo-button:hover,
.modal-close:hover {
    color: var(--text);
    background: rgba(255, 79, 134, 0.17);
}

.gallery-feed {
    width: min(100%, 1320px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.empty-gallery,
.gallery-post,
.gallery-modal {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(18, 20, 29, 0.9), rgba(8, 10, 15, 0.92));
}

.empty-gallery {
    grid-column: 1 / -1;
    min-height: 320px;
    padding: 36px;
    display: grid;
    place-items: center;
    text-align: center;
}

.empty-gallery svg {
    width: 52px;
    height: 52px;
    color: var(--hot);
}

.empty-gallery h2 {
    margin: 12px 0 0;
    font-size: 30px;
}

.empty-gallery p {
    margin: 8px 0 0;
    color: var(--muted);
    font: 15px/1.7 var(--mono);
}

.gallery-post {
    min-width: 0;
    overflow: hidden;
}

.post-image-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #020305;
}

.post-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020305;
}

.post-body {
    padding: 18px;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: var(--hot);
    font: 900 14px var(--mono);
}

.post-meta svg {
    width: 22px;
    height: 22px;
}

.post-menu-wrap {
    position: relative;
}

.post-menu-button {
    width: 40px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--hot);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.post-menu-button:hover {
    background: rgba(255, 79, 134, 0.14);
    color: var(--text);
}

.post-menu[hidden] {
    display: none;
}

.post-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5;
    min-width: 180px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(10, 12, 18, 0.98);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.46), 0 0 28px rgba(255, 79, 134, 0.1);
}

.post-menu button {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font: 800 13px var(--mono);
    text-align: left;
}

.post-menu button:hover {
    background: rgba(255, 79, 134, 0.13);
}

.post-menu .danger-menu-item {
    color: #ff809b;
}

.post-body h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.post-body p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.post-body time {
    display: block;
    margin-top: 14px;
    color: var(--muted-2);
    font: 12px var(--mono);
    text-transform: uppercase;
}

.modal-shell[hidden] {
    display: none;
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.gallery-modal {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    padding: 30px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 70px rgba(255, 79, 134, 0.1);
}

.gallery-modal.content-modal {
    width: min(100%, 1220px);
    max-height: min(900px, calc(100dvh - 36px));
    padding: clamp(18px, 2.1vw, 26px);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.gallery-form {
    display: grid;
    gap: 17px;
}

.gallery-form[hidden] {
    display: none;
}

.gallery-form h2 {
    margin: 0;
    padding-right: 42px;
    font-size: 34px;
    line-height: 1.08;
}

.gallery-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font: 800 13px var(--mono);
    text-transform: uppercase;
}

.gallery-form .form-check {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: start;
    gap: 10px;
    text-transform: none;
}

.gallery-form .form-check input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--hot);
}

.gallery-form input,
.gallery-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(4, 6, 10, 0.72);
    color: var(--text);
    font: 16px var(--sans);
    outline: none;
}

.gallery-form input {
    min-height: 48px;
    padding: 0 14px;
}

.gallery-form input[type="file"] {
    padding: 11px 12px;
}

.gallery-form textarea {
    min-height: 130px;
    padding: 12px 14px;
    resize: vertical;
}

.gallery-form input:focus,
.gallery-form textarea:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(255, 79, 134, 0.12);
}

.form-message {
    min-height: 20px;
    margin: 0;
    color: var(--hot);
    font: 13px/1.5 var(--mono);
}

.form-submit {
    width: 100%;
    border: 1px solid var(--line-strong);
    cursor: pointer;
}

.danger-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    border: 1px solid rgba(255, 92, 122, 0.7);
    border-radius: 8px;
    background: rgba(255, 92, 122, 0.12);
    color: #ff8aa4;
    cursor: pointer;
    font: 900 15px var(--mono);
}

.danger-action:hover {
    background: rgba(255, 92, 122, 0.2);
    color: var(--text);
}

.delete-copy {
    margin: 0;
    color: var(--muted);
    font: 15px/1.7 var(--mono);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 36px;
    align-items: start;
}

.about-grid > p {
    color: var(--text);
    font-size: 22px;
    line-height: 1.65;
}

.about-grid dl {
    margin: 0;
    display: grid;
    gap: 14px;
}

.about-grid div {
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line);
}

.about-grid dt {
    margin-bottom: 6px;
}

.about-page {
    background:
        radial-gradient(circle at 82% 16%, rgba(255, 79, 134, 0.12), transparent 27%),
        linear-gradient(180deg, rgba(5, 7, 11, 0.98), rgba(7, 9, 14, 0.96));
}

.about-hero {
    min-height: 58vh;
    padding: 54px min(7vw, 86px) 44px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
    align-items: end;
    gap: clamp(32px, 7vw, 96px);
    overflow: hidden;
}

.about-copy h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(50px, 6.8vw, 92px);
    line-height: 0.98;
    letter-spacing: 0;
}

.about-copy > p:not(.hello) {
    margin: 30px 0 0;
    color: var(--muted);
    font: 22px/1.68 var(--mono);
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 36px;
}

.about-silhouette {
    position: relative;
    width: min(100%, 350px);
    aspect-ratio: 3 / 4;
    justify-self: center;
    margin: 0 0 -44px;
    opacity: 0.72;
    filter: contrast(1.08) brightness(0.78) saturate(1.04);
}

.about-silhouette::before {
    position: absolute;
    inset: -16%;
    z-index: -1;
    border: 1px solid var(--line);
    border-radius: 50%;
    content: "";
    box-shadow: inset 0 0 70px rgba(255, 79, 134, 0.08), 0 0 62px rgba(255, 79, 134, 0.08);
}

.about-silhouette::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(5, 7, 11, 0.04), rgba(5, 7, 11, 0.44));
}

.about-silhouette img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 72%;
    border-radius: 8px 8px 0 0;
}

.about-care {
    padding: 46px min(7vw, 86px);
    border-bottom: 1px solid var(--line);
}

.about-care h2 {
    margin: 0;
    max-width: 980px;
    color: var(--text);
    font: 700 clamp(26px, 3.4vw, 44px)/1.24 var(--mono);
    letter-spacing: 0;
}

.about-timeline {
    margin-top: 42px;
    display: grid;
    gap: 22px;
}

.timeline-page {
    margin-top: 0;
}

.about-timeline-item {
    display: grid;
    grid-template-columns: minmax(110px, 0.18fr) minmax(76px, 0.1fr) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(18, 20, 29, 0.82), rgba(8, 10, 15, 0.88));
}

.timeline-year {
    color: var(--hot);
    font: 900 30px/1 var(--mono);
}

.timeline-date p {
    max-width: 150px;
    margin: 8px 0 0;
    color: var(--muted);
    font: 800 12px/1.35 var(--mono);
    text-transform: uppercase;
}

.timeline-line {
    position: relative;
    min-height: 100%;
    margin-top: 2px;
}

.timeline-line::before {
    position: absolute;
    left: 8px;
    top: -46px;
    width: 2px;
    height: calc(100% + 92px);
    content: "";
    background: var(--line-strong);
    box-shadow: 0 0 18px var(--shadow);
}

.timeline-line span {
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--hot);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 18px var(--shadow);
}

.about-timeline-item:first-child .timeline-line::before {
    top: 11px;
    height: calc(100% + 35px);
}

.about-timeline-item:last-child .timeline-line::before {
    height: calc(100% + 35px);
}

.timeline-content h3 {
    margin: 0;
    color: var(--text);
    font: 900 22px/1.3 var(--mono);
}

.timeline-content h3 span {
    color: var(--muted);
}

.timeline-content ul {
    margin: 18px 0 0;
    padding-left: 22px;
    color: var(--muted);
    font: 17px/1.75 var(--mono);
}

.timeline-note {
    margin: 0;
    color: var(--muted);
    font: 17px/1.75 var(--mono);
}

.timeline-content li::marker {
    color: var(--hot);
}

.about-footer-mark {
    min-height: 96px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.about-footer-mark span {
    width: 1px;
    height: 42px;
    background: var(--line-strong);
    box-shadow: 0 0 18px var(--shadow);
}

.contact-band {
    padding-bottom: 72px;
    background: linear-gradient(180deg, rgba(8, 10, 15, 0.94), rgba(5, 7, 11, 1));
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 36px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.contact-panel h2 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(30px, 4.5vw, 58px);
    line-height: 1.06;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.contact-link-grid {
    max-width: 520px;
}

.analytics-band {
    display: grid;
    gap: 24px;
}

.analytics-login-card,
.analytics-panel,
.analytics-stat {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(18, 20, 29, 0.86), rgba(8, 10, 15, 0.88));
}

.analytics-login-card {
    width: min(100%, 540px);
    padding: 28px;
}

.analytics-login-card[hidden],
.analytics-dashboard[hidden] {
    display: none;
}

.analytics-login-card h2,
.analytics-toolbar h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 3.5vw, 46px);
    line-height: 1.08;
}

.analytics-dashboard {
    display: grid;
    gap: 22px;
}

.analytics-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.analytics-refresh {
    border: 1px solid var(--line-strong);
    cursor: pointer;
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.analytics-stat {
    min-height: 120px;
    padding: 20px;
    display: grid;
    align-content: space-between;
}

.analytics-stat span {
    color: var(--muted);
    font: 900 12px/1.3 var(--mono);
    text-transform: uppercase;
}

.analytics-stat strong {
    color: var(--text);
    font: 900 clamp(30px, 4vw, 48px)/1 var(--mono);
}

.analytics-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
}

.analytics-panel {
    padding: 22px;
}

.analytics-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.analytics-panel h3 {
    margin: 0;
    color: var(--text);
    font: 900 24px/1.2 var(--mono);
}

.analytics-panel-head p,
.analytics-empty {
    margin: 0;
    color: var(--muted);
    font: 13px/1.6 var(--mono);
}

.analytics-page-list,
.analytics-recent-list {
    display: grid;
    gap: 12px;
}

.analytics-page-row,
.analytics-recent-row {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 80, 128, 0.16);
    border-radius: 8px;
    background: rgba(5, 7, 11, 0.38);
}

.analytics-page-row > div:first-child,
.analytics-recent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.analytics-page-row strong,
.analytics-recent-row strong {
    color: var(--text);
    font: 900 15px/1.3 var(--mono);
}

.analytics-page-row span,
.analytics-recent-row span {
    color: var(--muted);
    font: 12px/1.4 var(--mono);
}

.analytics-recent-row div {
    display: grid;
    gap: 4px;
}

.analytics-recent-row em {
    color: var(--hot);
    font: normal 900 12px/1 var(--mono);
}

.analytics-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
}

.analytics-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--hot);
    box-shadow: 0 0 18px var(--shadow);
}

@media (max-width: 1120px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .gallery-feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portrait-stage {
        min-height: 520px;
        place-items: start center;
    }

    .portrait-card {
        width: min(56%, 420px);
    }

    .stack-grid,
    .project-grid,
    .gallery-grid,
    .content-card-grid,
    .analytics-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-layout {
        grid-template-columns: 1fr;
    }

    .gallery-grid figure {
        grid-column: 1 / -1;
    }

    .lab-board article,
    .timeline article {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 820px) {
    .sidebar {
        right: 0;
        bottom: auto;
        width: auto;
        height: var(--mobile-topbar);
        padding: max(10px, env(safe-area-inset-top)) 14px 10px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: rgba(5, 7, 11, 0.94);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .brand {
        padding: 0 4px;
        font-size: 24px;
        flex: 0 0 auto;
    }

    .brand::after,
    .sidebar-bottom {
        display: none;
    }

    .side-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 35;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 12px max(10px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(5, 7, 11, 0.96);
        box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.42);
        scrollbar-width: none;
    }

    .side-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        grid-template-columns: 22px;
        justify-items: center;
        flex: 0 0 54px;
        min-width: 54px;
        min-height: 52px;
        padding: 0 14px;
        border-color: var(--line);
        background: rgba(12, 14, 21, 0.68);
        transform: none;
    }

    .nav-link:hover,
    .nav-link.active {
        transform: none;
    }

    .nav-link.active::after {
        right: 9px;
        top: 9px;
        width: 7px;
        height: 7px;
    }

    .mobile-language-toggle {
        display: grid;
        grid-template-columns: 22px;
        justify-items: center;
        place-content: center;
        flex: 0 0 58px;
        min-width: 58px;
        min-height: 52px;
        padding: 0 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 79, 134, 0.08);
        color: var(--hot);
        cursor: pointer;
        font: 900 12px var(--mono);
    }

    .mobile-language-toggle svg {
        display: none;
    }

    .mobile-language-toggle [data-language-name] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .mobile-language-toggle .language-code {
        min-width: 30px;
        min-height: 24px;
    }

    .nav-link span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .site-main {
        margin-left: 0;
        padding-bottom: calc(var(--mobile-bottombar) + env(safe-area-inset-bottom));
    }

    .home-hero {
        min-height: auto;
        padding: calc(var(--mobile-topbar) + 28px) 18px 30px;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .portrait-stage {
        min-height: 390px;
    }

    .portrait-ring {
        width: min(86vw, 480px);
    }

    .portrait-card {
        width: min(72vw, 330px);
        transform: rotate(0deg);
    }

    .page-hero {
        min-height: auto;
        padding: calc(var(--mobile-topbar) + 34px) 18px 34px;
    }

    .gallery-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .add-photo-button {
        width: 100%;
    }

    .hero {
        min-height: calc(100svh - 34px);
        padding: 94px 22px 28px;
    }

    .hero-bg {
        background-image:
            linear-gradient(180deg, rgba(5, 7, 11, 0.7), rgba(5, 7, 11, 0.96) 62%, rgba(5, 7, 11, 1) 100%),
            url("/static/hero-stang.webp");
        background-position: 62% center;
    }

    .summary {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.62;
        margin-top: 22px;
    }

    .hero-rail {
        display: none;
    }

    .stack-strip,
    .content-band,
    .split-band,
    .gallery-band,
    .contact-band {
        padding: 34px 18px;
    }

    .stack-grid,
    .project-grid,
    .gallery-grid,
    .about-grid,
    .analytics-stats {
        grid-template-columns: 1fr;
    }

    .analytics-toolbar,
    .analytics-panel-head,
    .analytics-page-row > div:first-child,
    .analytics-recent-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .analytics-refresh {
        width: 100%;
    }

    .contact-panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .about-hero {
        min-height: auto;
        padding: calc(var(--mobile-topbar) + 34px) 18px 42px;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .about-copy > p:not(.hello) {
        font-size: 17px;
    }

    .about-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .about-silhouette {
        width: min(72vw, 330px);
        margin: 8px auto -42px;
    }

    .about-care {
        padding: 42px 18px;
    }

    .about-timeline-item {
        grid-template-columns: 72px 24px minmax(0, 1fr);
        gap: 12px;
        padding: 18px;
    }

    .timeline-line {
        width: auto;
    }

    .timeline-year {
        font-size: 22px;
    }

    .timeline-date p {
        max-width: 76px;
        font-size: 10px;
    }

    .timeline-content h3 {
        font-size: 17px;
    }

    .timeline-content ul,
    .timeline-note {
        font-size: 14px;
    }

    .gallery-modal {
        width: 100%;
        max-height: min(760px, calc(100dvh - 28px));
        padding: 24px 18px max(24px, env(safe-area-inset-bottom));
    }

    .gallery-modal.content-modal {
        width: 100%;
        max-height: min(820px, calc(100dvh - 28px));
    }

    .content-detail {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .content-detail img {
        height: min(36dvh, 340px);
    }

    .content-video-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-breakdown {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        justify-content: flex-start;
    }

    .modal-shell {
        padding: 14px;
        place-items: end center;
    }

    .modal-close {
        width: 46px;
        height: 46px;
    }

    .gallery-form input,
    .gallery-form textarea {
        font-size: 16px;
    }

    .gallery-form h2 {
        font-size: 28px;
    }

    .post-menu-button {
        width: 44px;
        height: 44px;
    }

    .post-menu {
        min-width: min(220px, calc(100vw - 44px));
    }

    .post-menu button {
        min-height: 46px;
    }
}

@media (max-width: 680px) {
    .content-card-grid {
        grid-template-columns: 1fr;
    }

    .content-video-list {
        grid-template-columns: 1fr;
    }

    .content-video-card {
        padding: 12px;
    }

    .content-video-frame {
        aspect-ratio: 16 / 8.5;
    }

    .content-item-image {
        aspect-ratio: 4 / 3;
    }

    .gallery-feed {
        width: min(100%, 520px);
        grid-template-columns: 1fr;
    }

    .post-image-wrap {
        aspect-ratio: auto;
    }

    .post-image-wrap img {
        height: auto;
        max-height: 78svh;
        object-fit: contain;
    }
}

@media (max-width: 520px) {
    .home-hero {
        padding-top: calc(var(--mobile-topbar) + 24px);
    }

    .hero h1,
    .home-hero h1 {
        font-size: 52px;
    }

    .page-hero h1,
    .contact-panel h1,
    .about-copy h1 {
        font-size: 40px;
    }

    .about-care h2 {
        font-size: 22px;
    }

    .portrait-stage {
        min-height: 300px;
    }

    .tagline {
        font-size: 18px;
        margin-top: 18px;
    }

    .hero-actions {
        gap: 14px;
        margin-top: 24px;
    }

    .primary-action,
    .text-action {
        min-height: 48px;
    }

    .availability {
        margin-top: 16px;
        font-size: 14px;
    }

    .hero-actions,
    .contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-action,
    .text-action {
        width: 100%;
        justify-content: center;
    }

    .tech-chip {
        width: 100%;
    }

    .presence-card,
    .analytics-login-card,
    .analytics-panel,
    .project-card,
    .gallery-post,
    .empty-gallery {
        border-radius: 8px;
    }

    .gallery-feed {
        gap: 18px;
    }

    .content-card-grid {
        gap: 18px;
    }

    .content-item-body {
        min-height: 94px;
        padding: 16px;
    }

    .content-item-body h2 {
        font-size: 21px;
    }

    .content-detail img {
        height: 30svh;
    }

    .content-detail h2 {
        font-size: clamp(27px, 8.6vw, 38px);
    }

    .content-detail-intro,
    .content-detail-body {
        gap: 12px;
    }

    .post-body {
        padding: 16px;
    }

    .post-body h2 {
        font-size: 21px;
    }

    .analytics-login-card,
    .analytics-panel {
        padding: 18px;
    }

    .analytics-stat {
        min-height: 96px;
        padding: 16px;
    }

    .analytics-panel h3 {
        font-size: 20px;
    }
}

@media (max-width: 380px) {
    :root {
        --mobile-topbar: 62px;
        --mobile-bottombar: 74px;
    }

    .sidebar {
        padding-inline: 12px;
    }

    .brand {
        font-size: 22px;
    }

    .home-hero,
    .stack-strip,
    .content-band,
    .split-band,
    .gallery-band,
    .contact-band,
    .about-care {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero h1,
    .home-hero h1 {
        font-size: 46px;
    }

    .page-hero h1,
    .contact-panel h1,
    .about-copy h1 {
        font-size: 34px;
    }

    .summary,
    .page-hero p:last-child,
    .project-card p,
    .lab-board p,
    .timeline p {
        font-size: 14px;
    }

    .about-timeline-item {
        grid-template-columns: 58px 20px minmax(0, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .timeline-year {
        font-size: 19px;
    }

    .timeline-date p {
        max-width: 60px;
        font-size: 9px;
    }

    .timeline-line::before {
        left: 7px;
    }

    .timeline-line span {
        width: 16px;
        height: 16px;
    }

    .timeline-content h3 {
        font-size: 15px;
    }

    .timeline-content ul,
    .timeline-note {
        padding-left: 17px;
        font-size: 13px;
        line-height: 1.65;
    }

    .primary-action,
    .text-action,
    .danger-action {
        min-height: 50px;
        padding-inline: 14px;
        font-size: 13px;
    }

    .gallery-form h2 {
        font-size: 24px;
    }
}
