:root {
    --red: #dc2626;
    --red-deep: #b91c1c;
    --ink: #1c1c1c;
    --card: #333333;
    --card-2: #3b3b3b;
    --text: #ffffff;
    --soft: rgba(255, 255, 255, 0.75);
    --faint: rgba(255, 255, 255, 0.12);
    --pop: 6px 6px 0 var(--ink);
    --pop-big: 9px 9px 0 var(--ink);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background-color: #474747;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px),
        linear-gradient(135deg, #5a5a5a 0%, #4d4d4d 50%, #3e3e3e 100%);
    background-size: 26px 26px, 100% 100%;
    background-attachment: fixed;
    color: var(--text);
    font-family: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .wave, .bubble_btn, .sticker, .nav a, .label, .contact_bubble span {
    font-family: "Fredoka", "Lexend", system-ui, sans-serif;
}

a {
    color: inherit;
}

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

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
    padding-top: max(0.9rem, env(safe-area-inset-top, 0px));
    background: rgba(40, 40, 40, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.logo {
    font-size: 1.9rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
}

.logo span {
    color: var(--red);
}

.nav nav {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2.5vw, 1.75rem);
}

.nav nav a {
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--soft);
    transition: color 0.2s ease;
}

.nav nav a:hover {
    color: #fff;
}

.nav nav .nav_pill {
    color: #fff;
    background: var(--red);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav nav .nav_pill:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
}

main {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
}

.wave {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    background: var(--card);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-3deg);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(3.25rem, 9vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
}

.intro {
    margin-top: 1.25rem;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--soft);
    max-width: 34rem;
}

.looking {
    margin-top: 1.25rem;
    font-size: 1.05rem;
    color: var(--soft);
}

.looking strong {
    color: #fff;
    background: var(--red);
    padding: 0.1rem 0.55rem;
    border-radius: 0.5rem;
    font-weight: 600;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hero_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.bubble_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--red);
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.bubble_btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

.bubble_btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
}

.bubble_btn.outline {
    background: #fff;
    color: var(--ink);
}

.hero_photo {
    position: relative;
    justify-self: center;
    width: min(100%, 380px);
    aspect-ratio: 1;
}

.photo_blob {
    position: absolute;
    inset: -6%;
    background: var(--red);
    border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
    transform: rotate(-8deg);
    animation: blob 9s ease-in-out infinite;
}

@keyframes blob {
    0%, 100% { border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; }
    50% { border-radius: 45% 55% 42% 58% / 55% 45% 55% 45%; }
}

.hero_photo img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--ink);
    transform: rotate(3deg);
}

.sticker {
    position: absolute;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    border: 3px solid var(--ink);
    white-space: nowrap;
}

.sticker_one {
    top: 4%;
    left: -6%;
    transform: rotate(-10deg);
}

.sticker_two {
    bottom: 4%;
    right: -8%;
    transform: rotate(7deg);
    background: var(--ink);
    color: #fff;
}

.section {
    padding: clamp(3rem, 7vw, 5rem) 0 0;
}

.section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.project {
    background: var(--card);
    border: 3px solid var(--ink);
    border-radius: 1.75rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    box-shadow: var(--pop-big);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project:hover {
    transform: translate(-3px, -3px) rotate(0deg);
    box-shadow: 12px 12px 0 var(--ink);
}

.project.big {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: center;
    margin-bottom: 2rem;
}

.shot {
    width: 100%;
    height: auto;
    border-radius: 1.1rem;
    border: 3px solid var(--ink);
}

.project_top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.project h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
}

.card_shot {
    margin-bottom: 1.25rem;
}

.logo_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    aspect-ratio: 16 / 9;
    background: #262626;
    border: 3px solid var(--ink);
    border-radius: 1.1rem;
}

.ansible_logo {
    width: 34%;
    max-width: 150px;
    height: auto;
    filter: drop-shadow(5px 5px 0 var(--ink));
}

.logo_name {
    font-family: "Fredoka", "Lexend", system-ui, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
}

.project_row .project h3 {
    margin-bottom: 0.6rem;
}

.project p {
    color: var(--soft);
}

.project ul {
    list-style: none;
    margin-top: 1rem;
    display: grid;
    gap: 0.5rem;
}

.project li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--soft);
    font-size: 0.97rem;
}

.project li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid var(--ink);
}

.pills,
.cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pills {
    margin-top: 1.25rem;
}

.pill {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: var(--card-2);
    border: 2px solid var(--ink);
    color: #fff;
    white-space: nowrap;
}

.pill.red {
    background: var(--red);
    font-weight: 600;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.links a {
    font-family: "Fredoka", "Lexend", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.links a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
}

.project_row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.tilt_left {
    transform: rotate(-0.8deg);
}

.tilt_right {
    transform: rotate(0.8deg);
}

.about_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.about_card {
    background: var(--card);
    border: 3px solid var(--ink);
    border-radius: 1.75rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    box-shadow: var(--pop);
}

.label {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--red);
    border: 2px solid var(--ink);
    padding: 0.15rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.about_card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
}

.about_card h3.second {
    margin-top: 1.1rem;
}

