@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 0.6s cubic-bezier(0.77, 0, 0.175, 1) both slide-out;
}

::view-transition-new(root) {
    animation: 0.6s cubic-bezier(0.77, 0, 0.175, 1) both slide-in;
}

@keyframes slide-out {
    to { transform: translateY(100%); }
}

@keyframes slide-in {
    from { transform: translateY(-100%); }
}

@keyframes pulse {
    50% { opacity: 0.3; }
}

@keyframes blink {
    50% { opacity: 0; }
}


/* Base */
:root {
    --paper: #f1f1f1;
    --surface: #fff;
    --ink: #111;
    --soft: #555;
    --line: rgba(0, 0, 0, 0.1);
    --accent: #3aa6d8;
    --accent-soft: #dff1f7;

    --font-display: "DotGothic16", "Courier New", monospace;
    --font-mono: "Space Mono", "Courier New", monospace;
    --font-serif: "Source Serif 4", Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-mono);
    line-height: 1.5;
}

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

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
}

:focus-visible {
    outline: 0.1rem solid var(--accent);
    outline-offset: 0.2rem;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--soft);
    font-size: 0.6rem;
    letter-spacing: 0.1rem;
}


/* Curseur (déplacé par script.js) */
@media (pointer: fine) {
    * {
        cursor: none !important;
    }
}

@media (pointer: coarse) {
    .cursor,
    .cursor__ring {
        display: none;
    }
}

.cursor,
.cursor__ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.cursor {
    z-index: 9999;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--accent);
    transition: width 0.3s, height 0.3s;
}

.cursor--active {
    width: 0.9rem;
    height: 0.9rem;
}

