/* Wormhole flight mode — zoom through stages, viewport stays fixed */

html.wormhole-mode {
    scroll-behavior: auto;
}

html.wormhole-mode body.home-page {
    background: #03050f;
}

.wormhole-scroll-proxy {
    position: relative;
    z-index: 1;
    width: 100%;
    pointer-events: none;
}

#wormhole-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.wormhole-hud {
    position: fixed;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0, 240, 255, 0.75);
}

.hud-frame {
    position: absolute;
    inset: 72px 24px 96px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 4px;
    box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.04);
    pointer-events: none;
}

.hud-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(0, 240, 255, 0.55);
    border-style: solid;
}

.hud-tl { top: 68px; left: 18px; border-width: 2px 0 0 2px; }
.hud-tr { top: 68px; right: 18px; border-width: 2px 2px 0 0; }
.hud-bl { bottom: 90px; left: 18px; border-width: 0 0 2px 2px; }
.hud-br { bottom: 90px; right: 18px; border-width: 0 2px 2px 0; }

.hud-readout {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hud-readout--tl { top: 82px; left: 36px; }
.hud-readout--tr { top: 82px; right: 36px; text-align: right; }
.hud-readout--bl { bottom: 104px; left: 36px; }
.hud-readout--br { bottom: 108px; right: 108px; text-align: right; max-width: 160px; }

.hud-label { opacity: 0.55; font-size: 0.58rem; }
.hud-value { color: #00f0ff; text-shadow: 0 0 12px rgba(0, 240, 255, 0.45); }

.warp-progress {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, 60vw);
    height: 3px;
    background: rgba(0, 240, 255, 0.12);
    border-radius: 2px;
    z-index: 7;
    overflow: hidden;
    pointer-events: none;
}

.warp-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f0ff, #ff2bd6);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.55);
    transition: width 0.15s linear;
}

.warp-waypoint-dots {
    position: fixed;
    right: 14px;
    top: 50%;
    left: auto;
    width: auto;
    min-width: 0;
    transform: translateY(-50%);
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.warp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.45);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.warp-dot.is-active,
.warp-dot:hover {
    background: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
    transform: scale(1.25);
}

.wormhole-feed {
    position: fixed;
    inset: 0;
    z-index: 2;
    perspective: 1200px;
    transform-style: preserve-3d;
    overflow: hidden;
    pointer-events: none;
}

.wormhole-panel {
    position: fixed;
    inset: 0;
    min-height: unset;
    scroll-snap-align: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 5% 5.5rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px) translate3d(0, 0, -1200px) scale(0.05);
    will-change: transform, opacity, filter;
    pointer-events: none;
}

.wormhole-panel--hero {
    padding-top: 4.5rem;
    padding-bottom: 3rem;
    align-items: stretch;
    justify-content: stretch;
    overflow: visible;
}

.wormhole-panel--hero .hero-section {
    flex: 1;
    width: 100%;
    min-height: calc(100vh - 4.5rem);
    display: flex;
    flex-direction: column;
}

html[data-theme="dark"].wormhole-mode .wormhole-panel--hero .hero-section {
    background: transparent !important;
}

