/* =========================================================================
   Advids Start Brief — dark glassmorphism theme.

   Styling only: every class name from the original stylesheet is kept, so no
   PHP or JavaScript changes are needed to switch looks. The previous light
   theme is preserved as style.light.css.bak.

   Modelled on a dark violet login-screen reference: flowing purple light
   behind a frosted glass panel, hairline-outlined transparent inputs, and a
   pale lavender gradient button with dark text.

   Two deliberate departures from that reference:

   1. Contrast is raised. The reference puts pale violet text on violet, which
      photographs well and fails WCAG badly. A 21-question form with dense help
      text has to be genuinely readable, so body text here sits around 11:1
      against the panel rather than roughly 2:1.

   2. The background light is drawn with CSS gradients rather than the
      reference 3D render, which is someone else's artwork. Drop your own
      image onto body::before if you have one to use.
   ========================================================================= */

:root {
    /* Ground */
    --bg-deep: #08050f;
    --bg-base: #0d0718;
    --bg-raise: #150d26;

    /* Accent: violet from the reference, warmed toward the Advids magenta
       (#AF1B61) so the form still reads as Advids rather than generic purple. */
    --violet: #8b5cf6;
    --violet-soft: #a78bfa;
    --violet-pale: #c4b5fd;
    --magenta: #c02a74;
    --brand: var(--violet-soft);

    --accent-grad: linear-gradient(135deg, #b49bff 0%, #c9a9ff 50%, #d8b4fe 100%);
    --accent-grad-hover: linear-gradient(135deg, #c4aeff 0%, #d5bcff 50%, #e4c8ff 100%);

    /* Type */
    --ink: #f3eeff;
    --ink-soft: #c5b9e4;
    --ink-faint: #9186b0;
    --on-accent: #1a0f2e;

    /* Glass */
    --glass: rgba(255, 255, 255, 0.055);
    --glass-strong: rgba(255, 255, 255, 0.10);
    --glass-line: rgba(255, 255, 255, 0.13);
    --glass-line-lit: rgba(196, 181, 253, 0.45);

    --danger: #ff8095;

    --radius: 14px;
    --radius-card: 26px;
    --slide-pad: 6vh 5vw;
    --speed: 0.42s;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    --font: "Apercu Pro", "Apercu", -apple-system, BlinkMacSystemFont, "Segoe UI",
            Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ---------- Ambient light ------------------------------------------------
   Soft purple sweeps standing in for the reference 3D ribbons. Fixed and
   non-interactive, so they never affect layout or hit-testing.              */

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -2;
    pointer-events: none;
}

body::before {
    inset: 0;
    background:
        radial-gradient(60% 45% at 12% 8%,  rgba(139, 92, 246, 0.42) 0%, transparent 62%),
        radial-gradient(52% 42% at 88% 18%, rgba(192, 42, 116, 0.28) 0%, transparent 60%),
        radial-gradient(70% 55% at 78% 88%, rgba(124, 58, 237, 0.38) 0%, transparent 64%),
        radial-gradient(48% 40% at 22% 92%, rgba(167, 139, 250, 0.24) 0%, transparent 60%),
        linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-base) 45%, #120a20 100%);
}

/* A brighter ribbon of light sweeping the middle, echoing the reference. */
body::after {
    left: -20%;
    right: -20%;
    top: 18%;
    height: 62%;
    background:
        radial-gradient(closest-side, rgba(167, 139, 250, 0.20), transparent 70%),
        radial-gradient(closest-side, rgba(216, 180, 254, 0.13), transparent 72%);
    background-position: 22% 40%, 76% 62%;
    background-size: 62% 78%, 55% 68%;
    background-repeat: no-repeat;
    filter: blur(38px);
    transform: rotate(-8deg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Honeypot — off-canvas rather than display:none, which some bots skip. */
.hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Progress bar ------------------------------------------------ */

.progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    z-index: 50;
}

.progress__bar {
    height: 100%;
    width: 0;
    background: var(--accent-grad);
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.75);
    transition: width 0.35s var(--ease);
}

/* ---------- Stage & slides ---------------------------------------------- */

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

.slide {
    padding: var(--slide-pad);
}

/* The frosted panel. Every screen — welcome, question, thank-you — sits in
   one, which is what carries the look. */
.slide__inner {
    width: 100%;
    max-width: 44rem;
    margin: 0 auto;
    padding: clamp(1.6rem, 4vw, 2.75rem);
    border: 1px solid var(--glass-line);
    border-radius: var(--radius-card);
    background: var(--glass);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Without backdrop-filter the panel would be a washed-out rectangle, so make
   it properly opaque instead. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .slide__inner {
        background: rgba(21, 13, 38, 0.94);
    }
}

/* One-at-a-time only applies once JS has taken over. Without it the slides
   stay in normal flow and the whole form scrolls as one page. */
.js .stage {
    height: 100dvh;
    overflow: hidden;
}

.js .slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(34px) scale(0.985);
    transition:
        opacity var(--speed) var(--ease),
        transform var(--speed) var(--ease),
        visibility 0s linear var(--speed);
}

