:root {
    --blue: #2865ff;
    --dark-grey: #151515;
    --light-grey: #dcdcdc;
    --light-grey-opaque: #dcdcdc80;
    --yellow: #ffed28;
    --card-radius: 52px;
}

* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    overflow-y: scroll;
}

body {
    overflow-y: hidden;
}

html::-webkit-scrollbar {
    width: 15px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(#2865ff, #0026ff);
    border-radius: 40px;
}

.projects-button,
.projects-button:link,
.projects-button:visited,
.projects-button:hover,
.projects-button:active {
    text-decoration: none;
}


html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background: var(--dark-grey);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--light-grey);
}

p,
h1 {
    margin: 0;
}

.accent-blue {
    color: var(--blue);
}

.accent-grey {
    color: var(--dark-grey);
}


.trail {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 0%;
    pointer-events: none;
    opacity: 0.9;
    transform: translate(-50%, -50%);
    animation: fadeOut 0.8s ease-out forwards;
    z-index: 100000;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    background: #151515cc;
}

.switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: 44px;
    background-color: var(--light-grey);
    opacity: 0.95;
}

body {
    padding-top: 56px;
}

.switcher .slider {
    position: absolute;
    top: 6px;
    left: 0;
    width: 0;
    height: calc(100% - 12px);
    border-radius: 40px;
    background: var(--blue);
    transform: translateX(0);
    transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.28, 1), width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, width;
    pointer-events: none;
    z-index: 0;
}

.switcher-item {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    color: var(--dark-grey);
    border-radius: 40px;
    padding: 10px 24px;
    font-size: clamp(10px, 1.5vw, 14px);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.switcher-item.active {
    color: var(--light-grey);
    font-weight: 800;
}

.uefn-page {
    width: 100%;
}

.programming-page {
    width: 100%;
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(40, 101, 255, 0.9) 0 3px, transparent 3px),
        linear-gradient(90deg, #0b0d12 0 6%, #121418 6% 92%, #0b0d12 92% 100%);
    color: #d9dce7;
    padding: 10px 0 0;
    font-family: "Fira Code", monospace;
}

.pg-frame {
    width: min(1020px, 96vw);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 42px) clamp(16px, 3vw, 34px) 20px;
    position: relative;
    font-family: "Fira Code", monospace;
}

.pg-frame::before,
.pg-frame::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0.42;
    background-repeat: no-repeat;
    background-size: contain;
}

.pg-frame::before {
    width: clamp(120px, 14vw, 160px);
    height: clamp(120px, 14vw, 160px);
    top: 84px;
    right: 114px;
    background-image: url('./images/graphics-programming-1.png');
}

.pg-frame::after {
    width: clamp(140px, 15vw, 180px);
    height: clamp(140px, 15vw, 180px);
    right: 50px;
    bottom: 170px;
    background-image: url('./images/graphics-programming-4.png');
}

.pg-hero {
    display: grid;
    grid-template-columns: 20px minmax(320px, 1fr) minmax(260px, 0.9fr);
    gap: clamp(14px, 2.5vw, 32px);
    align-items: start;
    position: relative;
}

.pg-left-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 70px;
}

.pg-rail-line {
    width: 2px;
    height: 70px;
    background: #9ca6ba;
    opacity: 0.65;
}

.pg-rail-icon {
    font-size: 12px;
    color: #c7cde0;
    opacity: 0.8;
}

.pg-intro-line {
    font-size: clamp(18px, 2.3vw, 34px);
    color: #eceffc;
    line-height: 1.1;
    font-family: "Fira Code";

}

.pg-intro-line span {
    color: var(--blue);
    font-family: "Fira Code";

}

.pg-title {
    margin-top: 6px;
    font-size: clamp(30px, 3.8vw, 55px);
    line-height: 1.02;
    color: #f2f4ff;
    letter-spacing: 0.01em;
    font-family: "Fira Code";
}

.pg-subtitle {
    margin-top: 10px;
    font-size: clamp(13px, 1.2vw, 17px);
    line-height: 1.35;
    color: #9ba6be;
    max-width: 52ch;
    font-family: "Fira Code";
}

.pg-cta {
    display: inline-block;
    margin-top: 12px;
    border: 1px solid #2f65ff;
    background: #123182;
    color: #f0f2fc;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 12px;
    font-family: "Fira Code";

}

.pg-hero-side {
    justify-self: end;
    width: min(340px, 100%);
}

.pg-avatar-wrap {
    width: 190px;
    height: 190px;
    border-radius: 0;
    border: none;
    overflow: visible;
    position: relative;
    margin-left: auto;
    background: transparent;
}

.pg-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.pg-avatar-symbol {
    position: absolute;
    right: -8px;
    bottom: 16px;
    color: #2b69ff;
    font-size: 48px;
    font-weight: 700;
}