html[data-theme="light"].wormhole-mode .wormhole-panel--hero .hero-section {
    background:
        radial-gradient(ellipse 90% 55% at 50% 8%, rgba(255, 230, 160, 0.45), transparent 55%),
        radial-gradient(ellipse 120% 50% at 50% 100%, rgba(45, 90, 39, 0.22), transparent 60%),
        linear-gradient(180deg, #b8d4f0 0%, #d4ecd4 38%, #e8f5e4 68%, #c8dfc0 100%) !important;
}

.wormhole-panel--hero .hero-container {
    flex: 1;
}

.wormhole-panel--tall {
    align-items: flex-start;
    padding-top: 5.5rem;
    padding-bottom: 6rem;
}

.wormhole-panel--tall.is-active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.wormhole-panel.is-active .warp-scroll-cue {
    opacity: 1;
}

.warp-scroll-cue {
    opacity: 0;
    transition: opacity 0.4s ease;
}

html.wormhole-mode .wormhole-panel {
    background: transparent !important;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

html.wormhole-mode .wormhole-panel.section,
html.wormhole-mode #about,
html.wormhole-mode #journey,
html.wormhole-mode .about-section,
html.wormhole-mode .journey-section,
html.wormhole-mode .skills-section,
html.wormhole-mode .portfolio-section,
html.wormhole-mode .activity-section,
html.wormhole-mode .contact-section {
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
    min-height: unset !important;
}

html.wormhole-mode .wormhole-panel .pano-viewport {
    max-width: min(680px, 88vw);
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

html.wormhole-mode .about-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-size: 1rem;
    line-height: 1.65;
}

html.wormhole-mode .about-content p {
    max-width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}

html.wormhole-mode .about-interests {
    margin-top: 1.25rem;
    gap: 0.65rem;
    justify-content: center;
}

html.wormhole-mode .journey-section .section-description,
html.wormhole-mode .section-description {
    max-width: 34rem;
    margin: 0.75rem auto 0;
    text-align: center;
    line-height: 1.6;
    font-size: 0.98rem;
}

html.wormhole-mode .pano-frame,
html.wormhole-mode .pano-frame__inner,
html.wormhole-mode .pano-frame__content {
    background: transparent !important;
    box-shadow: none !important;
}

html.wormhole-mode .skills-section .container {
    max-width: min(920px, 92vw);
    padding: 0 1rem;
}

html.wormhole-mode .skills-section .skills-description {
    display: none;
}

html.wormhole-mode .skills-section .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0;
    margin-top: 1rem;
}

html.wormhole-mode .skills-section .skill-category {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: none;
}

html.wormhole-mode .skills-section .skill-header {
    margin-bottom: 0.45rem;
}

html.wormhole-mode .skills-section .skill-header i {
    font-size: 15px;
    padding: 6px;
    margin-right: 8px;
}

html.wormhole-mode .skills-section .skill-header h3 {
    font-size: 0.92rem;
}

html.wormhole-mode .skills-section .skill-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
}

html.wormhole-mode .skills-section .skill-item {
    padding: 0.3rem 0.45rem;
    border-radius: 8px;
}

html.wormhole-mode .skills-section .skill-item span {
    font-size: 0.72rem;
}

html.wormhole-mode .skills-section .skill-item i {
    font-size: 0.85rem;
}

html.wormhole-mode .contact-content--form-only {
    display: block;
    max-width: min(480px, 90vw);
    margin: 1.25rem auto 0;
}

html.wormhole-mode .contact-content--form-only .contact-form {
    width: 100%;
}

html.wormhole-mode .wormhole-panel--tall.is-active {
    overflow-y: visible;
}

@media (max-width: 768px) {
    html.wormhole-mode .skills-section .skills-grid {
        grid-template-columns: 1fr;
    }
}

html.wormhole-mode .pano-viewport {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    position: relative;
    text-align: center;
}

html.wormhole-mode .pano-viewport::before {
    content: '';
    position: absolute;
    inset: -12% -8%;
    background:
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.45;
    z-index: 0;
}

html[data-theme="light"].wormhole-mode .pano-viewport::before {
    display: none;
}

html[data-theme="light"].wormhole-mode .home-page::before {
    display: none;
}