.about_card .sub {
    color: var(--soft);
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.about_card .sub + p {
    margin-top: 0.8rem;
    color: var(--soft);
}

.tools {
    margin-top: 2rem;
    background: var(--card);
    border: 3px solid var(--ink);
    border-radius: 1.75rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    box-shadow: var(--pop);
}

.big_pill {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.4rem 1.05rem;
    background: #fff;
    color: var(--ink);
}

.contact {
    text-align: center;
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.contact h2 {
    margin-bottom: 0.75rem;
}

.contact > p {
    color: var(--soft);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    max-width: 32rem;
    margin: 0 auto;
}

.contact_bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.contact_bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.9rem 1.6rem;
    border-radius: 1.5rem;
    background: #fff;
    color: var(--ink);
    border: 3px solid var(--ink);
    box-shadow: var(--pop);
    text-decoration: none;
    font-weight: 600;
    overflow-wrap: anywhere;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact_bubble:hover {
    transform: translate(-2px, -2px) rotate(-1deg);
    box-shadow: 8px 8px 0 var(--ink);
}

.contact_bubble span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
    text-transform: lowercase;
}

.beyond {
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.beyond_card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    text-decoration: none;
    background: var(--card);
    border: 3px solid var(--ink);
    border-radius: 1.75rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--pop-big);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.beyond_card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 12px 12px 0 var(--ink);
}

.beyond_photos {
    position: relative;
    height: clamp(230px, 26vw, 300px);
}

.beyond_photos img {
    position: absolute;
    width: 44%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 6px solid #fff;
    border-radius: 1rem;
    box-shadow: 0 0 0 3px var(--ink), 6px 6px 0 3px var(--ink);
    transition: transform 0.3s ease;
}

.beyond_photos img:nth-child(1) {
    left: 2%;
    top: 10%;
    transform: rotate(-8deg);
    object-position: center 30%;
}

.beyond_photos img:nth-child(2) {
    left: 28%;
    top: 0;
    z-index: 2;
    transform: rotate(3deg);
}

.beyond_photos img:nth-child(3) {
    right: 2%;
    top: 14%;
    transform: rotate(9deg);
}

.beyond_card:hover .beyond_photos img:nth-child(1) {
    transform: rotate(-12deg) translateX(-6px);
}

.beyond_card:hover .beyond_photos img:nth-child(3) {
    transform: rotate(13deg) translateX(6px);
}

.beyond_text p {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.about_hero {
    text-align: center;
    padding: clamp(3rem, 7vw, 5rem) 0 2.5rem;
}

.about_hero h1 {
    font-size: clamp(2.75rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1;
}

.about_hero > p:last-child {
    margin-top: 1rem;
    color: var(--soft);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.life {
    columns: 3 300px;
    column-gap: 2rem;
}

.life_card {
    display: inline-block;
    width: 100%;
    margin: 0 0 2rem;
    break-inside: avoid;
    background: var(--card);
    border: 3px solid var(--ink);
    border-radius: 1.5rem;
    padding: 0.75rem 0.75rem 1.4rem;
    box-shadow: var(--pop);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.life_card:nth-child(odd) {
    transform: rotate(-1.2deg);
}

.life_card:nth-child(even) {
    transform: rotate(1.2deg);
}

.life_card:hover {
    transform: rotate(0deg) translate(-2px, -2px);
    box-shadow: var(--pop-big);
}

.life_card img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    border: 3px solid var(--ink);
}

.life_card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 1rem 0.5rem 0.3rem;
}

.life_card p {
    color: var(--soft);
    margin: 0 0.5rem;
}

.friends_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.friends_grid img {
    aspect-ratio: 1;
    object-fit: cover;
}

.friends_grid img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
}

.friends_grid img:nth-child(2) {
    object-position: center 20%;
}

.about_back {
    padding: 1rem 0 clamp(3rem, 7vw, 5rem);
}

.about_back .hero_buttons {
    justify-content: center;
}

.footer {
    text-align: center;
    padding: 1.75rem 1rem calc(1.75rem + var(--safe-bottom));
    color: var(--soft);
    font-size: 0.9rem;
    background: rgba(30, 30, 30, 0.6);
}

.ollie {
    position: fixed;
    right: calc(clamp(0.5rem, 2vw, 1.5rem) + var(--safe-right));
    bottom: calc(clamp(0.5rem, 1.5vw, 1rem) + var(--safe-bottom));
    width: clamp(64px, 11vw, 110px);
    height: auto;
    z-index: 200;
    transform: translateY(calc(100% + 2rem + var(--safe-bottom)));
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 0.5rem 0.75rem rgba(0, 0, 0, 0.45));
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.ollie.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ollie.show:hover {
    animation: wiggle 0.6s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-6deg); }
    75% { transform: rotate(6deg); }
}

@media (max-width: 900px) {
    .beyond_card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .beyond_photos {
        width: min(100%, 420px);
        margin: 0 auto;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero_text {
        order: 2;
    }

    .hero_photo {
        order: 1;
        width: min(70%, 280px);
        margin: 1rem 0 1rem;
    }

    .intro {
        margin-left: auto;
        margin-right: auto;
    }

    .hero_buttons {
        justify-content: center;
    }

    .project.big,
    .project_row,
    .about_grid {
        grid-template-columns: 1fr;
    }

    .tilt_left,
    .tilt_right {
        transform: none;
    }
}

@media (max-width: 600px) {
    .nav nav a:not(.nav_pill) {
        display: none;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .sticker {
        font-size: 0.85rem;
    }

    .sticker_one {
        left: -10%;
    }

    .sticker_two {
        right: -12%;
    }

    .bubble_btn {
        flex: 1 1 40%;
    }

    .project,
    .about_card,
    .tools {
        border-radius: 1.4rem;
        box-shadow: var(--pop);
    }

    .project:hover {
        transform: none;
        box-shadow: var(--pop);
    }

    .contact_bubble {
        width: 100%;
    }
}

@media (hover: none) {
    .beyond_card:hover,
    .project:hover,
    .bubble_btn:hover,
    .links a:hover,
    .contact_bubble:hover,
    .nav nav .nav_pill:hover {
        transform: none;
    }
}

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

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