/* Keep the original tunnel and its parallax; surfaces sit above the photograph. */
html.immersive-page { overflow-x: clip; }
body.immersive { --line: #ffffff29; --muted: #c4beaf; --panel: #12110ee6; background: #100e0b; overflow-x: clip; }
.immersive main { width: min(1280px, calc(100% - 64px)); margin: 0 auto; background: none; }
.personal-home main { scroll-margin-top: 58px; }
.immersive .site-background ~ header.site-header { background: linear-gradient(180deg, #0b0d13ed, #0b0d13a8); border-bottom: 1px solid #ffffff12; backdrop-filter: blur(12px); }
.immersive .site-header { max-width: none; min-height: 88px; padding: 18px max(32px, calc((100vw - 1280px) / 2)); }
.immersive .brand { font-size: 16px; }
.immersive .site-header nav { gap: 15px; font-size: 13px; }
.immersive .site-header .member-menu-panel { background: #11120ff7; }
.immersive .site-header nav > a:not(.account-button) { position: relative; }
.immersive .site-header nav > a:not(.account-button)::after { content: ''; position: absolute; height: 1px; bottom: -6px; left: 0; right: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.immersive .site-header nav > a:hover::after { transform: scaleX(1); }
.immersive footer { max-width: 1344px; padding: 32px; font-size: 12px; }
.immersive .scroll-progress { position: fixed; inset: 0 0 auto; z-index: 90; height: 2px; background: var(--gold); box-shadow: 0 0 14px #ffce32aa; transform: scaleX(var(--page-progress, 0)); transform-origin: left; pointer-events: none; }
.personal-home .hero, .personal-home .section { max-width: none; padding-inline: 0; }
.personal-home .hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 42px 70px; min-height: 0; padding-top: 66px; padding-bottom: 48px; align-items: center; }
.home-greeting { display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: 12px; letter-spacing: .04em; margin-bottom: 26px; }
.home-greeting::before { content: ''; width: 28px; height: 1px; background: var(--gold); box-shadow: 0 0 9px #ffce3270; }
.personal-home .hero h1 { font-size: clamp(42px, 5.2vw, 76px); line-height: 1.08; letter-spacing: -.065em; text-shadow: 0 3px 26px #0008; }
.personal-home .hero h1 > span { color: var(--gold); }
.personal-home .hero-sub { font-size: clamp(23px, 2.3vw, 32px); line-height: 1.55; font-weight: 700; max-width: 560px; margin-top: 28px; text-wrap: balance; word-break: keep-all; }
.personal-home .hero-lede { font-size: 15px; line-height: 1.9; max-width: 480px; margin-top: 20px; text-shadow: 0 2px 8px #000; }
.personal-home .hero-actions { gap: 15px; margin: 28px 0 23px; }
.personal-home .button { position: relative; overflow: hidden; border-radius: 5px; min-height: 48px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.personal-home .button::after { content: ''; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, #fff5 50%, transparent 60%); transform: translateX(-100%); pointer-events: none; }
.personal-home .button:hover::after { transform: translateX(100%); transition: transform .65s; }
.personal-home .button:hover { transform: translateY(-3px); box-shadow: 0 10px 32px #0006; }
.personal-home .primary:hover { box-shadow: 0 10px 35px #ffce3233; }
.personal-home .quiet { background: #100e0b7a; }
.personal-home .role-note { color: #d2c4a4; font-size: 11px; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.immersive .motion-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 6px 9px; border: 1px solid #ffffff2b; border-radius: 4px; background: #100e0b94; color: var(--muted); font-size: 11px; line-height: 1.4; }
.motion-toggle-state { display: flex; align-items: center; gap: 5px; font: 10px var(--mono); }
.motion-toggle-state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #827d70; }
.motion-toggle-state::after { content: 'OFF'; }
.motion-toggle[aria-pressed=true] .motion-toggle-state::before { background: var(--gold); box-shadow: 0 0 8px #ffce3280; }
.motion-toggle[aria-pressed=true] .motion-toggle-state::after { content: 'ON'; color: var(--gold); }
.hero-art { position: relative; isolation: isolate; justify-self: end; width: 100%; max-width: 440px; perspective: 1100px; animation: art-drift 7s ease-in-out infinite; }
.art-outline { position: absolute; right: -18px; top: -48px; z-index: -1; font: 800 clamp(100px, 15vw, 210px)/1 var(--sans); letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 1px #ffce3240; pointer-events: none; }
.personal-home .portrait { position: relative; width: 100%; max-width: none; margin: 0; padding: 12px; border: 1px solid #ffce3260; border-radius: 9px; background: #14100ce8; box-shadow: 0 30px 80px #0009, 0 0 65px #f2a11312; transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transform-style: preserve-3d; }
.portrait-image { position: relative; overflow: hidden; border-radius: 4px; }
.personal-home .portrait img { border-radius: 0; display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.portrait-image::after { content: ''; position: absolute; inset: -40% -80%; pointer-events: none; background: linear-gradient(115deg, transparent 44%, #ffe8a626 49%, #fff9dc55 50%, transparent 55%); transform: translateX(-45%); animation: portrait-sweep 9s ease-in-out infinite; }
.personal-home .portrait figcaption { position: relative; padding: 16px 5px 4px; font: 11px var(--mono); color: #f1d789; }
.portrait-glint { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--light-x, 50%) var(--light-y, 30%), #ffe2a64d, transparent 58%); opacity: var(--surface-active, 0); transition: opacity .4s; mix-blend-mode: screen; }
.art-sparks { position: absolute; inset: -30px; pointer-events: none; z-index: -1; }
.art-sparks i { position: absolute; bottom: 0; left: 12%; width: 3px; height: 3px; background: #ffcf70; border-radius: 50%; box-shadow: 0 0 10px #ffc746; animation: ember-rise 7s linear infinite; opacity: 0; }
.art-sparks i:nth-child(2) { left: 95%; animation-delay: -2s; animation-duration: 9s; }
.art-sparks i:nth-child(3) { left: 54%; animation-delay: -4s; animation-duration: 8s; }
.art-sparks i:nth-child(4) { left: 4%; animation-delay: -6s; animation-duration: 10s; }
.art-sparks i:nth-child(5) { left: 84%; animation-delay: -3s; animation-duration: 6s; }
.art-sparks i:nth-child(6) { left: 35%; animation-delay: -1s; animation-duration: 11s; }
.home-directory { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); border-top: 1px solid #ffce3255; background: #100e0bc4; backdrop-filter: blur(8px); }
.directory-intro { padding: 24px 20px 24px 0; }
.home-directory h2 { font-size: 20px; letter-spacing: -.04em; }
.directory-intro > p { margin-top: 8px; color: var(--muted); font-size: 11px; }
.home-directory .directory-guestbook { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--gold); margin-top: 13px; }
.home-directory > a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left: 1px solid #ffffff1c; padding: 22px; transition: background .3s, transform .3s; }
.home-directory > a::after { content: ''; position: absolute; inset: -1px 0 auto; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.home-directory > a:hover::after { transform: scaleX(1); }
.home-directory > a:hover { background: #ffce3209; transform: translateY(-4px); }
.home-directory strong { display: block; font-size: 16px; font-weight: 700; }
.home-directory small { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 10px; }
.home-directory > a > span:last-child { font-size: 21px; color: var(--gold); transition: transform .3s; }
.home-directory > a:hover > span:last-child { transform: translateX(4px); }
.personal-home .section { padding-block: 68px; scroll-margin-top: 88px; }
.personal-home .section-heading { grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; margin-bottom: 34px; }
.personal-home .section-heading h2 { font-size: clamp(27px, 3vw, 38px); }
.personal-home .section-heading p { font-size: 15px; line-height: 1.95; text-shadow: 0 2px 10px #000; }
.personal-home .about .section-heading { margin-bottom: 0; }
.personal-home .about { padding-block: 48px; }
.personal-home .interest-grid { gap: 0 40px; }
.personal-home .interest-card { border: 0; border-top: 1px solid #ffffff30; border-radius: 0; background: #100e0bc4; padding: 26px 20px; min-height: 0; }
.personal-home .interest-card h3 { font-size: 22px; margin-bottom: 22px; }
.personal-home .tags, .personal-home .tool-list { gap: 10px; }
.personal-home .tags li { padding: 0; border: 0; background: none; }
.personal-home .tool-button { padding: 7px 10px; font-size: 13px; border-radius: 5px; background: #ffffff05; transition: transform .25s, border-color .25s, background .25s; }
.personal-home .tool-button:hover { transform: translateY(-3px); border-color: #ffce3270; background: #ffce3210; }
.personal-home .tool-logo { flex-basis: 32px; width: 32px; height: 32px; padding: 5px; border-radius: 4px; }
.personal-home .tool-logo img { width: 24px; height: 24px; }
.personal-home .tool-logo-wide { flex-basis: 78px; width: 78px; }
.personal-home .tool-logo-wide img { width: 68px; height: 24px; }
.personal-home .work-grid { gap: 30px; margin-top: 30px; }
.personal-home .work-card { padding: 32px; border-radius: 6px; background: #18130de8; border-color: #ffffff27; border-top-color: #ffce3260; transition: border-color .3s, box-shadow .3s; }
.personal-home .work-card:hover { border-color: #ffce3280; box-shadow: 0 15px 50px #0005; }
.personal-home .work-card h3 { font-size: 30px; }
.personal-home .work-title-link img { width: 54px; height: 54px; flex-basis: 54px; }
.personal-home .work-card > p { font-size: 14px; }
.personal-home .video-card { border-radius: 6px; background: #13110de8; }
.personal-home .video-card:hover { transform: translateY(-6px); border-color: #ffce3270; }
.personal-home .video-status { background: #11100dd9; border: 1px solid var(--line); border-radius: 5px; }
.personal-home .useful-site-grid { gap: 0 30px; }
.personal-home .useful-site-button { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #100e0bc4; padding: 20px; min-height: 88px; box-shadow: none; }
.personal-home .useful-site-button:hover { transform: translateX(4px); background: #21190de0; }
.personal-home .useful-site-name { font-size: 16px; }
.personal-home .useful-site-icon { flex-basis: 46px; width: 46px; height: 46px; padding: 6px; border-radius: 5px; }
.personal-home .useful-site-icon img { max-width: 34px; max-height: 34px; }
.personal-home .guestbook-preview-link { border-radius: 6px; background: #16120de6; }
.personal-home .links { background: #141009d9; color: var(--ink); border-top: 1px solid #ffce3255; padding-bottom: 38px; }
.personal-home .links .section-heading p, .personal-home .social-grid small { color: var(--muted); }
.personal-home .social-grid { gap: 0; }
.personal-home .social-grid a { border: 0; border-left: 1px solid #ffffff29; padding: 0 24px; border-radius: 0; }
.personal-home .social-grid a:first-child { border-left: 0; padding-left: 0; }
.personal-home .social-grid a:hover { background: none; }
.personal-home .social-name { font-size: 20px; margin-bottom: 14px; transition: color .25s, transform .25s; }
.personal-home .social-grid a:hover .social-name { color: var(--gold); transform: translateY(-4px); }
.personal-home .social-grid a > span:not(.social-name) { font-size: 12px; }
.motion-surface { position: relative; isolation: isolate; }
.motion-surface::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(380px circle at var(--light-x, 50%) var(--light-y, 50%), #ffce321c, transparent 75%); opacity: var(--surface-active, 0); transition: opacity .35s; }
.server-directory .ranking-shell { padding: 36px 0 60px; }
.directory-breadcrumb { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 12px; color: var(--muted); }
.directory-breadcrumb .motion-toggle { margin-left: auto; }
.directory-breadcrumb a:hover { color: var(--gold); }
.server-directory .ranking-title h1 { font-size: clamp(36px, 4.5vw, 60px); }
.server-directory .ranking-intro > p:last-child { font-size: 15px; text-shadow: 0 2px 8px #000; }
.server-directory .ranking-stats { display: flex; flex-wrap: wrap; gap: 20px 52px; padding: 22px 0; border-block: 1px solid var(--line); background: #100e0b9c; }
.server-directory .ranking-stats > div { display: flex; align-items: baseline; gap: 15px; padding: 0; border: 0; background: none; }
.server-directory .ranking-stats span { font-size: 12px; }
.server-directory .ranking-stats strong { font-size: 28px; margin: 0; }
.server-directory .ranking-controls, .server-directory .country-filter { border-radius: 6px; background: #12110ee8; backdrop-filter: blur(8px); }
.server-directory .ranking-controls input, .server-directory .ranking-controls select { border-radius: 4px; }
.server-directory .ranking-list-heading { border-block: 1px solid var(--line); background: #0d0d0ae8; }
.server-directory .ranking-list { gap: 8px; }
.server-directory .ranking-card { border-radius: 6px; background: #12100de8; transition: border-color .3s, background .3s; }
.server-directory .ranking-card:hover, .server-directory .ranking-card[open] { border-color: #ffce3266; background-color: #20190fe8; }
.server-directory .ranking-row { padding-block: 20px; }
.server-directory .ranking-score strong { transition: text-shadow .3s; }
.server-directory .ranking-card:hover .ranking-score strong { text-shadow: 0 0 24px #ffce3255; }
.server-directory .ranking-name strong { font-size: 17px; }
.server-directory .community-icon { border-radius: 5px; }
.server-directory .analytics-chart, .server-directory .analytics-cards > div, .server-directory .community-comments { border-radius: 6px; background: #14110de8; }
.server-directory .ranking-notes { background: #100e0bbf; padding: 20px; }
@keyframes art-drift { 0%,100% { transform: translateY(0) rotate(1.5deg); } 50% { transform: translateY(-10px) rotate(-.8deg); } }
@keyframes portrait-sweep { 0%,30% { transform: translateX(-45%); opacity: 0; } 35% { opacity: 1; } 62%,100% { transform: translateX(45%); opacity: 0; } }
@keyframes ember-rise { 0% { transform: translate3d(0,0,0); opacity: 0; } 20% { opacity: .75; } 80% { opacity: .3; } 100% { transform: translate3d(24px,-460px,0); opacity: 0; } }
.immersive.motion-paused .hero-art, .immersive.motion-paused .art-sparks i, .immersive.motion-paused .portrait-image::after { animation-play-state: paused; }
.immersive.motion-disabled .hero-art, .immersive.motion-disabled .art-sparks i, .immersive.motion-disabled .portrait-image::after { animation: none; }
.immersive.motion-disabled .portrait { transform: none; }
.immersive.motion-disabled .button:hover, .immersive.motion-disabled .home-directory > a:hover, .immersive.motion-disabled .tool-button:hover, .immersive.motion-disabled .useful-site-button:hover, .immersive.motion-disabled .video-card:hover, .immersive.motion-disabled .social-grid a:hover .social-name { transform: none; }
.immersive.motion-disabled .button::after { display: none; }
@media (max-width: 1180px) and (min-width: 761px) {
  .personal-home #site-nav > a[href^='#'] { display: none; }
  .personal-home .hero { gap: 38px; }
  .home-directory { grid-template-columns: 1fr 1fr 1fr; }
  .directory-intro { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 18px; padding: 20px 0; }
  .directory-intro .directory-guestbook { margin: 0 0 0 auto; }
  .home-directory > a { border-top: 1px solid #ffffff1c; }
  .home-directory > a:nth-child(2) { border-left: 0; }
}
@media (max-width: 760px) {
  .immersive main { width: calc(100% - 36px); }
  .immersive .site-header { min-height: 78px; padding: 14px 18px; }
  .immersive .brand { font-size: 14px; }
  .immersive footer { padding: 28px 18px; }
  .personal-home #site-nav { right: 18px; background: #11110ef7; }
  .personal-home .hero { grid-template-columns: 1fr; gap: 42px; padding-top: 38px; }
  .home-greeting { margin-bottom: 22px; font-size: 11px; }
  .personal-home .hero h1 { font-size: clamp(37px, 10vw, 65px); }
  .personal-home .hero-sub { font-size: 24px; max-width: 540px; margin-top: 23px; }
  .personal-home .hero-lede { font-size: 14px; }
  .hero-art { max-width: 400px; width: 90%; justify-self: center; margin-top: 15px; }
  .art-outline { font-size: 140px; right: -5px; top: -35px; }
  .home-directory { grid-template-columns: 1fr; }
  .directory-intro { padding: 23px 18px; }
  .home-directory > a { border-left: 0; border-top: 1px solid var(--line); padding: 22px 18px; }
  .home-directory small { margin-top: 6px; }
  .personal-home .section { padding-block: 46px; scroll-margin-top: 78px; }
  .personal-home .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 26px; }
  .personal-home .section-heading h2 { font-size: 29px; }
  .personal-home .section-heading p { font-size: 14px; }
  .personal-home .interest-grid, .personal-home .work-grid { grid-template-columns: 1fr; }
  .personal-home .interest-card { padding: 24px 14px; }
  .personal-home .work-grid { gap: 18px; }
  .personal-home .work-card { padding: 26px 20px; }
  .personal-home .work-card h3 { font-size: 26px; }
  .personal-home .useful-site-grid { grid-template-columns: 1fr; }
  .personal-home .social-grid { gap: 28px 20px; }
  .personal-home .social-grid a, .personal-home .social-grid a:first-child { padding: 0; border: 0; }
  .server-directory .ranking-shell { padding-top: 25px; }
  .server-directory .ranking-title h1 { font-size: 34px; }
  .server-directory .ranking-stats { gap: 12px 24px; }
  .server-directory .ranking-stats strong { font-size: 23px; }
  .server-directory .ranking-stats span { font-size: 11px; }
  .server-directory .ranking-controls { padding: 16px; }
  .server-directory .ranking-name strong { font-size: 14px; }
  .server-directory .ranking-notes { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .immersive:not(.motion-enabled) .hero-art, .immersive:not(.motion-enabled) .art-sparks i, .immersive:not(.motion-enabled) .portrait-image::after { animation: none; }
  .immersive:not(.motion-enabled) .portrait { transform: none; }
  .immersive:not(.motion-enabled) .button:hover, .immersive:not(.motion-enabled) .home-directory > a:hover, .immersive:not(.motion-enabled) .tool-button:hover, .immersive:not(.motion-enabled) .useful-site-button:hover, .immersive:not(.motion-enabled) .video-card:hover, .immersive:not(.motion-enabled) .social-grid a:hover .social-name { transform: none; }
  .immersive:not(.motion-enabled) .button::after { display: none; }
}
