:root {
    color-scheme: dark;
    font-family: system-ui, sans-serif;
    color: #f8f7ff;
    background: #060711;
    --accent: #56ff25;
    --violet: #c593ff;
    --muted: #c5c5d3;
    --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    background:
        linear-gradient(#56ff250c 1px, transparent 1px),
        linear-gradient(90deg, #56ff250c 1px, transparent 1px),
        #060711;
    background-size: 40px 40px;
}
body.island-open { overflow: hidden; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.portfolio {
    width: min(100% - 96px, 1320px);
    margin-inline: auto;
    padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0);
}
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
    border-bottom: 1px solid #56ff254d;
}
.wordmark, .site-nav {
    font-family: var(--mono);
    font-weight: 700;
}
.wordmark {
    width: fit-content;
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    text-transform: uppercase;
    letter-spacing: -.06em;
    text-decoration: none;
}
.wordmark span { color: var(--accent); text-shadow: 0 0 14px #56ff2566; }
.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(.7rem, 3vw, 2.25rem);
    font-size: .82rem;
}
.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    min-height: 44px;
    text-decoration: none;
}
.site-nav a:hover { color: var(--accent); }
.contact-link { color: var(--accent); }
.dark-mode {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: .65rem;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font: 700 .72rem var(--mono);
    letter-spacing: .065em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}