.cursor__ring {
    z-index: 9998;
    width: 2rem;
    height: 2rem;
    border: 0.1rem solid var(--accent);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor__ring--active {
    width: 3rem;
    height: 3rem;
    background: rgba(58, 166, 216, 0.15);
}


/* Barre de navigation */
.nav {
    position: fixed;
    z-index: 100;
    top: 0.8rem;
    left: 50%;
    display: grid;
    grid-template-columns: 2.8rem 1fr 2.8rem;
    align-items: center;
    width: min(33rem, calc(100% - 2rem));
    height: 3.3rem;
    padding: 0 0.3rem;
    border: 0.1rem solid var(--ink);
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0.25rem 0.25rem 0 var(--accent);
    transform: translateX(-50%);
    backdrop-filter: blur(1rem);
}

.nav > :not(.logo) {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 0;
    border-radius: 0.3rem;
    background: transparent;
    color: var(--ink);
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav > :not(.logo):hover {
    background: #ededed;
}

.logo {
    justify-self: center;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.2rem;
    text-decoration: none;
}


/* Son : icône + curseur de volume, sans fond */
.sound {
    position: fixed;
    z-index: 100;
    top: 4.7rem;
    left: 50%;
    translate: -50%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.5rem;
    filter: drop-shadow(0 0 0.35rem rgba(255, 255, 255, 0.9));
}

.sound button {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.2rem;
    transition: transform 0.2s, color 0.2s;
}

.sound button:hover {
    color: var(--accent);
    transform: scale(1.15);
}

.sound button:active {
    transform: scale(0.95);
}

.sound.waiting i {
    animation: pulse 1.6s ease-in-out infinite;
}

.sound input {
    width: 6rem;
    height: 1.2rem;
    margin: 0;
    background: transparent;
    appearance: none;
}

.sound input::-webkit-slider-runnable-track {
    height: 0.2rem;
    border-radius: 99rem;
    background: var(--ink);
}

.sound input::-webkit-slider-thumb {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: -0.3rem;
    border-radius: 50%;
    background: var(--accent);
    appearance: none;
}

.sound input::-moz-range-track {
    height: 0.2rem;
    border-radius: 99rem;
    background: var(--ink);
}

.sound input::-moz-range-thumb {
    width: 0.8rem;
    height: 0.8rem;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
}


/* Bouton */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.1rem;
    padding: 0.4rem 1rem;
    border: 0.1rem solid var(--ink);
    border-radius: 0.4rem;
    background: #050505;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0.25rem 0.25rem 0 var(--accent);
    transition: transform 0.15s, box-shadow 0.15s;
}

.button:hover {
    transform: translate(0.12rem, 0.12rem);
    box-shadow: 0.13rem 0.13rem 0 var(--accent);
}

.button:active {
    transform: translate(0.25rem, 0.25rem);
    box-shadow: none;
}


/* Hero */
.hero {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 1.3rem;
    padding: 5rem 1rem 1.5rem;
    overflow: hidden;
    background:
        linear-gradient(rgba(241, 241, 241, 0.75), rgba(241, 241, 241, 0.75)),
        url("assets/images/snow-bg.jpg") center / cover,
        #111;
}

.dots,
.links {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* lignes tuiles → portrait, desktop seulement */
.links {
    display: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-dasharray: 2 6;
    stroke-linecap: round;
}

.links line {
    vector-effect: non-scaling-stroke;
}

.portrait {
    position: relative;
    z-index: 0;
    width: min(88vw, 26rem);
    height: auto;
    mask-image: linear-gradient(#000 72%, transparent);
}

.tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 1.3rem 0.8rem;
    width: min(100%, 36rem);
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: center;
    transition: rotate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tile:hover,
.tile:focus-visible {
    rotate: 0deg;
}

.tile--music   { rotate: -1deg; }
.tile--cycling { rotate: 2deg; }
.tile--games   { rotate: -2deg; }
.tile--code    { rotate: 1.5deg; }
.tile--drawing { rotate: -0.5deg; }
.tile--movies  { rotate: 2deg; }

/* bout de scotch */
.tile::before {
    position: absolute;
    z-index: 3;
    top: -0.35rem;
    left: 50%;
    width: 2.2rem;
    height: 0.7rem;
    background: rgba(58, 166, 216, 0.4);
    content: "";
    pointer-events: none;
    rotate: -5deg;
    translate: -50%;
}

.tile:nth-child(even)::before {
    rotate: 4deg;
}

.tile__media {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 0.3rem solid #fff;
    border-radius: 0.4rem;
    outline: 0.1rem dashed rgba(17, 17, 17, 0.3);
    outline-offset: 0.3rem;
    background: var(--surface);
    box-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.12);
    font-size: 1.4rem;
    transition: transform 0.3s, box-shadow 0.3s, color 0.3s, outline-color 0.3s;
}

.tile:hover .tile__media {
    outline-color: var(--accent);
}

button.tile:hover .tile__media {
    color: var(--accent);
    box-shadow: 0 0.6rem 1.4rem rgba(58, 166, 216, 0.35);
    transform: translateY(-0.2rem);
}

.tile__media iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.tile__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 80%;
}

.tile__label {
    padding: 0.15rem 0.6rem;
    border-radius: 99rem;
    background: var(--surface);
    box-shadow: 0 0 0 0.1rem var(--line);
    font-family: var(--font-display);
    font-size: 0.8rem;
    line-height: 1.3;
    transition: background 0.3s, box-shadow 0.3s;
}

.tile:hover .tile__label {
    background: var(--accent-soft);
    box-shadow: 0 0 0 0.1rem var(--accent);
}

.tile--music {
    grid-column: span 2;
}

.tile--music .tile__media {
    aspect-ratio: 16 / 9;
    background: #e4e4e4;
}

.tile--drawing {
    grid-column: 1 / -1;
}

.tile--drawing .tile__media {
    aspect-ratio: 21 / 9;
    background: var(--accent-soft);
}


/* Carte d'identité */
.card {
    z-index: 3;
    display: grid;
    gap: 0.2rem;
    width: min(100%, 32rem);
    padding: 1.5rem 1rem 1rem;
    border: 0.1rem solid var(--ink);
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0.4rem 0.4rem 0 var(--accent);
}

.card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.card__top img {
    flex: none;
    width: 3rem;
    height: 3rem;
    border-radius: 0.4rem;
    background: var(--surface);
    object-fit: cover;
    object-position: 50% 20%;
}

.card__id {
    margin: 0 0 0.3rem;
    color: var(--soft);
    font-size: 0.6rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.card time {
    margin-left: 0.4rem;
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
    background: var(--accent-soft);
    color: #1d6f96;
}

.card time span {
    animation: blink 1s steps(1) infinite;
}

.card h1 {
    font-size: 1.4rem;
    line-height: 1.1;
}

.card__list {
    display: grid;
    margin: 0 0 0.5rem;
    padding: 0;
    list-style: none;
}

.card__list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-block: 0.45rem;
    border-bottom: 0.1rem dashed var(--line);
    font-size: 0.6rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.card__list li:last-child {
    border-bottom: 0;
}

.card__list li::before {
    flex: none;
    width: 0.4rem;
    height: 0.4rem;
    background: var(--accent);
    content: "";
}

.card__list small {
    margin-left: auto;
    color: var(--soft);
    font-size: inherit;
    letter-spacing: 0.05rem;
    white-space: nowrap;
}

.card__switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.card__switch > * {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    border-radius: 0.3rem;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.7rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s;
}

.card__switch a:hover {
    background: var(--accent-soft);
}

.card__switch [aria-current] {
    box-shadow: inset 0 0 0 0.1rem var(--accent);
}

/* le bouton du hero a toujours été plus haut que celui des fenêtres */
.card .button {
    min-height: 3.3rem;
}

.card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.4rem;
    padding-top: 0.8rem;
    border-top: 0.1rem dashed var(--line);
}

.card__foot a {
    color: var(--ink);
    font-size: 0.7rem;
    text-decoration: underline var(--accent);
    text-underline-offset: 0.3rem;
    text-transform: uppercase;
}

#status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.2rem;
    background: var(--paper);
    font-size: 0.6rem;
    text-transform: uppercase;
    white-space: nowrap;
}