.js .slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
        opacity var(--speed) var(--ease),
        transform var(--speed) var(--ease),
        visibility 0s;
}

.js .slide.is-leaving-up {
    transform: translateY(-34px) scale(0.985);
}

.js .slide.is-below {
    transform: translateY(34px) scale(0.985);
}

/* Without JS the questions need visible separation. */
html:not(.js) .slide {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

html:not(.js) .slide--thankyou[hidden] {
    display: none;
}

html:not(.js) .navpad {
    display: none;
}

/* ---------- Question ----------------------------------------------------- */

.q__number {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--violet-pale);
}

.q__arrow {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Inline so the required marker sits against the last word rather than
   wrapping onto a line of its own. */
.q__title {
    display: inline;
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
}

.q__title strong {
    font-weight: 700;
}

.q__required {
    color: var(--violet-pale);
    margin-left: 0.15rem;
}

.q__description {
    margin: 0.85rem 0 1.6rem;
    font-size: clamp(0.92rem, 1.7vw, 1rem);
    line-height: 1.6;
    color: var(--ink-soft);
}

.q__description strong {
    font-weight: 600;
    color: var(--ink);
}

.q__field {
    margin-bottom: 0.75rem;
}

.q__error {
    min-height: 1.35rem;
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--danger);
}

.q__error:empty {
    min-height: 0;
}

.q__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.q__hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--ink-faint);
}

.q__hint-extra {
    margin-left: 0.25rem;
}

kbd {
    display: inline-block;
    padding: 0.08rem 0.34rem;
    border: 1px solid var(--glass-line);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-soft);
}

/* ---------- Buttons ------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 1.5rem;
    border: 0;
    border-radius: var(--radius);
    background: var(--accent-grad);
    color: var(--on-accent);
    font: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 10px 26px rgba(139, 92, 246, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: background 0.18s ease, transform 0.08s ease,
                box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
    background: var(--accent-grad-hover);
    box-shadow:
        0 14px 32px rgba(139, 92, 246, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: 2px solid var(--violet-pale);
    outline-offset: 3px;
}

.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn--start {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
}

.btn__tick {
    font-size: 0.85em;
}

.btn--skip {
    background: transparent;
    color: var(--ink-faint);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.5rem 0.7rem;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn--skip:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    box-shadow: none;
}

.btn.is-busy {
    pointer-events: none;
    opacity: 0.75;
}

/* ---------- Text inputs -------------------------------------------------- */

.tf-input {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--glass-line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
    font: inherit;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--ink);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.tf-input::placeholder {
    color: var(--ink-faint);
}

.tf-input:focus {
    outline: none;
    border-color: var(--glass-line-lit);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

.tf-input.has-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(255, 128, 149, 0.14);
}

.tf-textarea {
    resize: none;
    overflow: hidden;
    min-height: 3.2rem;
    max-height: 38vh;
    line-height: 1.5;
}

.tf-select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1.5px solid var(--glass-line);
    border-radius: var(--radius);
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--bg-raise);
}

/* ---------- Choice cards ------------------------------------------------- */

.tf-choices-wrap {
    margin: 0;
    padding: 0;
    border: 0;
}

.tf-hint {
    margin: 0 0 0.7rem;
    font-size: 0.82rem;
    color: var(--ink-faint);
}

.tf-choices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 34rem;
}

/* Long lists (the 140-language picker) scroll inside the panel. The mask
   fades the final row instead of slicing it, so it reads as "more below"
   rather than as a rendering fault. */