.dark-mode-indicator {
    position: relative;
    width: 37px;
    height: 19px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 14px #56ff2533;
}
.dark-mode-indicator::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #081107;
}
.dark-mode:hover .dark-mode-indicator { box-shadow: 0 0 18px #56ff2570; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding-block: clamp(3rem, 8vh, 7rem) clamp(2rem, 5vh, 4rem);
}
.hero h1 {
    margin: 0;
    font-family: var(--mono);
    font-size: clamp(3.9rem, 8.2vw, 7.9rem);
    font-weight: 760;
    letter-spacing: -.095em;
    line-height: .86;
}
.hero h1 span {
    display: block;
    color: var(--accent);
    text-shadow: 0 0 .31em #56ff253d;
}
.intro {
    max-width: 42ch;
    margin: clamp(1.4rem, 4vw, 2.25rem) 0 1.6rem;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.5vw, 1.19rem);
    line-height: 1.65;
}
.hero-image {
    margin: 0;
    overflow: hidden;
    padding: 4px;
    border: 1px solid #56ff2566;
    border-radius: 3px;
    background: #0b1512;
    box-shadow: 0 0 32px #56ff2512;
}
.hero-scene {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: transparent;
}
.hero-scene:enabled { cursor: pointer; }
.hero-scene:focus-visible { outline-offset: -3px; }
@media (hover: hover) {
    .hero-scene:enabled:hover { outline: 1px solid var(--accent); outline-offset: -1px; }
}
.hero-scene img {
    display: block;
    width: 100%;
    height: auto;
}
.hero-backdrop { background: #15101e; }
.hero-rotor {
    position: absolute;
    left: .37%;
    top: -.2%;
    /* Both layers share a 1606 × 979 canvas. The origin is the cutout's hub at (827, 227). */
    transform-origin: 51.49% 23.19%;
    scale: .8;
    pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
    .hero-rotor { animation: rotor-spin 20s linear infinite; }
}
@keyframes rotor-spin {
    to { transform: rotate(1turn); }
}
.hero-image figcaption {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .72rem .7rem;
    color: var(--accent);
    font: 700 .74rem var(--mono);
    letter-spacing: .09em;
    text-transform: uppercase;
}
.scene-dot {
    width: .46rem;
    height: .46rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 .7rem #56ff2599;
}
.launch-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem 1.1rem;
}
.launch-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    min-height: 50px;
    padding: .7rem 1.1rem;
    border: 1px solid var(--accent);
    border-radius: 3px;
    background: #56ff2511;
    box-shadow: 0 0 17px #56ff2525;
    color: var(--accent);
    font: 750 .85rem var(--mono);
    letter-spacing: .055em;
    text-transform: uppercase;
    cursor: pointer;
    transition: box-shadow 180ms ease, transform 180ms ease;
}
.launch-button span[aria-hidden] { font: 700 1.2rem system-ui, sans-serif; }
.launch-button:disabled { cursor: wait; opacity: .78; }
.launch-button:hover:not(:disabled) { box-shadow: 0 0 21px #56ff2575; }
.launch-button:active:not(:disabled) { transform: translateY(1px); }
.countdown, .status {
    margin: 0;
    color: var(--muted);
    font: .77rem/1.6 var(--mono);
}
.countdown { display: flex; align-items: center; gap: .45rem; }
.countdown p { margin: 0; }
.countdown-pause {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid #56ff2559;
    border-radius: 3px;
    background: #0c160e;
    color: var(--accent);
    cursor: pointer;
}
.countdown-pause:hover { border-color: var(--accent); }
.countdown-pause span {
    width: .6rem;
    height: .77rem;
    border-inline: 2px solid currentColor;
}
.countdown time {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.status { margin-top: .65rem; }
.status:empty { display: none; }

.guide {
    display: flex;
    align-items: center;
    gap: clamp(.7rem, 2vw, 1.6rem);
    min-height: 66px;
    padding: .42rem .6rem .42rem 1.15rem;
    border: 1px solid #56ff254d;
    border-radius: 3px;
    background: #0b1212;
    scroll-margin-top: 1rem;
}
.guide h2 {
    flex: none;
    margin: 0;
    color: var(--violet);
    font: 750 .78rem var(--mono);
    letter-spacing: .07em;
    text-transform: uppercase;
}
.guide-window { flex: 1; min-width: 0; }
.guide-track { width: fit-content; }
.guide-steps {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #ebecf6;
    font: .88rem/1.55 var(--mono);
}
.guide-steps li {
    display: flex;
    align-items: baseline;
    gap: .7rem;
}
.guide-steps li::before {
    content: "";
    flex: none;
    width: .34rem;
    height: .34rem;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-.08em);
}
.guide-repeat { display: none; }
.guide-toggle {
    display: grid;
    flex: none;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid #c593ff5c;
    border-radius: 3px;
    background: #171024;
    color: var(--violet);
    cursor: pointer;
}
.guide-toggle span {
    width: 10px;
    height: 12px;
    border-inline: 3px solid currentColor;
}
.guide-toggle[aria-pressed="true"] span {
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-right: 0;
    border-left: 9px solid currentColor;
    margin-left: 2px;
}
@media (prefers-reduced-motion: no-preference) {
    .guide-animated .guide-window {
        overflow: hidden;
        mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 16px), transparent);
    }
    .guide-animated .guide-track {
        display: flex;
        width: max-content;
        animation: guide-scroll 29s linear infinite;
    }
    .guide-animated .guide-steps {
        flex: none;
        flex-wrap: nowrap;
        padding-inline: 14px;
        white-space: nowrap;
    }
    .guide-animated .guide-repeat { display: flex; }
    .guide-animated[data-paused="true"] .guide-track { animation-play-state: paused; }
}
@keyframes guide-scroll {
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .guide-toggle { display: none; }
    .launch-button { transition: none; }
}

