:root {
    color-scheme: dark;
}

html {
    background: var(--brand-carbon);
}

.sas-project-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% 48%, rgba(135, 57, 15, .12), transparent 46%),
        var(--brand-carbon);
    color: var(--brand-ivory);
    font-family: var(--font-body);
}

.sas-project-page *,
.sas-project-page *::before,
.sas-project-page *::after {
    box-sizing: border-box;
}

.sas-skip-link {
    position: fixed;
    z-index: 20;
    top: .75rem;
    left: .75rem;
    padding: .75rem 1rem;
    border-radius: .45rem;
    background: var(--brand-ivory);
    color: var(--brand-carbon);
    font-weight: 700;
    transform: translateY(-180%);
}

.sas-skip-link:focus-visible {
    transform: none;
}

.sas-media,
.sas-media__video,
.sas-media__veil {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sas-media {
    z-index: 0;
    overflow: hidden;
    background: var(--brand-carbon);
    pointer-events: none;
}

.sas-media__video {
    object-fit: cover;
    opacity: .84;
}

.sas-media__veil {
    background:
        radial-gradient(ellipse at center, rgba(14, 12, 10, .12) 0%, rgba(14, 12, 10, .34) 58%, rgba(14, 12, 10, .72) 100%),
        linear-gradient(180deg, rgba(14, 12, 10, .34), transparent 28%, rgba(14, 12, 10, .24));
}

.sas-media.is-unavailable .sas-media__video {
    display: none;
}

.sas-header {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 6.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem clamp(3rem, 5vw, 5rem);
    border-bottom: 1px solid rgba(247, 237, 220, .1);
    background: rgba(14, 12, 10, .5);
}

.sas-header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    width: min(42rem, 48vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(237, 140, 50, .8));
    content: "";
}

.sas-header__brand {
    display: inline-flex;
    flex: 0 1 auto;
}

.sas-header__brand img {
    display: block;
    width: clamp(13.75rem, 16vw, 16.25rem);
    height: auto;
}

.sas-header__actions,
.sas-back-link,
.sas-theme-indicator {
    display: flex;
    align-items: center;
}

.sas-header__actions {
    gap: 1.25rem;
}

.sas-back-link {
    min-height: 3rem;
    gap: .65rem;
    padding: .65rem 1.15rem;
    border: 1px solid rgba(247, 237, 220, .22);
    border-radius: .45rem;
    background: rgba(14, 12, 10, .48);
    color: var(--brand-ivory);
    font-size: .86rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color var(--motion-micro), background-color var(--motion-micro);
}

.sas-back-link:hover {
    border-color: rgba(237, 140, 50, .72);
    background: rgba(36, 30, 25, .72);
}

.sas-back-link:focus-visible,
.sas-header__brand:focus-visible,
.sas-choice:has(input:focus-visible),
.sas-continue:focus-visible,
.sas-field textarea:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 3px;
}

.sas-theme-indicator {
    min-height: 3rem;
    gap: .35rem;
    padding: .25rem .3rem .25rem .8rem;
    border: 1px solid rgba(247, 237, 220, .14);
    border-radius: 999px;
    background: rgba(14, 12, 10, .56);
    color: var(--text-2);
}

.sas-theme-indicator__active {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-orange);
    color: var(--brand-carbon);
    box-shadow: 0 0 1.1rem rgba(237, 140, 50, .25);
}

.sas-main {
    position: relative;
    z-index: 1;
    width: min(100% - clamp(3rem, 7vw, 10rem), 90rem);
    margin-inline: auto;
    padding: clamp(1.4rem, 3vh, 2.5rem) 0 clamp(2rem, 5vh, 4rem);
}

.sas-progress {
    width: min(47.5rem, calc(100vw - 6rem));
    margin: 0 auto clamp(1.5rem, 3vh, 2.25rem);
}

.sas-progress ol {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sas-progress li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: .55rem;
    color: rgba(247, 237, 220, .62);
    font-size: .82rem;
    font-weight: 600;
}

.sas-progress li::before,
.sas-progress li::after {
    position: absolute;
    z-index: -1;
    top: .65rem;
    width: 50%;
    height: 1px;
    background: rgba(247, 237, 220, .3);
    content: "";
}

.sas-progress li::before { left: 0; }
.sas-progress li::after { right: 0; }
.sas-progress li:first-child::before,
.sas-progress li:last-child::after { display: none; }

.sas-progress__marker {
    width: 1.3rem;
    height: 1.3rem;
    border: 2px solid rgba(247, 237, 220, .38);
    border-radius: 50%;
    background: var(--brand-carbon);
}

.sas-progress li.is-current {
    color: var(--brand-orange);
    font-weight: 700;
}

.sas-progress li.is-current::after {
    background: linear-gradient(90deg, var(--brand-orange), rgba(247, 237, 220, .3));
}

.sas-progress li.is-current .sas-progress__marker {
    border-color: var(--brand-orange);
    background: var(--brand-orange);
    box-shadow: 0 0 0 .28rem rgba(237, 140, 50, .13);
}

.sas-panel {
    width: min(100%, 75rem);
    margin-inline: auto;
    padding: clamp(2.25rem, 4vw, 3.5rem);
    border: 1px solid rgba(179, 86, 34, .82);
    border-radius: 1.75rem;
    background: rgba(14, 12, 10, .8);
    box-shadow: var(--shadow);
}

