/* Column stage. The galaxy rules live in style.css and stay as they are. */

:root {
    --header-alpha: 0.99;
    --header-offset: 6.5rem;
    --menu-w: clamp(360px, 27vw, 540px);
    --pane-w: clamp(300px, 21vw, 420px);
}

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

.galaxy-shift {
    position: absolute;
    top: 0;
    left: -40vw;
    width: 180vw;
    height: 100%;
    transform: translate3d(0, 0, 0);
}

body > .container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    display: block;
    pointer-events: none;
    z-index: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

.stage {
    position: fixed;
    inset: 0;
    z-index: 2;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.stage::-webkit-scrollbar {
    display: none;
}

.stage-track {
    position: relative;
    height: 100%;
    min-width: 100%;
}

.col-home,
.col-home-scroll {
    width: var(--menu-w);
    height: 100%;
}

.col-home-scroll {
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.9);
    padding: 5.5rem 1.15rem 4.5rem;
}

[data-theme="light"] .col-home-scroll {
    background: rgba(250, 250, 250, 0.9);
}

.top-right-controls {
    z-index: 40;
    align-items: flex-end;
}

.top-right-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: calc(100vw - 32px);
}

.greeting,
.home-footer-text {
    box-sizing: border-box;
    margin: 0;
    padding: 8px 16px;
    border-radius: 0;
    background: color-mix(in srgb, var(--bg) 60%, transparent);
    white-space: normal;
    opacity: 1;
}

.greeting {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: 1;
    width: max-content;
    max-width: 420px;
    text-align: right;
}

.greeting a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-skip-ink: none;
}

.home-footer-text {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 40;
    width: max-content;
    max-width: 90vw;
    text-align: center;
    pointer-events: none;
}

.col-home-scroll .name {
    font-size: clamp(1.7rem, 2.4vw, 2.6rem);
    line-height: 1.1;
    text-align: center;
    overflow-wrap: anywhere;
    margin-bottom: 32px;
}

.col-home-scroll .headline-block,
.col-home-scroll .headline-text {
    display: block;
    width: 100%;
    max-width: none;
    text-align: left;
    font-size: 0.84rem;
    padding: 0;
    margin-bottom: 48px;
}

.col-home-scroll .headline-text {
    margin-bottom: 0;
}

.col-home-scroll .bio-lead {
    font-size: 0.93rem;
}

@media (min-width: 768px) {
    .corner-links {
        top: calc(1rem - 12px);
        left: calc(1rem - 12px);
        padding: 12px;
        background: color-mix(in srgb, var(--bg) calc(var(--header-alpha) * 100%), transparent);
        border: 0;
        z-index: 35;
    }

    .col-home {
        background: rgba(10, 10, 10, 0.9);
    }

    [data-theme="light"] .col-home {
        background: rgba(250, 250, 250, 0.9);
    }

    .col-home-scroll {
        height: calc(100% - 56px);
        background: transparent;
        padding-top: calc(var(--header-offset) + 16px);
        padding-bottom: 0;
        scrollbar-width: thin;
        scrollbar-color: var(--muted) transparent;
    }

    .col-home-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .col-home-scroll::-webkit-scrollbar-track,
    .col-home-scroll::-webkit-scrollbar-thumb {
        border-radius: 0;
    }

    .col-home-scroll::-webkit-scrollbar-thumb {
        background: var(--muted);
    }

    .col-home-scroll .name {
        margin-bottom: clamp(16px, 3dvh, 32px);
    }

    .col-home-scroll .headline-block {
        margin-bottom: clamp(24px, 3.8dvh, 48px);
    }
}

@media (min-width: 768px) and (max-height: 820px) {
    .col-home-scroll .headline-block {
        line-height: 1.05;
        margin-bottom: 24px;
    }

    .col-home-scroll .name {
        margin-bottom: 16px;
    }
}

@media (min-width: 1280px) {
    .col-home-scroll .link-text {
        white-space: nowrap;
    }
}

.col-home-scroll .links {
    align-items: stretch;
    width: 100%;
    gap: 0.15rem;
}

@media (min-width: 768px) {
    .col-home-scroll .links {
        gap: clamp(2px, calc(2px + (100dvh - 900px) * 0.04), 6px);
    }
}

.col-home-scroll .nav-link {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    text-align: left;
}

.col-panel {
    position: absolute;
    top: 6.75rem;
    height: calc(100% - 6.75rem);
    width: 0;
    overflow: hidden;
    z-index: 3;
    transition: width 0.35s linear(0, 0.12 12%, 0.88 88%, 1);
}

.col-panel.is-open {
    width: var(--pane-w);
}

.col-panel-inner {
    width: var(--pane-w);
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.38);
    padding: 1.25rem 1.25rem 2.5rem;
    position: relative;
    contain: layout paint;
}