.tf-choices--scroll {
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 0.45rem;
    overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(196, 181, 253, 0.4) transparent;
}

.tf-choices--scroll::-webkit-scrollbar {
    width: 7px;
}

.tf-choices--scroll::-webkit-scrollbar-thumb {
    background: rgba(196, 181, 253, 0.35);
    border-radius: 4px;
}

.tf-filter {
    display: block;
    width: 100%;
    max-width: 34rem;
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--glass-line);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.92rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.045);
}

.tf-filter::placeholder {
    color: var(--ink-faint);
}

.tf-filter:focus {
    outline: none;
    border-color: var(--glass-line-lit);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16);
}

.tf-filter__empty {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: var(--ink-faint);
}

.tf-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 2.4rem 0.7rem 0.7rem;
    border: 1px solid var(--glass-line);
    border-radius: var(--radius);
    background: var(--glass);
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.tf-choice:hover {
    background: var(--glass-strong);
    border-color: var(--glass-line-lit);
    transform: translateX(2px);
}

.tf-choice[hidden] {
    display: none;
}

/* The real control stays in the DOM for semantics but is visually replaced
   by the card, so keyboard and screen-reader behaviour is unchanged. */
.tf-choice__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.tf-choice__key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.55rem;
    border: 1px solid var(--glass-line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--violet-pale);
}

.tf-choice__label {
    flex: 1 1 auto;
}

.tf-choice__tick {
    position: absolute;
    right: 0.8rem;
    opacity: 0;
    font-weight: 700;
    transition: opacity 0.14s ease;
}

.tf-choice:has(.tf-choice__input:checked) {
    background: var(--accent-grad);
    border-color: transparent;
    color: var(--on-accent);
    box-shadow: 0 8px 22px rgba(139, 92, 246, 0.34);
}

.tf-choice:has(.tf-choice__input:checked) .tf-choice__key {
    background: rgba(26, 15, 46, 0.22);
    border-color: transparent;
    color: var(--on-accent);
}

.tf-choice:has(.tf-choice__input:checked) .tf-choice__tick {
    opacity: 1;
}

.tf-choice:has(.tf-choice__input:focus-visible) {
    outline: 2px solid var(--violet-pale);
    outline-offset: 2px;
}

/* :has() is well supported, but keep a usable fallback for older engines. */
.tf-choice__input:checked ~ .tf-choice__label {
    font-weight: 600;
}

.tf-input--other {
    margin-top: 0.6rem;
    max-width: 34rem;
    font-size: 1rem;
}

.tf-input--other[hidden] {
    display: none;
}

/* ---------- Combobox (searchable dropdown) ------------------------------- */

.tf-combo {
    position: relative;
    max-width: 34rem;
}

/* Opaque rather than glass: a scrolling list of 149 options needs a solid
   ground to stay legible over whatever is behind it. */
.tf-combo__list {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 0.45rem);
    max-height: 36vh;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #1b1230;
    border: 1px solid var(--glass-line);
    border-radius: var(--radius);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
    scrollbar-width: thin;
    scrollbar-color: rgba(196, 181, 253, 0.4) transparent;
}

.tf-combo__list[hidden] {
    display: none;
}

.tf-combo__option {
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    color: var(--ink-soft);
    cursor: pointer;
}

.tf-combo__option:hover,
.tf-combo__option.is-highlighted {
    background: var(--accent-grad);
    color: var(--on-accent);
    font-weight: 600;
}

.tf-combo__option[aria-selected="true"]::after {
    content: " ✓";
    font-weight: 700;
}

.tf-combo__empty {
    padding: 0.55rem 0.7rem;
    color: var(--ink-faint);
    font-size: 0.88rem;
}

.tf-combo__empty[hidden] {
    display: none;
}

/* ---------- File upload -------------------------------------------------- */

.tf-upload {
    max-width: 34rem;
}

.tf-upload__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.tf-upload__zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 2.1rem 1.25rem;
    border: 1.5px dashed var(--glass-line-lit);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    color: var(--ink);
    text-align: center;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.tf-upload__zone:hover,
.tf-upload__zone.is-dragover {
    background: rgba(139, 92, 246, 0.14);
    border-color: var(--violet-pale);
}

.tf-upload__input:focus-visible + .tf-upload__zone {
    outline: 2px solid var(--violet-pale);
    outline-offset: 3px;
}

