/* ==========================================================================
   Hudson Bean — portfolio

   Flat surfaces, hairline rules, monospace for anything technical. No
   gradients, no shadows; separation comes from 1px borders only.

   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography
   5.  Buttons, chips, icon links
   6.  Header & nav
   7.  Hero
   8.  Project showcase
   9.  Experience & education
   10. About
   11. Footer
   12. Motion preferences
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
    /* Oxford blue anchors the surfaces; -950 sits beneath it as page ground. */
    --oxford-950: #001227;
    --oxford-900: #002147;
    --oxford-800: #062f5e;
    --oxford-700: #0d3d75;

    /* Brighter hues carry interaction: links, focus, hover, selection. */
    --azure-500: #2f7fd4;
    --azure-400: #4c9ae8;
    --sky-300: #8fc4f5;

    /* Gold is rationed to exactly two jobs: the active rail marker and the
       active thumbnail border. Nothing else. */
    --gold-500: #c9a227;
    --gold-400: #e2b842;

    --white: #ffffff;
    --text: #e8eef7;
    --text-muted: #a3b8d4;

    --line: color-mix(in srgb, var(--sky-300) 14%, transparent);
    --line-strong: color-mix(in srgb, var(--sky-300) 26%, transparent);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius-sm: 2px;
    --radius: 3px;

    --shell: 76rem;
    --gutter: clamp(1rem, 4vw, 2.5rem);

    --dur: 140ms;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Anchor targets clear the sticky header. */
    scroll-padding-top: 4.5rem;
}

body {
    margin: 0;
    background-color: var(--oxford-950);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

a {
    color: var(--azure-400);
    text-decoration-color: color-mix(in srgb, var(--azure-400) 45%, transparent);
    text-underline-offset: 3px;
    transition: color var(--dur) var(--ease);
}

a:hover {
    color: var(--sky-300);
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

dl,
dd {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--azure-400);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

::selection {
    background: color-mix(in srgb, var(--azure-500) 55%, transparent);
    color: var(--white);
}

.skip-link {
    position: absolute;
    left: 50%;
    top: 0;
    translate: -50% -140%;
    z-index: 100;
    padding: 0.5rem 0.9rem;
    background: var(--azure-500);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: translate var(--dur) var(--ease);
}

.skip-link:focus-visible {
    translate: -50% 0;
    color: var(--white);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(2.75rem, 5.5vw, 4.5rem);
}

.section + .section {
    border-top: 1px solid var(--line);
}

.section__head {
    max-width: 46rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* Section label, plain monospace, no rule, no accent colour. */
.eyebrow {
    margin: 0 0 0.55rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(1.85rem, 4vw, 2.2rem);
}

h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
}

h3 {
    font-size: 1rem;
}

h4 {
    font-size: 0.95rem;
}

p {
    margin: 0;
}

.lead {
    margin-top: 0.75rem;
    max-width: 60ch;
    color: var(--text-muted);
    font-size: 0.965rem;
    line-height: 1.68;
}

/* Technical label: metadata keys, stack group names, column headings. */
.label {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   5. Buttons, chips, icon links
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.855rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--dur) var(--ease),
        border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn svg {
    width: 1em;
    height: 1em;
    flex: none;
}

.btn--solid {
    background: var(--azure-500);
    color: var(--white);
}

.btn--solid:hover {
    background: var(--azure-400);
    color: var(--white);
}

.btn--ghost {
    border-color: var(--line-strong);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--azure-400);
    color: var(--white);
}

.btn--sm {
    padding: 0.38rem 0.7rem;
    font-size: 0.8rem;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.chip {
    padding: 0.2rem 0.5rem;
    background: var(--oxford-800);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--sky-300);
    font-family: var(--font-mono);
    font-size: 0.735rem;
    line-height: 1.5;
    white-space: nowrap;
}

.icon-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--dur) var(--ease),
        border-color var(--dur) var(--ease);
}

.icon-link svg {
    width: 1rem;
    height: 1rem;
    flex: none;
}

.icon-link:hover {
    color: var(--white);
    border-color: var(--azure-400);
}

/* --------------------------------------------------------------------------
   6. Header & nav
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--oxford-950);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 3.5rem;
}

.wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.wordmark span {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 400;
}

.site-nav {
    display: flex;
    gap: 0.15rem;
    margin-inline-start: auto;
}

.site-nav a {
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

.site-nav a:hover {
    color: var(--white);
}

.site-header .btn {
    flex: none;
}

@media (max-width: 640px) {
    .site-nav {
        display: none;
    }

    .site-header__inner {
        justify-content: space-between;
    }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
    padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.75rem);
}

.hero__inner {
    max-width: 52rem;
}

.hero h1 {
    margin-bottom: 0.35rem;
}

.hero__role {
    color: var(--sky-300);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.hero .btn-row {
    margin-top: 1.6rem;
}

.hero__social {
    margin-top: 1.1rem;
}

/* Plain fact rows, replaces the marketing stat strip. */
.facts {
    max-width: 52rem;
    margin-top: clamp(2rem, 4vw, 2.75rem);
    border-top: 1px solid var(--line);
}