[data-theme="light"] .col-panel-inner {
    background: rgba(250, 250, 250, 0.46);
}

.col-panel .page-body,
.col-panel .card-description,
.col-panel .card-meta,
.col-panel .card-subtitle,
.col-panel .education-details {
    font-size: 0.86rem;
}

.col-panel .glass-card {
    background: rgba(10, 10, 10, 0.22);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
    box-shadow: none;
}

[data-theme="light"] .col-panel .glass-card {
    background: rgba(250, 250, 250, 0.28);
}

.col-panel-inner.page-content {
    min-height: 0;
    max-width: none;
    align-items: stretch;
    gap: 1.25rem;
    z-index: auto;
}

.col-panel .page-title,
.col-panel .page-body,
.col-panel .card-subtitle,
.col-panel .card-description,
.col-panel .card-meta,
.col-panel .card-role-title,
.col-panel .education-details,
.entry-link .card-title {
    text-align: left;
}

.col-panel .card-with-image,
.col-panel .education-item,
.col-panel .card-header-with-logo {
    flex-direction: column;
    align-items: flex-start;
}

.col-panel .card-image-container {
    width: 100%;
    max-width: 280px;
}

.col-panel .card-links,
.col-panel .education-details {
    justify-content: flex-start;
}

.col-panel img {
    max-width: 100%;
    height: auto;
}

.entry-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0.35rem 0;
    color: var(--fg);
    text-decoration: none;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.entry-link .card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.nav-link.is-on,
.entry-link.is-on,
.entry-link.is-on .card-title {
    color: var(--fg);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-skip-ink: none;
    text-underline-offset: 0.18em;
}

.col-panel .page-title {
    font-size: 1.15rem;
    line-height: 1.2;
    margin-bottom: 0.85rem;
    text-shadow: none;
}

#panel-experiences .entry-link,
#panel-consulting .entry-link {
    min-height: 28px;
    padding: 0.05rem 0;
}

#panel-experiences .entry-link .card-title,
#panel-consulting .entry-link .card-title {
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.25;
}

.scroll-hint,
.scroll-hint::after {
    animation: none;
    transition: none;
}

.scroll-hint {
    position: fixed;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--fg) 40%, transparent);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    color: var(--fg);
    border-radius: 0;
    cursor: pointer;
}

.scroll-hint::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
}

.scroll-hint[hidden] {
    display: none;
}

.entry-block + .entry-block {
    margin-top: 0.15rem;
}

.type-root {
    overflow: hidden;
    contain: layout paint;
}

.type-word {
    display: inline;
    white-space: nowrap;
}

.type-char:not(.is-on) {
    visibility: hidden;
}

.type-char.is-caret::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 0.9em;
    margin-left: 1px;
    background: currentColor;
    vertical-align: -0.1em;
}

.entry-link:focus-visible,
.col-panel-inner:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--muted);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .col-panel {
        transition: none;
    }

    .type-char {
        visibility: visible;
    }

    .type-char.is-caret::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .stage {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .stage-track,
    .col-home,
    .col-home-scroll {
        width: 100% !important;
        height: auto;
        min-height: 100%;
        overflow: visible;
    }

    .col-panel,
    .col-panel.is-open {
        position: static;
        left: auto !important;
        top: auto;
        width: 100% !important;
        height: auto;
        overflow: visible;
        transition: none;
    }

    .col-panel-inner,
    .col-panel-inner.page-content {
        position: relative;
        left: auto !important;
        width: 100% !important;
        height: auto;
        overflow: hidden;
        contain: layout paint;
        transition: none;
    }

    .col-panel:not(.is-open) {
        display: none;
    }

    .top-right-row {
        flex-direction: column;
        align-items: flex-end;
    }

    .theme-toggle {
        order: 1;
    }

    .greeting {
        order: 2;
        max-width: calc(100vw - 32px);
    }

    .home-footer-text {
        bottom: 4.5rem;
        max-width: 90vw;
    }

    .stage {
        top: 13rem;
    }

    .col-home-scroll {
        padding-top: 1.5rem;
        padding-bottom: 8rem;
    }

    .contact-bubble {
        left: 1rem;
        right: 1rem;
        max-width: calc(100% - 2rem);
    }

    .bubble-content {
        min-width: 0;
        max-width: 100%;
    }

    .nav-link,
    .entry-link,
    .back-link,
    .corner-contact,
    .corner-name {
        min-height: 44px;
    }
}

.cursor-root {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    overflow: visible;
}

html.has-fine-cursor .cursor-root {
    display: block;
}

.cursor-mover,
.cursor-spark {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.cursor-mark {
    width: 22px;
    height: 22px;
    color: #fff;
    transform-origin: 11px 11px;
}

.cursor-mark svg {
    display: block;
    overflow: visible;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.4));
}