html.wormhole-mode .pano-frame {
    position: relative;
    z-index: 1;
    border-radius: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

html.wormhole-mode .pano-frame__inner {
    border-radius: 0;
    overflow: visible;
    background: transparent;
    backdrop-filter: none;
}

html.wormhole-mode .pano-frame__inner::before,
html.wormhole-mode .pano-frame__scanline {
    display: none;
}

html.wormhole-mode .pano-frame__content {
    padding: 0;
    text-align: center;
}

html.wormhole-mode .pano-viewport .section-description,
html.wormhole-mode .waypoint-card p,
html.wormhole-mode .about-content p {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

html.wormhole-mode .waypoint-header {
    flex-direction: column;
    align-items: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.35rem;
    gap: 0.45rem;
}

html.wormhole-mode .waypoint-id {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: rgba(0, 240, 255, 0.65);
}

html[data-theme="light"].wormhole-mode .waypoint-id {
    color: rgba(45, 90, 39, 0.8);
}

html.wormhole-mode .waypoint-date {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: rgba(180, 200, 230, 0.75);
}

html[data-theme="light"].wormhole-mode .waypoint-date {
    color: rgba(92, 116, 94, 0.9);
}

html.wormhole-mode .waypoint-card h3 {
    font-family: 'Orbitron', 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: inherit;
    filter: none;
}

html.wormhole-mode .waypoint-card h3::after {
    content: '';
    display: block;
    width: 4rem;
    height: 3px;
    margin: 0.65rem auto 0;
    background: linear-gradient(90deg, var(--neon-cyan, #00f0ff), var(--neon-magenta, #ff2bd6));
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

html.wormhole-mode .wormhole-waypoint.is-docked .waypoint-card h3 {
    filter: none;
}

html.wormhole-mode .wormhole-panel--tall .section-title::after {
    display: block;
}

.pano-viewport {
    width: min(920px, 100%);
}

.pano-frame {
    position: relative;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.5), rgba(255, 43, 214, 0.35), rgba(0, 240, 255, 0.2));
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.08),
        0 30px 80px rgba(0, 0, 0, 0.45),
        inset 0 0 60px rgba(0, 240, 255, 0.04);
}

.pano-frame__inner {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(8, 12, 32, 0.82);
    backdrop-filter: blur(16px);
}

.pano-frame__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.5;
}

.pano-frame__scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 240, 255, 0.025) 3px,
        rgba(0, 240, 255, 0.025) 4px
    );
    pointer-events: none;
    animation: panoScan 8s linear infinite;
}

@keyframes panoScan {
    from { transform: translateY(0); }
    to { transform: translateY(32px); }
}

.pano-frame__content {
    position: relative;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    z-index: 1;
}

.waypoint-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.waypoint-id {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: #00f0ff;
}

.waypoint-date {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.08);
    color: #b8f8ff;
}

.waypoint-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    margin: 0 0 0.85rem;
    letter-spacing: 0.04em;
    background: linear-gradient(92deg, #fff, #00f0ff 60%, #ff2bd6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.waypoint-card p {
    color: rgba(210, 225, 255, 0.88);
    line-height: 1.75;
    margin: 0 0 1rem;
    font-size: 1rem;
}

.wormhole-waypoint.is-docked .waypoint-card h3 {
    filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.35));
}

.warp-scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(0, 240, 255, 0.7);
    animation: warpCueBob 2.4s ease-in-out infinite;
    z-index: 2;
}

.warp-scroll-cue i {
    font-size: 1.1rem;
}