.about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 1rem 4rem;
    margin-top: clamp(3rem, 8vh, 6rem);
    padding-block: clamp(1.6rem, 4vw, 3rem) clamp(3rem, 8vh, 6rem);
    border-top: 1px solid #d2b2ff3b;
    scroll-margin-top: 1rem;
}
.about h2 {
    margin: 0;
    color: var(--violet);
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    font-weight: 730;
    letter-spacing: -.065em;
    line-height: 1;
}
.about-copy {
    color: var(--muted);
    font-size: clamp(1rem, 1.55vw, 1.15rem);
    line-height: 1.7;
}
.about-copy p { margin: 0 0 1rem; }
.about-copy p:last-child { margin-bottom: 0; }
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .about-copy p {
            animation: about-reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 90%;
        }
    }
}
@keyframes about-reveal {
    from { opacity: .7; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
    .portfolio { width: min(100% - 40px, 40rem); }
    .site-header {
        grid-template-columns: 1fr auto;
        gap: 0 .65rem;
        min-height: 62px;
        padding-top: .4rem;
    }
    .site-nav {
        grid-area: 2 / 1 / 3 / -1;
        justify-content: space-between;
        border-top: 1px solid #56ff252d;
    }
    .site-nav { font-size: .75rem; }
    .hero { grid-template-columns: 1fr; gap: 1.6rem; }
    .hero h1 { font-size: clamp(3.2rem, 11vw, 6.6rem); line-height: .92; }
    .hero h1 span { display: inline; }
    .intro { margin-top: 1.2rem; }
    .about { grid-template-columns: 1fr; }
    .guide {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: .25rem .5rem;
        padding: .45rem .7rem .75rem;
    }
    .guide-window { grid-area: 2 / 1 / 3 / -1; }
    .guide-toggle { grid-area: 1 / 2; }
}
@media (max-width: 400px) {
    .portfolio { width: calc(100% - 32px); }
    .site-nav { gap: .6rem; }
    .guide { gap: .5rem; padding-left: .8rem; }
}

.webgl {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}
.island-tools {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + .75rem);
    left: calc(env(safe-area-inset-left, 0px) + .75rem);
    display: flex;
    gap: .5rem;
}
.island-icon {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid #56ff2599;
    border-radius: 3px;
    background: #090d0ef0;
    color: var(--accent);
    box-shadow: 0 0 12px #56ff2533;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}
.island-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.island-icon .icon-off,
#island-sound[aria-pressed="true"] .icon-on { display: none; }
#island-sound[aria-pressed="true"] .icon-off,
#island-bloom[aria-pressed="false"] .icon-off { display: inline; }
#island-bloom[aria-pressed="true"] { color: var(--violet); }
#island-bloom[aria-pressed="true"] .bloom-star { fill: #c593ff35; }
.island-icon:active { transform: scale(.94); }
@media (hover: hover) {
    .island-icon:hover { background-color: #172d17; }
}
@media (prefers-reduced-motion: reduce) {
    .island-icon { transition: none; }
}
@media (forced-colors: active) {
    .island-icon { border-color: ButtonText; background: ButtonFace; }
}

.terminal-dialog {
    width: min(100% - 2rem, 390px);
    padding: 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 3px;
    background: #090b16;
    color: #f8f7ff;
    box-shadow: 0 0 35px #56ff2530;
}
.terminal-dialog::backdrop { background: #03050bd9; }
.terminal-dialog h2 {
    margin: .55rem 0;
    color: var(--accent);
    font: 750 clamp(1.15rem, 5vw, 1.55rem) var(--mono);
}
.terminal-dialog p { margin: 0 0 1.2rem; color: var(--muted); line-height: 1.5; }
.terminal-dialog button {
    min-height: 44px;
    padding: .45rem .75rem;
    border: 1px solid var(--violet);
    border-radius: 3px;
    background: #20142b;
    color: var(--violet);
    font: 700 .8rem var(--mono);
    cursor: pointer;
}
.joke-art {
    display: flex;
    align-items: center;
    height: 3.25rem;
    color: var(--violet);
    font: 800 1.45rem var(--mono);
    letter-spacing: .08em;
}
.fart-art { width: fit-content; }
.pause-art { position: relative; }
.pause-art span { color: var(--accent); font-size: 2rem; }
.pause-art b {
    margin-left: .8rem;
    padding: .12rem .36rem;
    border: 1px solid var(--violet);
    transform: rotate(-9deg);
}
@media (prefers-reduced-motion: no-preference) {
    .terminal-dialog[open] .fart-art { animation: sputter .55s ease-out both; }
    .terminal-dialog[open] .pause-art span { animation: eject .7s ease-out both; }
    .terminal-dialog[open] .pause-art b { animation: stamp .45s .21s cubic-bezier(.2, .9, .4, 1.3) both; }
}
@keyframes sputter {
    0% { transform: scale(.65); opacity: .45; }
    38% { transform: translateX(9px) scale(1.14, .81); opacity: 1; }
    65% { transform: translateX(1px) scale(.93, 1.14); }
    100% { transform: none; }
}
@keyframes eject {
    0% { transform: none; }
    40% { transform: translateY(-.7rem) rotate(12deg); }
    100% { transform: translateY(.45rem) rotate(-24deg); opacity: .55; }
}
@keyframes stamp {
    from { transform: rotate(18deg) scale(1.8); opacity: 0; }
    to { transform: rotate(-9deg) scale(1); opacity: 1; }
}


/*# sourceMappingURL=main.css.map*/