#status::before {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
    content: "";
}

#status.sleeping::before {
    background: #9a9a9a;
    animation: none;
}


/* Projets */
.projects {
    min-height: 20rem;
    padding: 4.5rem 1.3rem;
}

.projects .eyebrow {
    font-size: 0.7rem;
}

.projects h2 {
    font-size: clamp(2.2rem, 9vw, 4rem);
    line-height: 1.1;
}

.projects em {
    color: #777;
    font-style: normal;
}

.projects p:last-child {
    max-width: 36rem;
    margin: 1.3rem 0 0;
    color: var(--soft);
    font-size: 0.9rem;
    line-height: 1.8;
}


/* Contact */
.contact {
    padding: 4.5rem 1.3rem 3rem;
    background: #171717;
    color: #f4f4f4;
}

.contact h2 {
    margin-bottom: 2.5rem;
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    text-align: center;
}

.contact__layout {
    display: grid;
    gap: 2rem;
    max-width: 68rem;
    margin: 0 auto;
}

.contact__info {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.contact h3 {
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
}

.muted {
    margin: 0;
    color: #aaa;
    font-size: 0.8rem;
}

.contact__info > .muted {
    margin-top: 0.5rem;
}

.contact__changing-word {
    color: #fff;
    transition: opacity 0.4s;
}

.contact nav {
    display: grid;
}

.contact nav a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 3rem;
    border-bottom: 0.1rem solid rgba(255, 255, 255, 0.2);
    color: #f4f4f4;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.contact nav a:hover {
    border-color: #fff;
    color: #fff;
}

.contact nav i {
    width: 1.3rem;
    text-align: center;
    transition: transform 0.2s;
}

.contact nav a:hover i {
    transform: translateX(0.3rem);
}

.contact form {
    display: grid;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.2);
}

/* le texte du champ sert de label flottant */
.contact label {
    position: relative;
    display: block;
    min-height: 3.5rem;
}