@keyframes warpCueBob {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

html.wormhole-mode .hero-section::after,
html.wormhole-mode .hero-content::before {
    display: none;
}

.wormhole-panel--hero .hero-content {
    background: rgba(8, 12, 32, 0.75) !important;
}

html[data-theme="light"].wormhole-mode .wormhole-panel--hero .hero-content {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(45, 90, 39, 0.22) !important;
    box-shadow:
        0 0 0 1px rgba(240, 182, 127, 0.12),
        0 24px 48px rgba(45, 90, 39, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

html.wormhole-mode #journey.wormhole-panel {
    /* Beat #journey { display: block } from journey.css so the card centers */
    display: flex;
    align-items: center;
    justify-content: center;
}

html.wormhole-mode .hero-reveal {
    opacity: 1;
    transform: none;
}

.wormhole-section-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: rgba(0, 240, 255, 0.65);
    text-align: center;
    margin-bottom: 0.5rem;
}

html[data-theme="light"].wormhole-mode body.home-page {
    background: #d4ecd4;
}

/* Nature/Forest HUD adjustments */
html[data-theme="light"].wormhole-mode .hud-frame,
html[data-theme="light"].wormhole-mode .hud-corner {
    display: none;
}

html[data-theme="light"].wormhole-mode .wormhole-hud {
    font-family: 'Poppins', sans-serif;
    color: rgba(45, 90, 39, 0.85);
    background: linear-gradient(180deg, rgba(212, 236, 212, 0.65) 0%, rgba(212, 236, 212, 0) 180px);
}

html[data-theme="light"].wormhole-mode .hud-value {
    color: #2d5a27;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    font-family: 'Orbitron', 'Share Tech Mono', monospace;
}

html[data-theme="light"].wormhole-mode .wormhole-feed {
    perspective: 1800px;
}

html[data-theme="light"] .pano-frame__inner {
    background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"].wormhole-mode .pano-frame__inner {
    background: transparent;
}

html[data-theme="light"] .waypoint-card p {
    color: #334;
}

html[data-theme="light"] .waypoint-card h3 {
    background: linear-gradient(92deg, #1b3b1b, #2d5a27, #4a7a43);
    -webkit-background-clip: text;
}

html[data-theme="light"].wormhole-mode .waypoint-card h3 {
    background: none;
    -webkit-background-clip: unset;
    color: inherit;
}

.wormhole-panel--tall .container {
    position: relative;
    border-radius: 12px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: rgba(8, 12, 32, 0.78);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 240, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 0 40px rgba(0, 240, 255, 0.03);
}

html.wormhole-mode .wormhole-panel--tall .container {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

html.wormhole-mode .about-section,
html.wormhole-mode .journey-section,
html.wormhole-mode .skills-section,
html.wormhole-mode .portfolio-section,
html.wormhole-mode .activity-section,
html.wormhole-mode .contact-section {
    background: transparent !important;
}

html[data-theme="light"] .wormhole-panel--tall .container {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(45, 90, 39, 0.15);
}

html[data-theme="light"].wormhole-mode .wormhole-panel--tall .container {
    background: transparent;
    border-color: transparent;
}

html[data-theme="light"].wormhole-mode .about-section,
html[data-theme="light"].wormhole-mode .journey-section,
html[data-theme="light"].wormhole-mode .skills-section,
html[data-theme="light"].wormhole-mode .portfolio-section,
html[data-theme="light"].wormhole-mode .activity-section,
html[data-theme="light"].wormhole-mode .contact-section {
    background: transparent !important;
}

.wormhole-waypoint .timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wormhole-waypoint .timeline-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, 0.25);
    background: rgba(0, 240, 255, 0.06);
    color: rgba(200, 240, 255, 0.9);
}

html.wormhole-mode .chatbot-container {
    z-index: 10001;
}

html.wormhole-mode .hero-social-links,
html.wormhole-mode .hero-interests {
    position: relative;
    z-index: 2;
}

.contact-content--form-only {
    display: block;
    max-width: 520px;
    margin: 2rem auto 0;
}

.contact-content--form-only .contact-form {
    width: 100%;
}

@media (max-width: 768px) {
    .hud-frame { inset: 64px 12px 88px; }
    .hud-readout--tl, .hud-readout--bl { left: 20px; }
    .hud-readout--tr, .hud-readout--br { right: 72px; }
    .hud-bl, .hud-br { bottom: 82px; }
    .hud-readout--bl, .hud-readout--br { bottom: 96px; }
    .warp-waypoint-dots { right: 8px; }
    .wormhole-panel { padding: 4.5rem 4% 5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .pano-frame__scanline,
    .warp-scroll-cue { animation: none; }
}

/* ── Classic scroll mode ── */

html.classic-site-mode body.home-page {
    background: var(--space-deep, #1a1a2e);
}

html.classic-site-mode .wormhole-chrome {
    display: none !important;
}

html.classic-site-mode .wormhole-scroll-proxy {
    display: none !important;
    height: 0 !important;
}

html.classic-site-mode .warp-scroll-cue {
    display: none;
}

html.classic-site-mode .wormhole-feed {
    position: relative;
    inset: auto;
    overflow: visible;
    pointer-events: auto;
    perspective: none;
    transform-style: flat;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(0.85rem, 2vw, 1.35rem);
    max-width: min(840px, 100%);
    margin: 0 auto;
    padding: 0 clamp(0.85rem, 3vw, 1.75rem) 3.5rem;
    box-sizing: border-box;
}

html.classic-site-mode .wormhole-panel {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
    min-height: 0;
    width: 100%;
    pointer-events: auto;
    will-change: auto;
    overflow: visible;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    scroll-margin-top: 5rem;
}

html.classic-site-mode .wormhole-panel--tall {
    min-height: auto;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 0;
}

html.classic-site-mode .wormhole-panel--hero {
    padding-top: 0;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

html.classic-site-mode .wormhole-panel--hero .hero-section {
    min-height: min(88svh, 780px);
}

html.classic-site-mode .section {
    padding: 0;
    background: transparent !important;
}

html.classic-site-mode .about-section,
html.classic-site-mode .journey-section,
html.classic-site-mode .skills-section,
html.classic-site-mode .contact-section {
    background: transparent !important;
}

html.classic-site-mode .pano-viewport {
    opacity: 1;
    transform: none;
    filter: none;
    width: 100%;
}

html.classic-site-mode .pano-frame {
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.1),
        0 12px 36px rgba(0, 0, 0, 0.35),
        inset 0 0 30px rgba(0, 240, 255, 0.03);
}

html.classic-site-mode .pano-frame__content {
    padding: clamp(1rem, 2.2vw, 1.5rem);
}

html.classic-site-mode .waypoint-header {
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
}

html.classic-site-mode .waypoint-card h3 {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    margin-bottom: 0.45rem;
}

html.classic-site-mode .waypoint-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0.65rem;
}

html.classic-site-mode .wormhole-waypoint .timeline-tags {
    gap: 0.35rem;
}

html.classic-site-mode .wormhole-waypoint .timeline-tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
}

html.classic-site-mode .about-content p {
    margin-bottom: 0.75rem;
    font-size: 0.94rem;
    line-height: 1.6;
}

html.classic-site-mode .about-interests {
    margin-top: 0.85rem;
    gap: 0.45rem;
}

html.classic-site-mode .section-description {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

html.classic-site-mode .wormhole-panel--tall .container {
    padding: clamp(1.15rem, 2.8vw, 1.85rem);
}

html.classic-site-mode .wormhole-section-label {
    margin-bottom: 0.35rem;
    font-size: 0.62rem;
}

html.classic-site-mode .section-title {
    margin-bottom: 0.65rem;
}

html.classic-site-mode .view-mode-toggle {
    border-color: rgba(108, 138, 255, 0.45);
    color: rgba(210, 225, 255, 0.92);
}

html.classic-site-mode .view-mode-toggle:hover {
    border-color: rgba(0, 240, 255, 0.55);
    color: #00f0ff;
}

.view-mode-toggle {
    position: fixed;
    left: 18px;
    bottom: 24px;
    z-index: 10002;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: rgba(8, 12, 32, 0.82);
    backdrop-filter: blur(12px);
    color: rgba(200, 240, 255, 0.92);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    max-width: min(280px, calc(100vw - 120px));
}

.view-mode-toggle:hover {
    border-color: rgba(255, 43, 214, 0.55);
    color: #fff;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.2);
    transform: translateY(-1px);
}

.view-mode-toggle i {
    font-size: 0.85rem;
    opacity: 0.85;
}

html[data-theme="light"] .view-mode-toggle {
    background: rgba(255, 255, 255, 0.92);
    color: #334;
    border-color: rgba(58, 86, 228, 0.25);
}

@media (max-width: 768px) {
    .view-mode-toggle {
        left: 12px;
        bottom: 18px;
        padding: 0.55rem 0.85rem;
        font-size: 0.62rem;
    }
}