.pg-status {
    margin-top: 14px;
    border: 1px solid #6f7482;
    padding: 6px 10px;
    font-size: 12px;
    font-family: "Fira Code";
    color: #ced3e1;
}

.pg-status::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #2865ff;
    display: inline-block;
    margin-right: 8px;
}

.pg-skill-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 6px;
    font-family: "Fira Code";

}

.pg-skill-col {
    border: 1px solid #555c6a;
    min-height: 94px;
    padding: 6px;
    font-family: "Fira Code";

}

.pg-skill-head {
    margin: 0 0 8px;
    font-size: 10px;
    color: #f0f3ff;
    font-family: "Fira Code";

}

.pg-skill-item {
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
    color: #b0b7ca;
    font-family: "Fira Code";

}

.pg-about,
.pg-projects {
    margin-top: clamp(38px, 6vw, 70px);
    position: relative;
    font-family: "Fira Code";

}

.pg-section-title {
    font-size: clamp(28px, 3vw, 42px);
    color: #d7def2;
    margin: 0;
    letter-spacing: 0.02em;
    font-family: "Fira Code";

}

.pg-section-title::after {
    content: "";
    display: inline-block;
    width: clamp(130px, 18vw, 220px);
    height: 2px;
    margin-left: 12px;
    vertical-align: middle;
    background: #2058d7;
}

.pg-about-copy {
    margin-top: 14px;
    max-width: 72ch;
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.55;
    color: #b2b9cc;
    font-family: "Fira Code";

}

.pg-about-socials {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    margin-top: -30px;
}

.pg-about-socials img,
.pg-footer-icons img {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.pg-cards {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 10px;
    font-family: "Fira Code";

}

.pg-card {
    border: 1px solid #525866;
    background: rgba(18, 21, 28, 0.85);
    padding-bottom: 10px;
}

.pg-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #4f5766;
}

.pg-card-tags,
.pg-card-title,
.pg-card-desc,
.pg-card-link {
    margin-left: 10px;
    font-family: "Fira Code";

}

.pg-card-tags {
    margin-top: 8px;
    font-size: 10px;
    color: #b8bfd3;
}

.pg-card-title {
    margin-top: 10px;
    font-size: 30px;
    line-height: 1;
    color: #eef2ff;
    font-family: "Fira Code";

}

.pg-card-desc {
    margin-top: 8px;
    font-size: 12px;
    color: #aeb5c8;
    font-family: "Fira Code";

}

.pg-card-link {
    display: inline-block;
    margin-top: 10px;
    border: 1px solid #2f65ff;
    background: #112a6f;
    color: #eef2ff;
    text-decoration: none;
    font-size: 11px;
    padding: 4px 10px;
}

.pg-footer {
    margin-top: clamp(36px, 6vw, 60px);
    border-top: 1px solid #3a4250;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    font-family: "Fira Code";

}

.pg-footer-main,
.pg-footer-sub,
.pg-footer-media {
    margin: 0;
}

.pg-footer-main {
    color: #b5bccf;
    font-size: 10px;
}

.pg-footer-main span {
    margin-left: 6px;
}

.pg-footer-sub {
    margin-top: 7px;
    color: #8f96aa;
    font-size: 10px;
}

.pg-footer-media {
    text-align: right;
    color: #b5bccf;
    font-size: 28px;
    line-height: 1;
}