.contact input:not([type="hidden"]),
.contact textarea {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.8rem 0;
    border: 0;
    border-bottom: 0.1rem solid rgba(255, 255, 255, 0.4);
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.contact textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.contact input:focus,
.contact textarea:focus {
    border-bottom-color: #fff;
}

.contact input:-webkit-autofill {
    box-shadow: 0 0 0 62.5rem #171717 inset;
    -webkit-text-fill-color: #fff;
}

.contact label span {
    position: absolute;
    top: 0.8rem;
    left: 0;
    color: #aaa;
    font-size: 0.8rem;
    pointer-events: none;
    text-transform: uppercase;
    transition: top 0.3s, font-size 0.3s, color 0.3s;
}

.contact :is(input, textarea):is(:focus, :not(:placeholder-shown)) + span {
    top: -0.5rem;
    color: #fff;
    font-size: 0.7rem;
}

.contact form button {
    justify-self: end;
    padding: 0.8rem 1.5rem;
    border: 0;
    border-radius: 0.4rem;
    background: #f4f4f4;
    color: #171717;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: background 0.2s;
}

.contact form button:hover {
    background: #fff;
}

.contact form i {
    margin-left: 0.5rem;
}

footer {
    padding: 1.5rem;
    background: #171717;
    color: #ddd;
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    text-align: center;
}

footer p {
    margin: 0;
}


/* Fenêtres : elles zooment à l'ouverture */
dialog {
    width: min(31rem, calc(100% - 2rem));
    max-width: none;
    max-height: min(80vh, 38rem);
    padding: 2.5rem 1.4rem 1.5rem;
    overflow: auto;
    border: 0.1rem solid rgba(255, 255, 255, 0.8);
    border-radius: 0.8rem;
    background: linear-gradient(135deg, rgba(214, 214, 216, 0.95), rgba(250, 250, 250, 0.98) 70%);
    color: var(--ink);
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.3);
    transition:
        opacity 0.35s,
        scale 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        overlay 0.5s allow-discrete,
        display 0.5s allow-discrete;
}

/* état de départ (ouverture) et de fin (fermeture) : petite et transparente */
dialog:not([open]) {
    opacity: 0;
    scale: 0.5;
}

@starting-style {
    dialog[open] {
        opacity: 0;
        scale: 0.5;
    }
}

dialog::backdrop {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(0.5rem);
    transition: opacity 0.4s, overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}

dialog:not([open])::backdrop {
    opacity: 0;
}

@starting-style {
    dialog[open]::backdrop {
        opacity: 0;
    }
}

/* Le curseur est rangé dans la fenêtre ouverte. Pendant le zoom il serait décalé
   (et ferait apparaître une barre de défilement) : on le cache et on bloque le scroll. */
dialog[open] {
    animation: lock-scroll 0.5s;
}

dialog .cursor,
dialog .cursor__ring {
    animation: hide-cursor 0.01s 0.5s backwards;
}

@keyframes lock-scroll {
    from, to { overflow: hidden; }
}

@keyframes hide-cursor {
    from, to { opacity: 0; }
}

dialog.wide {
    width: min(46rem, calc(100% - 2rem));
}

dialog h2 {
    max-width: 22rem;
    margin-bottom: 0.9rem;
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    line-height: 1.1;
}

dialog h2 + p {
    margin: 0;
    color: var(--soft);
    font-size: 0.9rem;
    line-height: 1.8;
}

dialog .button {
    margin-top: 1.5rem;
}

.close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 0.1rem solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
}

dialog nav {
    display: grid;
    margin-top: 1.5rem;
    border-top: 0.1rem solid var(--line);
}

dialog nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    border-bottom: 0.1rem solid var(--line);
    color: var(--ink);
    font-size: 0.8rem;
    text-decoration: none;
}

dialog nav a:hover {
    color: #777;
}