.facts__row {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.5rem 1.25rem;
    padding-block: 0.6rem;
    border-bottom: 1px solid var(--line);
}

.facts__row dd {
    color: var(--text);
    font-size: 0.875rem;
}

@media (max-width: 560px) {
    .facts__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.15rem;
    }
}

/* --------------------------------------------------------------------------
   8. Project showcase
   -------------------------------------------------------------------------- */

.showcase {
    display: grid;
    /* Wide enough that the monospace descriptors sit on one line, which keeps
       the rail items a uniform height. */
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

/* Rail ------------------------------------------------------------------- */

.rail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: sticky;
    top: 4.25rem;
}

.rail__item {
    position: relative;
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    padding: 0.5rem 0.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-align: left;
    transition: background-color var(--dur) var(--ease),
        border-color var(--dur) var(--ease);
}

/* Gold, use 1 of 2: marks the selected project. */
.rail__item::before {
    content: "";
    position: absolute;
    inset-block: 20%;
    inset-inline-start: -1px;
    width: 2px;
    background: var(--gold-500);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

.rail__item:hover {
    background: var(--oxford-900);
}

.rail__item[aria-selected="true"] {
    background: var(--oxford-900);
    border-color: var(--line-strong);
}

.rail__item[aria-selected="true"]::before {
    opacity: 1;
}

.rail__thumb {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
    background: var(--oxford-800);
    overflow: hidden;
}

.rail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rail__meta {
    min-width: 0;
}

.rail__name {
    display: block;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}

.rail__item[aria-selected="true"] .rail__name {
    color: var(--white);
}

.rail__desc {
    display: block;
    margin-top: 0.05rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.695rem;
    line-height: 1.4;
}

/* Panel ------------------------------------------------------------------ */

.panel {
    min-width: 0;
}

.panel__crumbs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.panel__crumbs span[aria-hidden] {
    color: color-mix(in srgb, var(--sky-300) 35%, transparent);
}

.panel__crumb-current {
    color: var(--sky-300);
}

.panel__title {
    margin-top: 0.25rem;
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.panel__tagline {
    margin-top: 0.35rem;
    max-width: 62ch;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.panel__body {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.panel__media {
    min-width: 0;
}

/* Stage ------------------------------------------------------------------ */

.stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000811;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.stage > * {
    width: 100%;
    height: 100%;
}

.stage img,
.stage video {
    object-fit: contain;
}

/* Missing-capture slate. Flat plate plus a hairline grid drawn with an SVG
   tile reads as a tool reporting an absent asset, not as decoration. */
.titlecard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 1.5rem;
    text-align: center;
    background-color: var(--oxford-900);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M36 0H0v36' fill='none' stroke='%238fc4f5' stroke-opacity='0.08'/%3E%3C/svg%3E");
}

.titlecard__name {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
}

.titlecard__hint {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    word-break: break-all;
}

/* Filmstrip -------------------------------------------------------------- */

.filmstrip {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.5rem;
}

.filmstrip[hidden] {
    display: none;
}

.filmstrip__nav {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 3rem;
    background: var(--oxford-900);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--sky-300);
    transition: background-color var(--dur) var(--ease),
        color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.filmstrip__nav svg {
    width: 0.95rem;
    height: 0.95rem;
}

.filmstrip__nav:hover:not(:disabled) {
    background: var(--azure-500);
    border-color: var(--azure-400);
    color: var(--white);
}

.filmstrip__nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.filmstrip__track {
    /* Positioned so thumb offsetLeft is measured against the track when
       js/app.js scrolls the active thumb into view. */
    position: relative;
    /* Hugs its thumbnails, then shrinks and scrolls once they outgrow the
       stage, so the arrows never float away from a short strip. */
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--oxford-700) transparent;
    padding-bottom: 0.25rem;
}

.filmstrip__track::-webkit-scrollbar {
    height: 5px;
}

.filmstrip__track::-webkit-scrollbar-thumb {
    background: var(--oxford-700);
}

.thumb {
    position: relative;
    flex: none;
    width: 6rem;
    aspect-ratio: 16 / 9;
    background: var(--oxford-900);
    /* A visible resting border keeps the strip readable while a project is
       still waiting on its captures. */
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    scroll-snap-align: start;
    opacity: 0.6;
    transition: opacity var(--dur) var(--ease),
        border-color var(--dur) var(--ease);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb:hover {
    opacity: 1;
    border-color: var(--azure-400);
}

/* Gold, use 2 of 2: marks the slide on stage. */
.thumb[aria-current="true"] {
    opacity: 1;
    border-color: var(--gold-400);
}

.thumb__badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgb(0 8 17 / 0.35);
    color: var(--white);
}

.thumb__badge svg {
    width: 1.35rem;
    height: 1.35rem;
}

/* Highlights ------------------------------------------------------------- */

.highlights {
    margin-top: 1.35rem;
}

.highlights__title {
    margin-bottom: 0.7rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.highlights ul {
    display: grid;
    gap: 0.55rem;
}

.highlights li {
    position: relative;
    padding-inline-start: 1rem;
    color: var(--text-muted);
    font-size: 0.885rem;
    line-height: 1.62;
}

.highlights li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.6rem;
    width: 4px;
    height: 4px;
    background: color-mix(in srgb, var(--sky-300) 55%, transparent);
}

/* Info column ------------------------------------------------------------ */

.info {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    min-width: 0;
    padding: 0.9rem;
    background: var(--oxford-900);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.info__capsule {
    aspect-ratio: 460 / 200;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.info__capsule img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info__summary {
    color: var(--text-muted);
    font-size: 0.865rem;
    line-height: 1.62;
}

.info__meta {
    display: grid;
    gap: 1px;
    background: var(--line);
    border-block: 1px solid var(--line);
}

.info__row {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.7rem;
    padding-block: 0.45rem;
    background: var(--oxford-900);
}

.info__row dd {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.775rem;
}

.info__stack {
    display: grid;
    gap: 0.75rem;
}

.info__stack-group > .label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--sky-300);
}

/* Buttons stay at their content width and wrap left-aligned rather than
   stretching, so they read as controls instead of calls to action. */
.info__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

/* Showcase responsive ---------------------------------------------------- */

@media (max-width: 1100px) {
    .panel__body {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .showcase {
        grid-template-columns: minmax(0, 1fr);
    }

    .rail {
        position: relative;
        top: auto;
        flex-direction: row;
        gap: 0.4rem;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        padding-bottom: 0.35rem;
        scrollbar-width: thin;
        scrollbar-color: var(--oxford-700) transparent;
    }

    .rail__item {
        flex: none;
        width: 13rem;
        scroll-snap-align: start;
    }

    /* Marker moves to the bottom edge once the rail runs horizontally. */
    .rail__item::before {
        inset-block: auto 0;
        inset-inline: 20%;
        width: auto;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .thumb {
        width: 5rem;
    }
}

/* --------------------------------------------------------------------------
   9. Experience & education
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
    align-items: start;
}

.column__title {
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.column__title--stacked {
    margin-top: 2rem;
}

.entries {
    display: grid;
    gap: 1.15rem;
}

.entry {
    padding-inline-start: 1rem;
    border-inline-start: 1px solid var(--line);
    transition: border-color var(--dur) var(--ease);
}

.entry:hover {
    border-inline-start-color: var(--azure-500);
}

.entry__head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.75rem;
    align-items: baseline;
    justify-content: space-between;
}

.entry__org {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.entry__dates {
    color: var(--sky-300);
    font-family: var(--font-mono);
    font-size: 0.735rem;
    white-space: nowrap;
}

.entry ul {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.entry li {
    position: relative;
    padding-inline-start: 0.9rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.58;
}

.entry li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.6rem;
    width: 3px;
    height: 3px;
    background: color-mix(in srgb, var(--sky-300) 55%, transparent);
}

.entry__note {
    margin-top: 0.3rem;
    color: var(--sky-300);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.awards {
    display: grid;
    gap: 0.4rem;
}

.awards li {
    position: relative;
    padding-inline-start: 0.9rem;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.awards li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.58rem;
    width: 3px;
    height: 3px;
    background: color-mix(in srgb, var(--sky-300) 55%, transparent);
}

@media (max-width: 860px) {
    .split {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   10. About
   -------------------------------------------------------------------------- */

.about {
    display: grid;
    gap: clamp(1.75rem, 3.5vw, 2.5rem);
}

.about__body {
    display: grid;
    gap: 0.8rem;
    max-width: 42rem;
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.7;
}

/* Sits full width beneath the prose and columnises, so the tags read as a
   short band rather than a tall stack squeezed into a side column. A hairline
   rule carries it instead of a filled card, matching the hero fact rows. */
.competencies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.1rem 2rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.competencies__group > .label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--sky-300);
}

/* Unfilled here: 21 solid pills next to the prose was the heavy part. */
.competencies .chip {
    background: none;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
}

.site-footer .shell {
    padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.footer__cta {
    max-width: 40rem;
}

.footer__email {
    display: inline-block;
    margin-top: 0.9rem;
    color: var(--azure-400);
    font-family: var(--font-mono);
    font-size: 1rem;
    text-decoration: none;
}

.footer__email:hover {
    color: var(--sky-300);
    text-decoration: underline;
}

.footer__links {
    margin-top: 1.5rem;
}

.footer__bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    justify-content: space-between;
    margin-top: clamp(2rem, 4vw, 2.75rem);
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.745rem;
}

.footer__bar p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   12. Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
