button,
select {
    font: inherit;
}
button,
select,
summary {
    cursor: pointer;
}
button,
select {
    color: inherit;
    background: #211b24e8;
    border: 1px solid var(--line);
    border-radius: 4px;
    min-height: 44px;
    padding: 9px 14px;
}
button:hover,
select:hover {
    border-color: var(--accent);
}
button[aria-pressed='true'] {
    background: #4b2c37;
    border-color: var(--accent);
}
button:disabled {
    opacity: 0.45;
    cursor: wait;
}
.hero {
    position: relative;
    height: 100svh;
    min-height: 680px;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(#766280, #c299a9 50%, #4b3c49);
}
#canvas-container {
    position: absolute;
    inset: 0;
    z-index: -2;
}
#canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(#17101b65, transparent 23%, transparent 57%, #151316ed);
}
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px 4vw;
}
.site-header nav {
    display: flex;
    gap: 28px;
    font-size: 13px;
}
.site-header nav a {
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}
.site-header nav a:hover {
    border-color: var(--accent);
}
.hero-copy {
    position: absolute;
    bottom: 126px;
    left: 4vw;
    max-width: 430px;
    transition: opacity 0.2s;
}
.hero-copy h1 {
    font:
        400 clamp(32px, 3.4vw, 52px)/1.12 Georgia,
        serif;
    letter-spacing: -0.035em;
    margin: 12px 0;
}
.hero-copy p:last-child {
    max-width: 340px;
    color: #ddd2dc;
    font-size: 14px;
}
.hero[data-interior='true'] .hero-copy {
    opacity: 0;
    pointer-events: none;
}
.scene-toolbar {
    position: absolute;
    bottom: 30px;
    left: 4vw;
    right: 4vw;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.scroll-cue {
    font-size: 12px;
    text-decoration: none;
    letter-spacing: 0.07em;
    padding-bottom: 12px;
    white-space: nowrap;
}
.scroll-cue span {
    color: var(--accent);
    padding-left: 12px;
}
.scene-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.dashboard-tools {
    position: absolute;
    top: 100px;
    right: 4vw;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dashboard-tools output {
    flex-basis: 100%;
    color: var(--paper);
    font:
        11px/1.5 'Courier New',
        monospace;
}
.dashboard-tools button {
    font-size: 12px;
}
.scene-tools button,
.scene-tools select {
    font-size: 12px;
    padding: 9px 12px;
}
.scene-feedback {
    position: absolute;
    right: 4vw;
    bottom: 86px;
    font:
        11px/1.5 'Courier New',
        monospace;
    color: #dfd1dd;
    text-align: right;
}
#loading-status {
    position: absolute;
    top: 106px;
    left: 4vw;
    color: var(--paper);
    font:
        12px/1.5 'Courier New',
        monospace;
}
.content {
    max-width: 1180px;
    padding: 0 4vw;
    margin: 0 auto;
}
.content-section {
    padding: 90px 0;
    border-top: 1px solid var(--line);
}
.section-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 42px;
}
.section-intro h2,
.about h2 {
    margin: 10px 0;
    font:
        400 clamp(32px, 4vw, 48px)/1.12 Georgia,
        serif;
    letter-spacing: -0.03em;
}
.section-intro > p {
    max-width: 510px;
    color: var(--muted);
    align-self: end;
    margin: 0;
}
.project {
    display: grid;
    grid-template-columns: 72px 1fr 1fr;
    gap: 32px;
    align-items: start;
    padding: 32px 0;
    border-top: 1px solid var(--line);
}
.project-number {
    font:
        13px 'Courier New',
        monospace;
    color: var(--accent);
    padding-top: 9px;
}
.project h3 {
    margin: 0 0 8px;
    font:
        400 28px Georgia,
        serif;
}
.project p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
}
.project a {
    font-size: 13px;
}
.project .project-type {
    color: #dbc3d0;
    font:
        11px/1.6 'Courier New',
        monospace;
    letter-spacing: 0.05em;
}
.about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}
.about-copy {
    color: var(--muted);
    max-width: 630px;
}
.about-copy > p:first-child {
    margin-top: 0;
    color: var(--paper);
    font-size: 21px;
    line-height: 1.5;
}
.text-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
    font-size: 13px;
}
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding: 28px 0 36px;
    color: var(--muted);
    font-size: 12px;
}
.scene-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0712b8;
    z-index: 1000;
}
.scene-help {
    position: fixed;
    top: 90px;
    right: 4vw;
    z-index: 1001;
}
.scene-panel,
dialog {
    background: #211c24;
    border: 1px solid #69505e;
    border-radius: 8px;
    padding: 26px;
    width: min(500px, calc(100vw - 32px));
    max-height: 75svh;
    overflow-y: auto;
    color: var(--paper);
    box-shadow: 0 20px 80px #0008;
}
.scene-panel h2,
dialog h2 {
    font:
        28px Georgia,
        serif;
    margin-top: 0;
}
.scene-panel label {
    display: block;
    margin: 12px 0;
    font-size: 13px;
}
.scene-panel input[type='range'] {
    display: block;
    width: 100%;
    margin-top: 5px;
    accent-color: var(--accent);
}
.scene-panel > button {
    float: right;
}
.scene-presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.scene-help dl {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 8px;
    font-size: 13px;
}
.scene-help dt {
    color: var(--accent);
}
.scene-help dd {
    margin: 0;
}
.scene-help p {
    font-size: 13px;
    color: var(--muted);
}
dialog::backdrop {
    background: #0a0712b8;
}
dialog p {
    color: var(--muted);
}
dialog form {
    margin-top: 30px;
}
.scene-modal {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.scene-help {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
    max-width: none;
    max-height: none;
}
.scene-help .scene-panel {
    width: 100%;
    max-height: calc(100svh - 40px);
}
@media (max-width: 700px) {
    .dashboard-tools {
        top: 142px;
        left: 22px;
        right: auto;
    }
    .hero {
        min-height: 760px;
    }
    .site-header {
        padding: 22px 22px;
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }
    .wordmark {
        font-size: 35px;
    }
    .site-header nav {
        gap: 24px;
        width: 100%;
    }
    .hero-copy {
        left: 22px;
        right: 22px;
        bottom: 192px;
        max-width: 320px;
    }
    .hero-copy h1 {
        font-size: 34px;
    }
    .hero-copy p:last-child {
        font-size: 13px;
        max-width: 290px;
    }
    .scene-toolbar {
        left: 22px;
        right: 22px;
        bottom: 20px;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 13px;
    }
    .scene-tools {
        justify-content: flex-start;
        gap: 5px;
    }
    .scene-tools button,
    .scene-tools select {
        padding: 9px 10px;
    }
    .scene-feedback {
        left: 22px;
        right: 22px;
        bottom: 160px;
        text-align: left;
        font-size: 10px;
    }
    #loading-status {
        top: 142px;
        left: 22px;
    }
    .content {
        padding: 0 22px;
    }
    .content-section {
        padding: 56px 0;
    }
    .section-intro,
    .about {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .project {
        grid-template-columns: 28px 1fr;
        gap: 16px;
    }
    .project > div:last-child {
        grid-column: 2;
    }
    .site-footer {
        flex-direction: column;
        gap: 6px;
    }
    .scene-help {
        top: 20px;
        right: 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