.films {
    display: grid;
    gap: 0.6rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.films li {
    display: grid;
}

.films a {
    position: relative;
    display: grid;
    align-content: center;
    gap: 0.4rem;
    min-height: 6.5rem;
    padding: 0.9rem 1rem;
    overflow: hidden;
    border: 0.1rem solid var(--line);
    border-radius: 0.8rem;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.films a:hover {
    border-color: var(--accent);
    box-shadow: 0 0.5rem 1.3rem rgba(0, 0, 0, 0.1);
    transform: translateY(-0.2rem);
}

.films img {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    mask-image: linear-gradient(to right, transparent, #000 70%);
}

/* au-dessus de l'affiche */
.films i,
.films h3,
.films p {
    position: relative;
}

.films i {
    font-size: 1rem;
}

.films h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.films p {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.films span {
    color: var(--soft);
}


/* Écrans larges */
@media (min-width: 48rem) {
    .hero {
        padding-top: 6rem;
    }

    .portrait {
        width: min(60vw, 30rem);
    }

    .projects,
    .contact {
        padding-inline: max(7vw, calc((100vw - 72rem) / 2));
    }

    .contact__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
        gap: 4.7rem;
    }

    /* le trait de séparation est la bordure gauche du formulaire, centré dans l'espace entre les colonnes */
    .contact form {
        margin-left: -2.4rem;
        padding: 0 0 0 2.3rem;
        border-top: 0;
        border-left: 0.1rem solid rgba(255, 255, 255, 0.2);
    }

    .films {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* assez de place à droite de la barre : le son passe dans le coin */
@media (min-width: 56rem) {
    .sound {
        top: 1.25rem;
        right: 1.2rem;
        left: auto;
        translate: none;
    }
}

@media (min-width: 64rem) {
    .hero {
        display: block;
        height: 100svh;
        min-height: 46rem;
        padding: 0;
    }

    .hero::after {
        position: absolute;
        z-index: 1;
        inset: 60% 0 0;
        background: linear-gradient(transparent, var(--paper) 85%);
        content: "";
        pointer-events: none;
    }

    .links {
        display: block;
    }

    .portrait {
        position: absolute;
        top: 4.5rem;
        left: 50%;
        width: min(58vw, 78svh);
        mask-image: none;
        transform: translateX(-50%);
    }

    .tiles {
        display: contents;
    }

    .tile {
        --size: clamp(3.5rem, 5.2vw, 4.8rem);
        position: absolute;
        z-index: 2;
        width: max-content;
        min-width: var(--size);
        max-width: 9rem;
    }

    .tile__media {
        width: var(--size);
    }

    .tile--music {
        --size: clamp(10rem, 14.7vw, 13rem);
        top: 5.5rem;
        left: 2.5%;
        rotate: -2deg;
    }

    .tile--cycling {
        top: 27%;
        left: 3%;
        rotate: 3deg;
    }

    .tile--games {
        --size: clamp(4.5rem, 7vw, 6rem);
        top: 55%;
        left: 6%;
        rotate: -3deg;
    }

    .tile--code {
        top: 5.5rem;
        right: 20%;
        rotate: 2.5deg;
    }

    .tile--drawing {
        --size: clamp(7rem, 14.7vw, 10.8rem);
        top: 27%;
        right: 2.5%;
        rotate: -2deg;
    }

    .tile--drawing .tile__media {
        aspect-ratio: 1;
    }

    .tile--drawing img {
        object-position: center;
    }

    .tile--movies {
        top: 62%;
        right: 3%;
        rotate: 3deg;
    }

    .card {
        position: absolute;
        bottom: 1.3rem;
        left: 50%;
        width: clamp(30rem, 48vw, 36rem);
        transform: translateX(-50%);
    }

    .card h1 {
        font-size: 1.8rem;
    }

    .card__top img {
        width: 4.5rem;
        height: 4.5rem;
    }

    .projects,
    .contact {
        padding-block: 6.5rem;
    }
}

@media (max-width: 23rem) {
    .card__foot {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}