.tf-upload__icon {
    font-size: 1.45rem;
    line-height: 1;
    color: var(--violet-pale);
}

.tf-upload__meta {
    font-size: 0.82rem;
    color: var(--ink-faint);
}

.tf-upload__list {
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tf-upload__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--glass-line);
    border-radius: 9px;
    background: var(--glass);
    font-size: 0.88rem;
}

.tf-upload__item.is-invalid {
    border-color: var(--danger);
    color: var(--danger);
}

.tf-upload__size {
    color: var(--ink-faint);
    flex: 0 0 auto;
}

/* ---------- Upload progress ---------------------------------------------- */

.upload-progress {
    margin-top: 1.1rem;
    max-width: 26rem;
}

.upload-progress[hidden] {
    display: none;
}

.upload-progress__track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.upload-progress__fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--accent-grad);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.6);
    transition: width 0.2s linear;
}

.upload-progress__text {
    margin: 0.45rem 0 0;
    font-size: 0.83rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

/* ---------- Welcome & thank-you ------------------------------------------ */

.welcome__title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    background: linear-gradient(120deg, #ffffff 0%, #d8c9ff 55%, #b49bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.welcome__title strong {
    font-weight: 700;
}

.welcome__description {
    margin: 0;
    font-size: clamp(1rem, 2.2vw, 1.28rem);
    color: var(--ink-soft);
}

.welcome__meta {
    margin: 0.85rem 0 0;
    font-size: 0.82rem;
    color: var(--ink-faint);
}

.thankyou {
    text-align: left;
}

.thankyou__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--accent-grad);
    color: var(--on-accent);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.45);
}

.thankyou__title {
    margin: 0 0 0.8rem;
    font-size: clamp(1.45rem, 3.6vw, 2.1rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink);
}

.thankyou__title strong {
    font-weight: 700;
}

.thankyou__reference {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.93rem;
}

.thankyou__reference code {
    padding: 0.18rem 0.45rem;
    border-radius: 6px;
    border: 1px solid var(--glass-line);
    background: rgba(255, 255, 255, 0.07);
    color: var(--violet-pale);
    font-weight: 600;
}

.thankyou__reference:has(code:empty) {
    display: none;
}

/* ---------- Navigation pad ----------------------------------------------- */

.navpad {
    position: fixed;
    right: 1.35rem;
    bottom: 1.35rem;
    display: flex;
    gap: 2px;
    z-index: 40;
}

.navpad__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--glass-line);
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.navpad__btn:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.navpad__btn:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.navpad__btn:hover:not([disabled]) {
    background: rgba(167, 139, 250, 0.3);
}

.navpad__btn[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

.navpad[hidden] {
    display: none;
}

/* ---------- Banners ------------------------------------------------------ */

.noscript-note,
.form-banner {
    margin: 0;
    padding: 0.85rem 5vw;
    background: rgba(139, 92, 246, 0.16);
    border-bottom: 1px solid var(--glass-line);
    color: var(--ink);
    font-size: 0.93rem;
}

.form-banner {
    background: rgba(255, 128, 149, 0.14);
    color: #ffc2cc;
}

.form-banner p {
    margin: 0 0 0.25rem;
}

.form-banner p:last-child {
    margin-bottom: 0;
}

.branding {
    position: fixed;
    left: 1.35rem;
    bottom: 1.35rem;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-faint);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------- Responsive & motion ------------------------------------------ */

@media (max-width: 640px) {
    :root {
        --slide-pad: 3.5vh 4vw;
        --radius-card: 20px;
    }

    .js .slide {
        align-items: flex-start;
        padding-top: 8vh;
    }

    /* Heavy blur is expensive on mobile GPUs and makes the slide scroll
       janky, so the panel goes mostly solid instead. */
    .slide__inner {
        padding: 1.35rem 1.15rem;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        background: rgba(21, 13, 38, 0.82);
    }

    .navpad {
        right: 0.85rem;
        bottom: 0.85rem;
    }

    .tf-choices--scroll {
        max-height: 34vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .slide,
    .js .slide.is-active,
    .progress__bar,
    .btn,
    .tf-choice {
        transition-duration: 0.01ms;
    }

    .js .slide,
    .js .slide.is-below,
    .js .slide.is-leaving-up {
        transform: none;
    }

    .tf-choice:hover {
        transform: none;
    }
}