.sas-panel__intro {
    max-width: 55rem;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.sas-overline {
    margin: 0 0 .9rem;
    color: var(--brand-orange);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sas-panel h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 4.1vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1;
}

.sas-panel h1 em {
    color: var(--brand-orange);
    font-style: normal;
}

.sas-panel__intro > p:last-child {
    max-width: 48rem;
    margin: 1rem auto 0;
    color: var(--brand-ivory);
    font-size: clamp(1.02rem, 1.35vw, 1.2rem);
    line-height: 1.55;
}

.sas-project-form {
    display: grid;
    justify-items: center;
}

.sas-field {
    width: 100%;
}

.sas-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.sas-field textarea {
    display: block;
    width: 100%;
    min-height: 9.25rem;
    resize: vertical;
    padding: 1.15rem;
    border: 1px solid rgba(179, 86, 34, .82);
    border-radius: 1rem;
    background: rgba(27, 23, 20, .9);
    color: var(--brand-ivory);
    font: inherit;
    line-height: 1.5;
    box-shadow: inset 0 0 0 1px rgba(237, 140, 50, .06);
}

.sas-field textarea::placeholder {
    color: rgba(184, 173, 157, .82);
}

.sas-guidance {
    width: 100%;
    margin: 1.35rem 0 0;
    padding: 0;
    border: 0;
}

.sas-guidance legend {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--brand-ivory);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
    text-align: center;
}

.sas-guidance__choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.sas-choice {
    display: grid;
    min-height: 4.4rem;
    grid-template-columns: 1.35rem 1fr;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(247, 237, 220, .24);
    border-radius: 1rem;
    background: rgba(27, 23, 20, .72);
    color: var(--brand-ivory);
    cursor: pointer;
    transition: border-color var(--motion-micro), background-color var(--motion-micro), transform var(--motion-micro);
}

.sas-choice:hover {
    border-color: rgba(237, 140, 50, .64);
    background: rgba(36, 30, 25, .82);
    transform: translateY(-1px);
}

.sas-choice:has(input:checked) {
    border-color: var(--brand-orange);
    background: rgba(135, 57, 15, .22);
}

.sas-choice input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    accent-color: var(--brand-orange);
}

.sas-choice span {
    font-size: .96rem;
    font-weight: 600;
    line-height: 1.35;
}

.sas-continue {
    display: inline-flex;
    min-width: min(100%, 16.5rem);
    min-height: 3.4rem;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    margin-top: 1.25rem;
    padding: .8rem 1.5rem;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(110deg, var(--brand-orange), var(--brand-copper));
    color: #160d08;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 .8rem 2rem rgba(135, 57, 15, .22);
    transition: filter var(--motion-micro), transform var(--motion-micro);
}

.sas-continue:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
}

@media (max-width: 67.5rem) {
    .sas-main {
        width: calc(100% - 4rem);
    }

    .sas-panel {
        padding: 2.5rem;
    }

    .sas-guidance__choices {
        gap: .75rem;
    }
}

@media (max-width: 48rem) {
    .sas-header {
        min-height: 4.5rem;
        gap: .75rem;
        padding: .65rem clamp(1rem, 4vw, 1.5rem);
        background: rgba(14, 12, 10, .74);
    }

    .sas-header__brand img {
        width: clamp(8.9rem, 39vw, 10.75rem);
    }

    .sas-header__actions {
        gap: .55rem;
    }

    .sas-back-link {
        min-width: 2.75rem;
        min-height: 2.75rem;
        justify-content: center;
        padding: .5rem;
        border-radius: 50%;
    }

    .sas-back-link span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .sas-theme-indicator {
        min-height: 2.75rem;
        padding: .2rem .25rem .2rem .65rem;
    }

    .sas-theme-indicator__active {
        width: 2.25rem;
        height: 2.25rem;
    }

    .sas-main {
        width: 100%;
        padding: 1.35rem 1rem 2rem;
    }

    .sas-progress {
        width: 100%;
        margin-bottom: clamp(2.75rem, 10vh, 5rem);
    }

    .sas-progress li {
        gap: .45rem;
        font-size: clamp(.65rem, 2.7vw, .78rem);
    }

    .sas-progress li::before,
    .sas-progress li::after {
        top: .55rem;
    }

    .sas-progress__marker {
        width: 1.1rem;
        height: 1.1rem;
    }

    .sas-panel {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .sas-panel__intro {
        margin-bottom: 1.35rem;
        text-align: left;
    }

    .sas-overline {
        display: none;
    }

    .sas-panel h1 {
        font-size: clamp(2.3rem, 10vw, 3.25rem);
        line-height: 1.03;
    }

    .sas-panel__intro > p:last-child {
        margin-top: 1rem;
        font-size: clamp(1rem, 4vw, 1.12rem);
    }

    .sas-field textarea {
        min-height: 9rem;
    }

    .sas-guidance {
        margin-top: 1.5rem;
    }

    .sas-guidance legend {
        text-align: left;
    }

    .sas-guidance__choices {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .sas-choice {
        min-height: 4rem;
    }

    .sas-continue {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 23.5rem) {
    .sas-header__brand img {
        width: 8.4rem;
    }

    .sas-main {
        padding-inline: .85rem;
    }
}

@media (max-height: 47.5rem) and (min-width: 48.0625rem) {
    .sas-header {
        min-height: 5.2rem;
        padding-block: .65rem;
    }

    .sas-main {
        padding-block: 1rem 1.5rem;
    }

    .sas-progress {
        margin-bottom: 1rem;
    }

    .sas-panel {
        padding-block: 1.75rem;
    }

    .sas-panel__intro {
        margin-bottom: 1rem;
    }

    .sas-field textarea {
        min-height: 6.75rem;
    }

    .sas-guidance {
        margin-top: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sas-media__video {
        display: none;
    }

    .sas-project-page *,
    .sas-project-page *::before,
    .sas-project-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (forced-colors: active) {
    .sas-media {
        display: none;
    }

    .sas-panel,
    .sas-choice,
    .sas-field textarea,
    .sas-back-link {
        border: 1px solid CanvasText;
    }
}