.pg-footer-icons {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.uefn-footer {
    padding: clamp(34px, 5vw, 56px) clamp(16px, 4vw, 44px) 20px;
    background: linear-gradient(90deg, #050507, #111114 55%, #1a1a1f);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.uefn-footer-main {
    width: min(1360px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: clamp(18px, 4vw, 42px);
    padding-bottom: clamp(20px, 3vw, 30px);
}

.uefn-footer-col {
    display: grid;
    gap: 10px;
    align-content: start;
}

.uefn-footer-heading {
    margin: 0;
    color: #f3f3f3;
    font-size: clamp(14px, 1.4vw, 20px);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.uefn-footer-text {
    margin: 0;
    color: #b8b8bc;
    font-size: clamp(11px, 0.95vw, 14px);
    line-height: 1.35;
}

.uefn-footer-links {
    display: grid;
    gap: 10px;
}

.uefn-footer-links a {
    color: #d7d7db;
    text-decoration: none;
    font-size: clamp(11px, 0.95vw, 14px);
    width: fit-content;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.uefn-footer-links a:hover {
    color: #ffffff;
    border-color: var(--blue);
}

.uefn-footer-legal {
    width: min(1360px, 100%);
    margin: 0 auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    color: #9d9da1;
    font-size: clamp(10px, 0.82vw, 12px);
    line-height: 1.35;
    text-align: center;
}

.landing {
    position: relative;
    width: 100%;
    min-height: clamp(220px, 34vw, 620px);
    background: var(--light-grey);
    overflow: hidden;
}

.landing-center {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.landing-eydrian-video {
    position: absolute;
    top: -12%;
    right: clamp(-260px, -18vw, -100px);
    width: clamp(760px, 74vw, 1360px);
    height: 124%;
    object-fit: contain;
    object-position: right center;
    z-index: 0;
    pointer-events: none;
}

.logo-eydrian {
    position: absolute;
    z-index: 1000;
    left: 34%;
    top: 52%;
    width: clamp(420px, 68vw, 1223px);
    height: auto;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.text-carousel {
    position: absolute;
    z-index: 2;
    left: 26.8%;
    top: 59%;
    width: min(92vw, 950px);
    max-width: 950px;
    height: clamp(18px, 4.5vw, 52px);
    transform: translate(-50%, 95%);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--blue);
    font-size: clamp(11px, 2.15vw, 30px);
    font-weight: 800;
    line-height: 1;
}

.text-carousel .carousel-track {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 100%;
    white-space: nowrap;
    will-change: transform;
}

.text-carousel .carousel-item,
.text-carousel .text-roles {
    margin: 0;
    padding: 0 0.35rem;
    line-height: 1;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.02em;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.text-carousel .carousel-track[style] {
    animation-name: marquee;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: reverse;
}

.introduction {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    width: 100%;
    min-height: clamp(420px, 70vw, 720px);
    padding: clamp(36px, 7vw, 96px) 18px;
    background: linear-gradient(180deg, rgba(21, 21, 21, 0.94), rgba(21, 21, 21, 0.98)),
        url('./images/component-eydrian-skin.png') center / cover no-repeat;
}

.introduction-button {
    width: fit-content;
    position: relative;
    border: none;
    border-radius: 999px;
    left: 6%;
    text-decoration: none;
    padding: 10px 22px;
    background: var(--blue);
    color: var(--light-grey);
    font-size: clamp(12px, 1.5vw, 18px);
    font-weight: 700;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: background 0.3s cubic-bezier(0.075, 0.82, 0.165, 1), color 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.introduction-button::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid var(--light-grey);
    border-radius: 999px;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.introduction-button:hover {
    background: var(--light-grey);
    color: var(--dark-grey);
}

.introduction-button:hover::after {
    opacity: 1;
    transform: scale(1);
}

.impact-text {
    max-width: 760px;
    font-size: clamp(26px, 6.5vw, 56px);
    font-style: italic;
    font-weight: 800;
    line-height: 0.95;
    color: var(--light-grey);
    -webkit-background-clip: text;
    background-clip: text;
    animation: scroll-appear 5s linear;
    animation-timeline: view();
    animation-range: entry 30% cover 40%;
}

.description-text {
    max-width: 1060px;
    font-size: clamp(11px, 1.8vw, 17px);
    line-height: 1.4;
    color: var(--light-grey);
    text-align: left;
    padding-left: 30%;
}

.contact-widget {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 1300;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: clamp(12px, 1.6vw, 24px);
    pointer-events: none;
}

.contact-fab {
    border: 2px solid var(--dark-grey);
    border-radius: 999px;
    min-width: clamp(140px, 14vw, 210px);
    height: clamp(40px, 4.2vw, 48px);
    padding: 0 20px;
    background: #2d66f2;
    color: #f1f1f1;
    font-size: clamp(12px, 1.05vw, 18px);
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.01em;
    cursor: pointer;
    margin-right: 12px;
    margin-bottom: 12px;
    box-shadow: none;
    transition: transform 0.25s ease, background-color 0.25s ease;
    pointer-events: auto;
}

.contact-fab:hover {
    transform: translateY(-2px);
    background: #3f75fa;
    box-shadow: none;
    border-color: var(--dark-grey);
}

.contact-fab.on-blue-bg {
    background: var(--dark-grey);
    color: var(--light-grey);
}

.contact-fab.on-blue-bg:hover {
    background: #232323;
}

.contact-panel {
    position: relative;
    width: min(92vw, 410px);
    margin-right: 8px;
    border-radius: 34px 34px 0 0;
    padding: 18px 18px 22px;
    background: var(--blue);
    color: var(--light-grey);
    overflow: hidden;
    box-shadow: 12px 0 0 #2b2b2b;
    transform: translateY(112%);
    opacity: 0;
    pointer-events: none;
}

.contact-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('./images/icon-black.png') right 12px center / 58% auto no-repeat;
    opacity: 0.16;
    pointer-events: none;
}

.contact-widget.open .contact-panel {
    animation: contactSurge 0.34s cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
    pointer-events: auto;
}

.contact-widget.is-closing .contact-panel {
    animation: contactSwipeClose 0.26s cubic-bezier(0.4, 0, 0.65, 0.25) forwards;
    pointer-events: none;
}

.mail-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 18px);
    z-index: 1600;
    min-width: min(88vw, 340px);
    max-width: min(92vw, 520px);
    border: 2px solid #0f1117;
    border-radius: 16px;
    background: #1e56df;
    color: #f2f3f8;
    padding: 12px 16px;
    font-size: clamp(12px, 1.2vw, 15px);
    font-weight: 700;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mail-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.mail-toast.is-error {
    background: #b6202f;
}

.contact-widget.open {
    gap: 0;
}

.contact-widget.open .contact-fab {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    min-width: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}

.contact-panel-close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 18, 25, 0.72);
    color: var(--light-grey);
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.contact-panel-close:hover {
    transform: scale(1.06);
    background: rgba(9, 12, 18, 0.9);
}

.contact-panel-title {
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: left;
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 900;
    font-size: clamp(30px, 3.1vw, 44px);
    line-height: 0.9;
    letter-spacing: 0.02em;
    color: var(--light-grey);
}

.contact-panel-form {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    display: grid;
    gap: 12px;
}

.contact-input {
    width: 100%;
    border: 2px solid #9d9d9d;
    border-radius: 40px;
    background: var(--light-grey);
    color: #2c2c2c;
    font-size: clamp(10px, 1.4vw, 15px);
    font-weight: 600;
    line-height: 1;
    padding: 16px 18px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.contact-input::placeholder {
    color: #2f2f2f;
    opacity: 1;
}

.contact-input:focus {
    border-color: #777;
}

.contact-message {
    min-height: 190px;
    border-radius: 42px;

    .contact-send {
        font-size: clamp(14px, 4vw, 18px);
    }
    resize: vertical;
}

.contact-send {
    border: none;
    border-radius: 999px;
    height: 56px;
    background: #0e0f13;
    color: #ececec;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(16px, 1.35vw, 22px);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-send:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

@keyframes contactSurge {
    0% {
        transform: translateY(112%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes contactSwipeClose {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(112%);
        opacity: 0;
    }
}

.services {
    position: relative;
    width: 100%;
    padding: clamp(28px, 6vw, 76px) clamp(14px, 4vw, 54px);
    display: grid;
    grid-template-columns: repeat(3, minmax(230px, 1fr));
    gap: clamp(16px, 2vw, 28px);
    background: linear-gradient(180deg, #111111, #161616 42%, #111111);
}

.service-item {
    position: relative;
    z-index: 1;
    isolation: isolate;
    min-height: clamp(210px, 22vw, 260px);
    padding: clamp(22px, 2.2vw, 30px) clamp(18px, 2.1vw, 28px);
    border-radius: 30px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-weight: 100;
    align-items: flex-start;
    overflow: visible;
    transform: translateY(0);
    transition: transform 0.5s ease, min-height 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);

}

.service-item:hover {
    /* Subtle lift effect on hover */
    transform: translateY(-50px);
    min-height: clamp(410px, 22vw, 260px);
    font-weight: 500px;
}

.service-item::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 32px;
    background: var(--blue);
    z-index: 0;
    pointer-events: none;
    transform: translate(11px, 10px) rotate(2deg);
    transform-origin: center;
    animation: shadow 1.5s ease-in-out infinite alternate-reverse;
}

@keyframes shadow {

        0% {
            transform: rotate(2deg);
            min-height: clamp(210px, 22vw, 260px);
        }

        100% {
            transform: translateY(150deg);
        }
    }


.service-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    border: 3px solid var(--blue);
    background: #ececef;
    z-index: 1;
    pointer-events: none;
}

.service-item > * {
    position: relative;
    z-index: 2;
}

.service-item:nth-child(2)::before {
    transform: translate(11px, 10px) rotate(2deg);
}

.service-item:nth-child(3)::before {
    transform: translate(11px, 10px) rotate(2deg);
}

.service-item img {
    width: clamp(24px, 2.3vw, 38px);
    height: auto;
    margin-bottom: clamp(10px, 1vw, 14px);
}

.service-title {
    margin: 0;
    color: #131313;
    font-size: clamp(20px, 2.2vw, 34px);
    line-height: 0.95;
    font-weight: 900;
    text-transform: uppercase;
}

.service-description {
    margin-top: clamp(8px, 1vw, 14px);
    color: #1d1d1d;
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1.18;
    font-weight: 500;
    max-width: 34ch;
}

.featured-project {
    width: 100%;
    padding: clamp(24px, 6vw, 72px) clamp(8px, 2.5vw, 28px);
    background: var(--dark-grey);
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.28, 1);
    will-change: transform;
}

.featured-project:hover {
    transform: scale(1.02);
}

.featured-header {
    width: min(1180px, 100%);
    margin: 0 auto clamp(14px, 3vw, 24px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.featured-title {
    margin: 0;
    width: auto;
    font-style: italic;
    font-size: clamp(24px, 4.8vw, 48px);
    font-weight: 800;
    color: var(--light-grey);
}

.featured-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--blue);
    color: #f4f4f4;
    font-size: clamp(15px, 1.55vw, 22px);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.featured-card {
    width: min(1180px, 100%);
    margin: 0 auto;
    min-height: clamp(380px, 52vw, 680px);
    background: var(--light-grey);
    border-radius: var(--card-radius);
    padding: clamp(12px, 2.4vw, 24px);
    display: grid;
    grid-template-columns: minmax(380px, 1.3fr) minmax(270px, 1fr);
    grid-template-areas:
        'image title'
        'image description'
        'image cta'
        'image stats';
    gap: clamp(14px, 2.2vw, 28px);
    align-items: stretch;
}

.featured-image {
    grid-area: image;
    border-radius: var(--card-radius);
    overflow: hidden;
    min-height: clamp(250px, 36vw, 390px);
    background:
        url('./images/logo-blockwars.png') center bottom / 88% auto no-repeat,
        url('./images/highlight-blockwars.png') center top / 100% auto no-repeat;
    display: flex;
    transition: background-size 0.35s ease;
}

.featured-card:has(.featured-project-button:hover) .featured-image {
    background-size: 98% auto, 100% auto;
}

.featured-image img {
    display: none;
}

.featured-card > .featured-project-title,
.featured-card > .featured-project-description,
.featured-card > .featured-project-button,
.featured-card > .featured-project-analytics {
    color: #222;
}

.featured-project-title {
    grid-area: title;
    font-size: clamp(34px, 5.2vw, 76px);
    font-style: italic;
    font-weight: 900;
    max-width: 10%;
    line-height: 0.88;
    align-self: start;
    margin-top: 15%;
}

.featured-project-description {
    grid-area: description;
    font-size: clamp(11px, 1.35vw, 19px);
    line-height: 1.35;
    margin-top: -10%;
    max-width: 40ch;
    color: var(--dark-grey);
    font-style: normal;
    font-weight: 500;
}

.featured-project-button {
    grid-area: cta;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    align-self: start;
    border-radius: 999px;
    padding: 9px 20px;
    background: var(--yellow);
    color: #1d1d1d;
    font-weight: 800;
    max-width: 35%;
    font-size: clamp(16px, 2vw, 26px);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: -12%;
    transition: background 0.6s cubic-bezier(0.075, 0.82, 0.165, 1), color 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.featured-project-button:link,
.featured-project-button:visited,
.featured-project-button:hover,
.featured-project-button:active {
    text-decoration: none;
}

.featured-project-button:hover {
    background: var(--blue);
    color: var(--light-grey);
    border-radius: 1500px;
    border: 2px solid var(--white);
}

.featured-project-analytics {
    margin-top: -12%;
    grid-area: stats;
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: flex-start; /* left */
    align-items: center;
    align-self: end; /* keep vertical position in card */
}

.analytics-item {
    background: #23252b;
    border-radius: 14px;
    padding: 10px 12px;
    min-width: clamp(110px, 14vw, 180px);
    min-height: clamp(72px, 14vw, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.analytics-number {
    color: #fff;
    font-size: clamp(24px, 3vw, 44px);
    font-weight: 900;
    line-height: 0.9;
}

.analytics-label {
    color: #d7d7d7;
    font-size: clamp(10px, 1.2vw, 16px);
    margin-top: 4px;
}

.social-media {
    display: flex;
    width: 100%;
    height: clamp(88px, 14vw, 170px);
    background: var(--light-grey);
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 2vw, 24px);
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 12px;
    
}

.social-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.social-item img {
    width: clamp(26px, 3vw, 44px);
    height: auto;
    transition: width 0.5s cubic-bezier(0.075, 0.82, 0.165, 1), opacity 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
    /* Baseline animation works everywhere; scroll timeline enhances where supported. */
    animation: autoRotation 8s linear infinite;
    transform-origin: center;
    will-change: transform;
}

.social-item img:hover {
    width: clamp(56px, 3vw, 44px);
    opacity: 0.5;

}

.projects {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 1080px;
    padding: clamp(24px, 5vw, 54px) clamp(10px, 3vw, 34px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    align-items: left;
    justify-content: center;
}

.projects-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.projects::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.62) 100%);
}

.projects-description,
.projects-button {
    position: relative;
    z-index: 2;
}

.projects-description {
    max-width: 74ch;
    font-size: clamp(13px, 1.9vw, 26px);
    line-height: 1.33;
    color: #f3f3f3;
}

.projects-button {
    width: fit-content;
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    background: var(--blue);
    color: var(--light-grey);
    font-size: clamp(14px, 1.7vw, 22px);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: background 0.3s cubic-bezier(0.075, 0.82, 0.165, 1), color 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.projects-button::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid var(--light-grey);
    border-radius: 999px;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.projects-button:hover {
    background: var(--light-grey);
    color: #1d1d1d;
}

.projects-button:hover::after {
    opacity: 1;
    transform: scale(1);
}

.showcase-gallery {
    width: 100%;
    min-height: clamp(360px, 52vw, 640px);
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    background: linear-gradient(90deg, #121212, #191919 45%, #121212);
    overflow: hidden;
}

.showcase-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(12px, 1.8vw, 22px);
    padding: clamp(20px, 3vw, 34px);
    overflow: hidden;
}

.showcase-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 54%;
    width: clamp(120px, 22%, 320px);
    transform: translateX(-50%);
    background: #ececef;
    z-index: 0;
}

.showcase-track {
    width: max-content;
    display: flex;
    gap: clamp(10px, 1.3vw, 16px);
    will-change: transform;
    position: relative;
    z-index: 1;
}

.track-top {
    animation: carouselLeft 22s linear infinite;
}

.track-bottom {
    animation: carouselRight 22s linear infinite;
}

.showcase-cell {
    width: clamp(220px, 15vw, 190px);
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    background: linear-gradient(145deg, #2b2b2b, #1b1b1b);
    border: 2px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.showcase-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    -webkit-user-drag: none;
    user-select: none;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.showcase-cell:hover {
    border-color: var(--light-grey);
    transform: scale(1.05);
}

.showcase-cell img:hover {
    transform: scale(1.2);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.8vw, 20px);
    padding: clamp(16px, 3vw, 34px);
    background: rgba(4, 6, 12, 0.92);
}

.gallery-lightbox.open {
    display: flex;
}

.lightbox-frame {
    width: min(82vw, 980px);
    max-height: 86vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.lightbox-frame img {
    width: 100%;
    max-height: 78vh;
    border-radius: 18px;
    object-fit: contain;
    background: #0f1014;
    border: 2px solid rgba(255, 255, 255, 0.14);
}

.lightbox-nav,
.lightbox-close {
    border: none;
    border-radius: 999px;
    background: var(--blue);
    color: #f3f3f3;
    font-size: clamp(12px, 1.5vw, 18px);
    font-weight: 800;
    padding: 10px 18px;
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: clamp(12px, 2vw, 24px);
    right: clamp(12px, 2vw, 24px);
}

.lightbox-counter {
    color: #dedede;
    font-weight: 700;
    font-size: clamp(11px, 1.1vw, 14px);
}

.lightbox-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: clamp(24px, 4.8vw, 56px);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: rgba(220, 220, 220, 0.24);
    text-transform: lowercase;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.lightbox-watermark.visible {
    opacity: 1;
}

.showcase-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(22px, 3vw, 42px) clamp(20px, 3vw, 38px);
    text-align: left;
}

.showcase-title {
    margin: 0;
    font-size: clamp(34px, 5.2vw, 64px);
    line-height: 0.9;
    font-weight: 900;
    text-transform: uppercase;
    color: #f0f0f0;
    max-width: 9ch;
}

.showcase-description {
    margin-top: clamp(0px, 0.25vw, 4px);
    max-width: 22ch;
    font-size: clamp(13px, 1.3vw, 20px);
    line-height: 1.15;
    color: #efefef;
    font-weight: 600;
}

.design-banner {
    width: 100%;
    min-height: clamp(340px, 48vw, 560px);
    background: var(--blue);
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1.1fr);
    align-items: center;
    gap: clamp(10px, 1vw, 22px);
    padding: clamp(20px, 4vw, 52px) clamp(20px, 4vw, 62px);
}

.design-copy {
    max-width: 460px;
    margin-left: 30%;
}

.design-title {
    margin: 0;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 0.88;
    color: #f2f2f2;
    font-weight: 900;
}

.design-title span {
    color: #cfdfff;
}

.design-title .accent-grey {
    color: var(--dark-grey);
}

.design-description {
    margin-top: clamp(12px, 1.5vw, 20px);
    max-width: 30ch;
    font-size: clamp(14px, 1.5vw, 22px);
    line-height: 1.2;
    color: #f3f3f3;
    font-weight: 500;
}

.design-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.design-visual img {
    width: min(100%, 620px);
    height: auto;
    display: block;
    pointer-events: none;
}

.cinematics-section {
    width: 100%;
    padding: 0 clamp(12px, 1.6vw, 20px) clamp(20px, 3vw, 32px);
    background: linear-gradient(180deg, #1b1f22, #111214 46%, #121212);
}

.cinematics-video {
    position: relative;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    min-height: clamp(210px, 26vw, 500px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cinematics-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.28s ease;
}

.cinematics-video video.is-switching {
    opacity: 0.35;
}

.cinematics-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 14, 0.62);
    z-index: 1;
}

.cinematics-copy {
    position: relative;
    z-index: 2;
    width: min(760px, 92%);
    margin-top: clamp(-6px, -0.8vw, -12px);
}

.cinematics-title {
    margin: 0;
    font-size: clamp(30px, 5.4vw, 72px);
    line-height: 0.9;
    font-style: italic;
    font-weight: 900;
    color: #f2f2f2;
}

.cinematics-description {
    margin: 8px auto 0;
    max-width: 24ch;
    font-size: clamp(13px, 1.5vw, 26px);
    line-height: 1.1;
    color: #f3f3f3;
    font-weight: 500;
}

.cinematics-cards {
    margin-top: clamp(-104px, -4.8vw, -56px);
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: clamp(10px, 1.6vw, 20px);
    padding: 0 clamp(6px, 1vw, 12px);
    width: min(1400px, 100%);
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-content: center;
    justify-items: center;
}

.cinematic-card {
    box-shadow: 15px 0px 0 0 var(--dark-grey);
    border: 0 solid transparent;
    border-radius: 28px;
    overflow: hidden;
    background: #14181d;
    padding: 0;
    position: relative;
    min-height: clamp(220px, 30vw, 540px);
    width: 100%;
    max-width: 290px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: border-color 0.3s cubic-bezier(0.075, 0.82, 0.165, 1), border-width 0.3s cubic-bezier(0.075, 0.82, 0.165, 1), transform 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.cinematic-card:hover {
    border: 10px solid var(--light-grey);
    transform: translateY(-5%);
}


.cinematic-frame {
    position: absolute;
    inset: 0;
}

.cinematic-bg {
    z-index: 0;
}

.cinematic-character {
    z-index: 1;
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.cinematic-card:hover .cinematic-character {
    transform: scale(1.15);
}

.cinematic-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cinematic-label {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    z-index: 2;
    border-radius: 16px;
    background: rgba(19, 22, 27, 0.94);
    color: #ececec;
    font-size: clamp(16px, 2.2vw, 38px);
    line-height: 0.88;
    font-style: italic;
    font-weight: 900;
    text-align: center;
    padding: 10px 8px 12px;
}

@keyframes carouselLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes carouselRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes appear-pop-up {
    0% {
        opacity: 0;
        scale: 0.5;
    }
    100% {
        opacity: 1;
        scale: 1;
    }
}

@keyframes reveal {
  from {
    opacity: 0;
    clip-path: inset(45% 20% 45% 20%);
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    clip-path: inset(0% 0% 0% 0%);
    transform: translateY(0);
  }
}

@keyframes scroll-appear{
    from {
        opacity: 0;
        scale: 0.5;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}



.scroll-reveal {
        opacity: 0;
        transform: translateY(50px);
        will-change: opacity, transform;
}

.scroll-reveal.is-visible {
    animation: reveal 0.45s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
        animation-delay: var(--reveal-delay, 0ms);
}

@media (max-width: 1024px) {
    .pg-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pg-left-rail {
        display: none;
    }

    .pg-hero-side {
        justify-self: start;
    }

    .pg-about-socials {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .pg-cards {
        grid-template-columns: 1fr;
    }

    .services {
        grid-template-columns: repeat(2, minmax(230px, 1fr));
    }

    .service-item:last-child {
        grid-column: span 2;
        max-width: 520px;
        justify-self: center;
        width: 100%;
    }

    .featured-card {
        min-height: auto;
        grid-template-columns: 1fr;
        grid-template-areas:
            'image'
            'title'
            'description'
            'cta'
            'stats';
    }

    .featured-image {
        min-height: clamp(240px, 58vw, 520px);
    }

    .featured-project-description {
        max-width: 68ch;
    }

    .featured-project-analytics {
        align-self: start;
    }

    .showcase-gallery {
        grid-template-columns: 1fr;
    }

    .showcase-copy {
        padding-top: 0;
        align-items: center;
        text-align: center;
    }

    .showcase-title,
    .showcase-description {
        max-width: none;
    }

    .design-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .design-copy {
        margin: 0 auto;
    }

    .design-description {
        max-width: none;
    }

    .cinematics-cards {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
        margin-top: clamp(-20px, -3vw, -30px);
        justify-items: center;
    }

    .cinematic-frame img {
        object-position: center 34%;
    }
}

@media (max-width: 720px) {
    body {
        padding-top: 52px;
    }

    .pg-frame {
        width: 100%;
        padding: 16px 12px 20px;
    }

    .pg-intro-line {
        font-size: clamp(16px, 5.3vw, 22px);
    }

    .pg-title {
        font-size: clamp(27px, 8.4vw, 38px);
    }

    .pg-subtitle {
        font-size: 12px;
    }

    .pg-avatar-wrap {
        width: 150px;
        height: 150px;
    }

    .pg-avatar-symbol {
        font-size: 32px;
    }

    .pg-skill-grid {
        grid-template-columns: 1fr;
    }

    .pg-footer {
        flex-direction: column;
    }

    .pg-footer-media,
    .pg-footer-icons {
        text-align: left;
        justify-content: flex-start;
    }

    .services {
        grid-template-columns: 1fr;
        padding: 24px 16px 32px;
    }

    .service-item,
    .service-item:last-child {
        grid-column: auto;
        max-width: none;
        width: 100%;
    }

    .header {
        top: 0;
        padding: 6px 10px;
    }

    .switcher {
        gap: 4px;
        padding: 6px;
    }

    .switcher-item {
        padding: 8px 14px;
        font-size: 10px;
    }

    .text-carousel {
        left: 50%;
        top: 63%;
        width: min(92vw, 760px);
        transform: translate(-50%, 95%);
        justify-content: center;
        color: var(--dark-grey);
        text-align: center;
    }

    .text-carousel .carousel-item,
    .text-carousel .text-roles {
        color: var(--dark-grey);
    }

    .logo-eydrian {
        width: clamp(220px, 64vw, 860px);
    }

    .landing-eydrian-video {
        top: -5%;
        right: clamp(-340px, -46vw, -140px);
        width: clamp(640px, 146vw, 1120px);
        height: 120%;
        object-fit: contain;
        object-position: right center;
    }

    .uefn-footer-links {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .uefn-footer-main {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .uefn-footer-legal {
        text-align: left;
        font-size: 11px;
    }

    .featured-project {
        padding: 28px 12px 34px;
    }

    .featured-header {
        justify-content: center;
        text-align: center;
    }

    .featured-title,
    .featured-project-title,
    .featured-project-description {
        text-align: center;
    }

    .featured-project-title {
        max-width: none;
        margin-top: 0;
    }

    .featured-project-description {
        margin-top: 0;
        max-width: none;
    }

    .featured-project-button {
        justify-self: center;
        align-self: center;
        max-width: none;
        margin-top: 0;
    }

    .featured-project-analytics {
        margin-top: 0;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .analytics-item {
        flex: 1 1 130px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .projects-description {
        text-align: center;
        text-justify: center;
        justify-content: center;
    }

    .projects-button {
        justify-content: center;
        align-self: center;
        display: flex;
    }

    .showcase-carousel {
        padding: 18px 12px;
        gap: 10px;
    }

    .showcase-carousel::before {
        display: none;
    }

    .showcase-cell {
        width: 110px;
        border-radius: 18px;
    }

    .track-top,
    .track-bottom {
        animation-duration: 16s;
    }

    .showcase-title {
        font-size: clamp(28px, 10vw, 48px);
    }

    .design-banner {
        margin-top: 24px;
    }

    .gallery-lightbox {
        flex-direction: column;
    }

    .lightbox-frame {
        width: min(94vw, 980px);
    }

    .lightbox-nav,
    .lightbox-close {
        padding: 8px 16px;
    }

    .lightbox-watermark {
        font-size: clamp(18px, 8vw, 38px);
    }

    .cinematics-section {
        padding: 0 10px 24px;
    }

    .cinematics-video {
        min-height: 180px;
        border-radius: 0 0 24px 24px;
    }

    .cinematics-description {
        max-width: 28ch;
        font-size: clamp(14px, 4.4vw, 22px);
    }

    .cinematics-cards {
        margin-top: -12px;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }

    .contact-widget {
        right: 0;
        bottom: 0;
        width: 100vw;
        flex-direction: row-reverse;
        justify-content: flex-end;
        gap: 10px;
        overflow: hidden;
    }

    .contact-fab {
        min-width: 130px;
        height: 40px;
        padding: 0 16px;
        font-size: clamp(11px, 3.2vw, 15px);
        margin-right: 10px;
        margin-bottom: 10px;
    }

    .contact-panel {
        width: min(92vw, 660px);
        margin-right: 15%;
        padding: 14px;
    }

    .contact-panel-title {
        font-size: clamp(14px, 8vw, 24px);
    }

    .contact-input {
        font-size: clamp(14px, 4.2vw, 18px);
        padding: 14px 16px;
    }

    .contact-message {
        min-height: 160px;
    }

    .cinematic-card {
        min-height: 210px;
        max-width: 320px;
    }

    .cinematic-label {
        font-size: clamp(22px, 8vw, 34px);
    }

    .cinematic-frame img {
        object-position: center 24%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Final size override for the floating CONTACT ME button */
#contactFab.contact-fab {
    min-width: 160px !important;
    width: auto !important;
    height: 46px !important;
    padding: 0 20px !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    border: 2px solid var(--dark-grey) !important;
}

/* Also shrink the CONTACT ME title inside the panel */
#contactPanel .contact-panel-title {
    font-size: clamp(18px, 2.2vw, 24px) !important;
    line-height: 1 !important;
}