.cursor-mark.is-hot {
    transform: scale(1.25);
}

.cursor-spark {
    opacity: 0;
    color: #fff;
}

.cursor-spark svg {
    display: block;
    overflow: visible;
}

[data-theme="light"] .cursor-mark,
[data-theme="light"] .cursor-spark {
    color: #111111;
}

[data-theme="light"] .cursor-mark svg {
    filter: drop-shadow(0 0 6px rgba(70, 70, 70, 0.45)) drop-shadow(0 0 14px rgba(70, 70, 70, 0.22));
}

@media (hover: hover) and (pointer: fine) {
    html.has-fine-cursor,
    html.has-fine-cursor body,
    html.has-fine-cursor body * {
        cursor: none;
    }

    html.has-fine-cursor input,
    html.has-fine-cursor textarea {
        cursor: text;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor-spark {
        display: none;
    }

    .pulse.is-on {
        animation: none;
    }
}

@media (min-width: 768px) {
    :root {
        --fun-w: clamp(260px, calc(260px + (100vw - 1100px) * 0.0854), 330px);
    }

    .stage {
        right: calc(var(--fun-w) + 16px);
    }
}

.fun-box {
    box-sizing: border-box;
    width: min(100%, var(--fun-w, 260px));
    padding: 10px 12px;
    background: transparent;
    border: 0;
    color: var(--fg);
    font-size: 12px;
    line-height: 1.35;
    z-index: 30;
}

[data-theme="light"] .fun-box {
    background: transparent;
    border: 0;
}

.fun-q {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

#galaxyAura {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.yearbook-lead {
    margin: 0 0 1rem;
    text-align: left;
}

.yearbook-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 1.25rem;
}

.yearbook-form input,
.yearbook-form textarea {
    width: 100%;
    background: transparent;
    color: var(--fg);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 8px;
    font: inherit;
}

[data-theme="light"] .yearbook-form input,
[data-theme="light"] .yearbook-form textarea,
[data-theme="light"] .yearbook-form button {
    border-color: rgba(0, 0, 0, 0.22);
}

.yearbook-form button {
    background: transparent;
    color: var(--fg);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 6px 12px;
    cursor: pointer;
}

.yearbook-entry {
    margin: 0 0 1rem;
    text-align: left;
}

.yearbook-entry p {
    margin: 0 0 0.25rem;
}

.yearbook-entry .yearbook-who {
    color: var(--fg);
}

.yearbook-entry time {
    color: var(--muted);
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .fun-box {
        position: fixed;
        right: 16px;
        top: 7.5rem;
        bottom: 5.5rem;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--muted) transparent;
    }

    .fun-box::-webkit-scrollbar {
        width: 6px;
    }

    .fun-box::-webkit-scrollbar-track,
    .fun-box::-webkit-scrollbar-thumb {
        border-radius: 0;
    }

    .fun-box::-webkit-scrollbar-thumb {
        background: var(--muted);
    }
}

@media (max-width: 767px) {
    .fun-box {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 1.5rem;
        overflow: visible;
    }
}

.fun-line {
    margin: 0 0 8px;
}

.mta-sign {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    margin: 0 2px;
}

.mta-name {
    background: #111111;
    color: #ffffff;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.2;
}

.pulse {
    position: relative;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    background: #3a3a3a;
    flex: 0 0 auto;
}

.pulse.is-on {
    background: var(--royal);
    animation: pulse-dim 1.4s ease-in-out infinite;
}

@keyframes pulse-dim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.pulse-tip {
    display: none;
    position: absolute;
    right: 0;
    top: 14px;
    width: 180px;
    padding: 6px 8px;
    background: var(--bg);
    color: var(--fg);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 11px;
    line-height: 1.3;
    text-align: left;
    z-index: 2;
}

[data-theme="light"] .pulse-tip {
    border-color: rgba(0, 0, 0, 0.18);
}

.pulse:hover .pulse-tip,
.pulse:focus .pulse-tip,
.pulse:focus-visible .pulse-tip {
    display: block;
}

#nycClock {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fun-heading {
    margin: 14px 0 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.sp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    color: inherit;
    text-decoration: none;
}

.sp-row img,
.sp-grid img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    flex: 0 0 auto;
}

.sp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.sp-grid a {
    color: inherit;
    text-decoration: none;
    font-size: 10px;
    line-height: 1.2;
}

.sp-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    display: block;
    margin-bottom: 3px;
}

.sp-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    text-decoration: none;
}

.cover-row {
    display: flex;
    gap: 6px;
}

.cover-row a {
    flex: 1 1 0;
    min-width: 0;
}

.cover-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.tmdb-note {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
}

.fun-heading a {
    color: inherit;
    text-decoration: none;
}

.vsco-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.vsco-grid a {
    display: block;
}

.vsco-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
