/* ================================ Reset default styles ================================ */

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

body, 
h1, 
h2, 
h3, 
h4, 
h5, 
h6, 
p, 
ol, 
ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

ol, 
ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10001;
    padding: 0.75rem 1.25rem;
    background: var(--btn-solid-bg);
    color: var(--btn-solid-text);
    font-family: 'Quicksand-semibold';
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
}

.skip-link:focus,
.skip-link:focus-visible {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    overflow: visible;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ================================ Custom styles ================================ */

@font-face {
    font-family: Quicksand-regular;
    src: url('../fonts/Quicksand/Quicksand-Regular.ttf');
    font-display: swap;
}

@font-face {
    font-family: Quicksand-light;
    src: url('../fonts/Quicksand/Quicksand-Light.ttf');
    font-display: swap;
}

@font-face {
    font-family: Quicksand-medium;
    src: url('../fonts/Quicksand/Quicksand-Medium.ttf');
    font-display: swap;
}

@font-face {
    font-family: Quicksand-semibold;
    src: url('../fonts/Quicksand/Quicksand-SemiBold.ttf');
    font-display: swap;
}

@font-face {
    font-family: Quicksand-bold;
    src: url('../fonts/Quicksand/Quicksand-Bold.ttf');
    font-display: swap;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--preloader-bg, var(--page-bg));
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader.preloader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.preloader__visual {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader__logo {
    width: 56px;
    height: 56px;
    position: relative;
    z-index: 1;
    animation: preloaderLogoPulse 1.8s ease-in-out infinite;
}

.preloader__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--progress-track);
    border-top-color: var(--accent);
    border-right-color: var(--accent-bright);
    animation: preloaderSpin 1.1s linear infinite;
    box-shadow: 0 0 24px var(--progress-glow);
}

.preloader__label {
    margin: 0;
    font-family: 'Quicksand-medium', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.9;
}

.preloader__bar {
    display: block;
    width: 140px;
    height: 3px;
    border-radius: 999px;
    background: var(--progress-track);
    overflow: hidden;
}

.preloader__bar-fill {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: preloaderBarSlide 1.4s ease-in-out infinite;
}

@keyframes preloaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes preloaderLogoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.94);
        opacity: 0.85;
    }
}

@keyframes preloaderBarSlide {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(320%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .preloader__ring,
    .preloader__logo,
    .preloader__bar-fill {
        animation: none;
    }

    .preloader__bar-fill {
        width: 100%;
        background: var(--accent);
    }
}

body {
    background-color: var(--page-bg);
    transition: background-color 0.25s ease;
}

h1 {
    font-size: 80px;
    font-family: 'Quicksand-Medium';
    color: var(--text-primary);
}

h2 {
    font-size: 50px;
    font-family: 'Quicksand-Medium';
    color: var(--text-primary);
}

h3 {
    font-size: 35px;
    font-family: 'Quicksand-Medium';
    color: var(--text-primary);
}

p {
    font-size: 16px;
    line-height: 30px;
    font-family: 'Quicksand-Medium';
    color: var(--text-primary);
}

nav#navigation, 
footer#footer, 
section {
    width: var(--layout-width, 90%);
    max-width: var(--layout-max-width, 1400px);
    margin-left: auto;
    margin-right: auto;
}

section {
    display: flex;
    align-items: center;
    position: relative;
    height: calc(100vh - var(--nav-height, 96px) - var(--footer-height, 68px));
    margin-top: var(--nav-height, 96px);
    background: transparent;
}

img.site-logo {
    width: 65px;
    height: 65px;
}

.menu-div .main-menu li a {
    color: var(--text-primary);
}

nav#navigation {
    display: grid;
    grid-template-columns: 1fr 3fr;
    margin: 0px auto;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0px);
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 99;
    transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

ul.main-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin-block-start: 1.5em;
    margin-block-end: 1.5em;
}

li.menu-item a {
    text-decoration: none;
}

ul.main-menu li.menu-item:not(.menu-item-resume):not(.theme-toggle-item) > a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

ul.main-menu li.menu-item {
    font-size: 16px;
    font-family: 'Quicksand-regular';
}

ul.main-menu li.menu-item.menu-item-resume {
    display: flex;
    align-items: center;
}

a.resume-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 2.25rem;
    padding: 0.4375rem 1rem;
    line-height: 1;
    background-color: var(--resume-bg);
    color: var(--resume-text) !important;
    border-radius: 5px;
    border: 2px solid transparent;
    box-sizing: border-box;
    text-decoration: none;
    vertical-align: middle;
}

a.resume-link .material-icons-outlined.resume-icon {
    font-size: 1.0625rem;
    width: 1.0625rem;
    height: 1.0625rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: translateY(1px);
}

li.m-menu-item.menu-item-resume > a.resume-link {
    padding: 0.625rem 1.125rem;
    min-height: auto;
}

a.resume-link .resume-label {
    display: block;
    font-family: 'Quicksand-semibold', sans-serif;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.01em;
}

.portfolio-icon {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    vertical-align: -0.15em;
    fill: currentColor;
    flex-shrink: 0;
}

.other-contacts a .portfolio-icon,
.contact-email-link .portfolio-icon,
a.testimonials-rec-btn .portfolio-icon {
    margin-right: 0.35em;
}

.other-contacts-mobile a .portfolio-icon {
    width: 1.35em;
    height: 1.35em;
}

li.menu-item.menu-item-resume a.resume-link:hover,
li.m-menu-item.menu-item-resume a.resume-link:hover {
    color: var(--resume-hover-fg) !important;
    background-color: var(--resume-hover-bg);
    border: 2px solid var(--accent);
    -moz-transition: all .5s ease-in;
    -o-transition: all .5s ease-in;
    -webkit-transition: all .5s ease-in;
    transition: all .5s ease-in;
}

li.menu-item a:hover {
    color: var(--accent);
    font-family: 'Quicksand-SemiBold';
}

ul.main-menu li.menu-item:not(.menu-item-resume):not(.theme-toggle-item) > a:hover {
    background: var(--nav-hover-bg);
}

span.intro-text {
    color: var(--accent-bright);
    font-size: 24px;
    font-family: 'Quicksand-Medium';
}

span#typewriter, 
.typewriter-starting-text {
    font-size: 72px;
    line-height: 80px;
    color: var(--accent-bright);
    opacity: var(--typewriter-opacity);
    font-family: 'Quicksand-medium';
    margin-top: 25px;
}

.intro-description-wrapper {
    margin-top: 15px;
}

span.intro-description {
    color: var(--text-primary);
    font-size: 24px;
    font-family: 'Quicksand-Regular';
    line-height: 40px;
}

.explore-btn {
    margin-top: 2rem;
}

#banner-sec .intro-description-wrapper {
    margin-top: 0.85rem;
    width: 100%;
    max-width: 100%;
}

#banner-sec .hero-stats {
    margin-top: 1rem;
    gap: 1rem 2rem;
}

#banner-sec .hero-stat__value {
    font-size: 1.65rem;
}

#banner-sec .explore-btn {
    margin-top: 1.35rem;
}

a.explore {
    color: var(--text-primary);
    font-size: 20px;
    text-decoration: none;
    padding: 10px 0px;
    border: 1px solid var(--explore-border);
    display: inline-flex;
    justify-content: center;
    font-family: 'Quicksand-regular';
}

a.explore:hover {
    color: var(--accent);
    border: 1px solid var(--accent);
    -moz-transition: all .5s ease-in;
    -o-transition: all .5s ease-in;
    -webkit-transition: all .5s ease-in;
    transition: all .5s ease-in;
}

.explore span.material-icons-outlined, 
.lets-talk span.material-icons-outlined {
    margin-left: 5px;
    margin-right: -10px;
    margin-top: 5px;
    font-size: 17px;
}

.intro-description a {
    text-decoration: none;
    color: var(--banner-link);
    font-family: 'Quicksand-semibold';
}

a.lets-talk, 
input.btn-submit {
    margin-left: 25px;
    text-decoration: none;
    padding: 10px 0px;
    background-color: var(--btn-solid-bg);
    font-size: 20px;
    font-family: 'Quicksand-medium';
    color: var(--btn-solid-text);
    display: inline-flex;
    justify-content: center;
    border: 1px solid var(--btn-solid-bg);
}

input.btn-submit {
    margin-left: unset;
    margin-top: 30px;
}

a.lets-talk:hover, 
input.btn-submit:hover {
    background-color: var(--btn-solid-hover-bg);
    color: var(--btn-solid-hover-text);
    -moz-transition: all .5s ease-in;
    -o-transition: all .5s ease-in;
    -webkit-transition: all .5s ease-in;
    transition: all .5s ease-in;
}

.explore-btn a {
    width: 200px;
}

p.about-description {
    margin-top: 25px;
}

ul.technologies-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 50%;
    color: var(--text-primary);
    margin-top: 15px;
    margin-left: 15px;
}

.technologies-list li {
    font-size: 15px;
    line-height: 30px;
    display: inline-flex;
    font-family: 'Quicksand-regular';
}

.technologies-list li:before {
    font-family: 'Material Icons Outlined';
    content: '\e5df';
    color: var(--accent);
    margin: 0px 10px;
}

.mobile-menu {
    display: none;
}

footer#footer {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    min-height: var(--footer-height, 68px);
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    padding: 0.55rem 1rem 0.65rem;
    color: var(--text-primary);
    font-family: 'Quicksand-regular';
    font-size: 12px;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    z-index: 99;
    background: transparent;
    border-top: 1px solid var(--footer-border);
}

footer#footer a {
    text-decoration: none;
    color: var(--accent);
    font-family: 'Quicksand-medium';
}

.experience-wrapper {
    display: grid;
    grid-template-columns: 1fr 5fr;
    margin-top: 25px;
    color: var(--text-primary);
    font-family: 'Quicksand-Regular';
}

.experience-wrapper div a {
    text-decoration: none;
    color: var(--text-primary);
}

.company {
    padding: 15px 0px 15px 00;
}

.company-text {
    display: grid;
    padding-bottom: 20px;
    grid-row-gap: 10px;
    padding-top: 15px;
    /*border-left: 2px solid #80808021;*/
    padding-left: 20px;
}

span.position {
    font-size: 20px;
}

span.company-name a {
    color: var(--accent);
    font-family: 'Quicksand-medium';
}

span.year-range {
    font-size: 14px;
    font-family: monospace;
    color: var(--year-muted);
}

li.job-details {
    font-size: 15px;
    line-height: 35px;
    margin-left: 35px;
    margin-top: 10px;
    display: table-row;
}

ul.job-points {
    padding-left: 20px;
}

li.job-details:before {
    font-family: 'Material Icons Outlined';
    content: '\e5df';
    color: var(--accent);
    margin: 0 4px;
    line-height: 10px;
    display: table-cell;
}

.company.active-cn a {
    color: var(--accent);
    font-family: 'Quicksand-medium';
}

.company.active-cn {
    border-left: 2px solid var(--accent);
    padding-left: 5px;
    min-width: 155px;
}

.company-wrapper {
    border-right: 2px solid var(--company-border);
}

.company {
    padding-left: 5px;
}

section#contact-sec .row .explore-btn .explore {
    padding: 10px 50px;
}

/* Honeypot — hidden from real users; bots often fill this */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.double-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 30px
}

.turnstile-wrap {
    margin: 18px 0 8px;
}

.turnstile-wrap .cf-turnstile {
    display: inline-block;
}

.input-row input, 
.input-row #content {
    width: 100%;
    height: 50px;
    background-color: var(--input-bg);
    border-top: none;
    border-right: none;
    border-left: none;
    border-bottom: 2px solid var(--input-border);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Quicksand-regular';
    padding: 10px 0 10px 21px;
    transition: border-color 0.2s ease;
}

.field-label {
    display: block;
    font-family: 'Quicksand-medium';
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    margin-bottom: 6px;
    padding-left: 21px;
}

.field-error {
    display: block;
    min-height: 0;
    padding-left: 21px;
}

.field-error:not(:empty) {
    min-height: 1.2em;
    margin-bottom: 4px;
}

.input-row--invalid .input-field,
.input-field.input-field--invalid {
    border-bottom-color: #e66262;
}

.input-row input:focus-visible, 
.input-row #content:focus-visible {
    outline: none;
    border-bottom-color: var(--accent);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.input-row input::placeholder, 
.input-row #content::placeholder {
    color: var(--text-primary);
    opacity: var(--input-placeholder-op);
}

.input-row #content {
    height: 100px;
}

form {
    width: 100%;
}

input.btn-submit {
    margin-top: 30px;
    width: 200px;
    border-radius: 0px !important;
    -webkit-appearance: none;
}

span.info {
    color: #de0000;
    font-family: 'Quicksand-medium';
    font-size: 13px;
}

.input-row {
    margin-top: 15px;
}

p.successMessage {
    color: #97d64e;
    margin-top: 20px;
}

p.errorMessage {
    color: #e66262;
    margin-top: 20px;
}

textarea#content::-webkit-input-placeholder {
    line-height:normal!important;
}

#contact-sec .row {
    width: 100%;
}

span.title-404 {
    font-family: 'Quicksand-bold';
    color: var(--title-404);
    font-size: 65px;
}

.technologies-wrapper {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 0.75rem 1rem;
    padding-top: 24px;
    justify-items: center;
}

img.technology-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(2px 4px 6px var(--tech-shadow));
}

.technology {
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}


img.technology-img:hover {
    filter: opacity(0.7);
}

.work-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    min-width: 100%;
    gap: 1rem;
    margin-top: 1.5rem;
}

div.eachwork {
    position: relative;
    padding: 1.35rem 1rem 1.35rem 1.1rem;
    min-height: 5.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    border: 1px solid var(--surface-card-border);
    border-radius: 12px;
    background: var(--surface-card);
    backdrop-filter: blur(16px) saturate(1.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

#work-sec .row {
    width: 100%;
}

p.work-name {
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--text-primary);
    font-family: 'Quicksand-SemiBold', sans-serif;
    width: 100%;
    padding-right: 1.25rem;
}

section#work-sec {
    position: relative;
}

#work-sec.work-popup-open {
    align-items: flex-start;
    overflow: hidden;
}

#work-sec.work-popup-open .row {
    max-height: 100%;
    overflow: hidden;
}

/* .work-popup {
    position: absolute;
    width: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 110;
    background-color: rgb(37 25 25 / 15%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px) contrast(60%);
    border-radius: 10px;
    box-shadow: 2px 2px 10px #00000087;
    padding: 25px;
}

.work-popup:after {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) contrast(60%) !important;
} */

.work-preview-wrap {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 12px;
}

.work-preview-viewport {
    width: 100%;
    max-height: min(52vh, 520px);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid var(--iframe-border);
    border-radius: 8px;
    background: var(--iframe-bg);
    line-height: 0;
}

.work-preview-scaler {
    overflow: hidden;
    flex-shrink: 0;
    margin: 0 auto;
}

.work-preview-scaler .work-site-frame {
    width: 1280px;
    height: 800px;
    display: block;
    margin: 0;
    border: 0;
    border-radius: 0;
    transform-origin: 0 0;
    background: #fff;
}

p.work-preview-note {
    font-size: 12px;
    line-height: 1.4;
    color: var(--work-note);
    margin: 8px 0 0;
    text-align: center;
    font-family: 'Quicksand-regular';
}

p.work-preview-note .work-preview-live-hint {
    white-space: nowrap;
}

p.work-preview-note .work-preview-live-link {
    color: var(--work-note-strong);
    font-family: 'Quicksand-medium';
    text-decoration: underline;
    text-underline-offset: 2px;
}

p.work-preview-note .work-preview-live-link:hover {
    color: var(--text-primary);
}

p.work-preview-note strong {
    color: var(--work-note-strong);
    font-family: 'Quicksand-medium';
}

h4 {
    font-size: 20px;
    margin-top: 10px;
    color: var(--text-primary);
    font-family: 'Quicksand-semibold';
}

p.task, 
p.learn {
    font-size: 14px;
    line-height: 25px;
    margin-left: 35px;
    margin-top: 5px;
}

h3.work-title {
    color: var(--heading-work);
    font-size: 30px;
}

a.site-link {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
    background-color: var(--site-link-bg);
    text-align: center;
    padding: 0.65rem 1.35rem;
    color: var(--site-link-text);
    font-family: 'Quicksand-medium';
    margin-top: 15px;
    border: 1px solid var(--site-link-border);
    border-radius: 6px;
    white-space: nowrap;
}

a.site-link:hover {
    color: var(--site-link-hover-text);
    background-color: var(--site-link-hover-bg);
    border: 1px solid var(--site-link-bg);
}

body.work-popup-open {
    overflow: hidden;
}

.work-popup {
    --work-popup-offset-top: 92px;
    --work-popup-offset-bottom: 12px;
    position: fixed;
    top: var(--work-popup-offset-top);
    left: 50%;
    transform: translateX(-50%);
    width: var(--layout-width, 90%);
    max-width: var(--layout-max-width, 1400px);
    max-height: calc(100vh - var(--work-popup-offset-top) - var(--work-popup-offset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 110;
    padding: 3.25rem 1.25rem 1.5rem;
    background-color: var(--page-bg);
    isolation: isolate;
    box-shadow: var(--shadow-popup);
    border-radius: 10px;
    border: 1px solid var(--surface-card-border);
    box-sizing: border-box;
}

.work-popup .work-preview-wrap {
    margin-bottom: 1rem;
}

.work-popup .work-preview-viewport {
    max-height: min(52vh, 520px);
}

.work-popup__intro {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.work-popup .go-back {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0.2rem 0 0;
    padding: 0;
    border: none;
    border-radius: 7px;
    background-color: var(--go-back-bg);
    color: var(--go-back-icon);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: static;
    float: none;
    z-index: 3;
}

.work-popup .go-back .material-icons-outlined {
    font-size: 1.15rem;
    line-height: 1;
}

.work-case-header {
    flex: 1;
    min-width: 0;
}

/* 
.work-popup span.material-icons-outlined {
    float: right;
    color: #fff;
    font-size: 25px;
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 10px;
    cursor: pointer;
} */

.work-popup .site-link-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
}

.work-popup a.site-link {
    margin-left: 0;
    margin-right: 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
}

.form-wrapper {
    padding-right: 30px;
    min-width: 0;
}

.contact-aside {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 100%;
    padding-left: 30px;
    border-left: 2px solid var(--contact-border);
    min-width: 0;
    box-sizing: border-box;
}

.other-contacts {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 0;
    padding-left: 0;
    border-left: none;
    min-height: 0;
}

.other-contacts a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-family: 'Quicksand-regular';
}

.other-contacts a i {
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
}

.contact-info {
    position: absolute;
    left: 50px;
    bottom: 50px;
    display: grid;
}

.contact-info a {
    font-size: 25px;
    margin-top: 25px;
    color: var(--text-primary);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--accent);
}

.other-contacts a:hover {
    color: var(--accent);
}

.other-contacts-mobile a:hover {
    color: var(--accent);
}

/* ================================ Responsve Queries ================================ */

@media (max-width: 1280px) {
    nav#navigation {
        display: grid;
        grid-template-columns: 1fr 6fr;
    }

}

@media (max-width: 1124px) {
    :root {
        --layout-width: 92%;
        --layout-max-width: 1280px;
    }

    /* .work-popup {
        position: absolute;
        width: 90%;
    } */
}

@media (max-width: 991px) {
    span.intro-text {
        font-size: 20px;
    }

    h1 {
        font-size: 50px;
        padding: 15px 0;
    }
     
    h2 {
        font-size: 35px;
    }

    h3 {
        font-size: 28px;
    }

    p {
        font-size: 15px;
        line-height: 26px;
    }

    span#typewriter, 
    .typewriter-starting-text {
        font-size: 42px;
        line-height: 50px;
        margin-top: 25px;
    }

    span.intro-description {
        font-size: 20px;
        margin-top: 25px;
        line-height: 35px;
    }

    a.explore, 
    a.lets-talk, 
    input.btn-submit {
        font-size: 15px;
    }

    ul.main-menu {
        display: none;
    }

    nav#navigation {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* background-color: var(--nav-bg); */
    }

    .explore-btn a {
        width: 175px;
    }

    .lets-talk span.material-icons-outlined, 
    .explore span.material-icons-outlined {
        font-size: 15px;
        margin-top: 2px;
    }

    .explore-btn {
        display: grid;
        grid-template-columns: 1fr;
        grid-row-gap: 25px;
    }

    a.lets-talk {
        margin-left: unset;
    }

    .intro-description-wrapper {
        width: unset;
    }

    .explore-btn {
        margin-top: 25px;
    }

    p.about-description {
        width: 100%;
    }

    .mobile-menu a {
        color: var(--text-primary);
        text-decoration: none;
    }

    .mobile-menu a span.ham {
        float: right;
    }

    .mobile-menu {
        display: block;
        position: relative;
    }

    div.m-menu.active-menu  {
        position: fixed;
        left: 0;
        right: 0;
        top: 64px;
        width: 100%;
        max-width: 100vw;
        background-color: var(--mobile-overlay);
        backdrop-filter: blur(16px) saturate(1.1);
        -webkit-backdrop-filter: blur(16px) saturate(1.1);
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
        box-sizing: border-box;
    }

    ul.m-menu.active-menu {
        display: grid;
        padding: 1.75rem 1.25rem 2rem;
        gap: 0.15rem;
    }

    .mobile-menu a span.ham {
        font-size: 50px;
    }

    img.site-logo {
        width: 50px;
        height: 50px;
    }

    li.m-menu-item {
        text-align: center;
        font-size: 1.35rem;
        margin-top: 0;
        padding: 0.65rem 0.5rem;
        font-family: 'Quicksand-medium';
    }

    li.m-menu-item a span:not(.resume-icon) {
        font-size: 1.65rem;
    }

    li.m-menu-item.menu-item-resume a.resume-link .material-icons-outlined.resume-icon {
        font-size: 1.25rem;
        width: 1.25rem;
        height: 1.25rem;
    }

    .experience-wrapper {
        width: 100%;
    }

    li.job-details {
        font-size: 13px;
        line-height: 25px;
        display: table-row;
    }

    ul.job-points {
        padding-left: 10px;
    }

    span.year-range {
        font-size: 13px;
        font-family: monospace;
        color: var(--year-muted);
    }

    span.position {
        font-size: 18px;
    }

    .company-text {
        padding-left: 15px;
    }

    .technologies-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    }

    .work-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .contact-info {
        position: absolute;
        left: 25px;
        bottom: 75px;
        display: grid;
    }

    .work-popup {
        --work-popup-offset-top: 76px;
        --work-popup-offset-bottom: 10px;
        width: calc(100vw - 0.75rem);
        max-width: none;
        padding: 1.15rem 1rem 1.25rem;
    }

    .work-popup__intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        margin-bottom: 0.85rem;
    }

    .work-popup .go-back {
        margin: 0;
    }

    .work-popup .work-preview-viewport {
        max-height: min(48vh, 460px);
    }
    
    button.qxCTlb {
        width: fit-content; 
        display: block; 
        margin: 30px auto; 
    }
}

@media (min-width: 769px) {
    .other-contacts-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    span.intro-text {
        font-size: 18px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
        line-height: 24px;
    }

    span#typewriter, 
    .typewriter-starting-text {
        font-size: 32px;
        line-height: 40px;
    }

    span.intro-description {
        font-size: 18px;
        line-height: 32px;
    }

    ul.technologies-list {
        width: 80%;
    }

    .technologies-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    }

    .work-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
        gap: 0.85rem;
    }

    div.eachwork {
        min-height: 5.25rem;
        padding: 1.15rem 0.85rem;
    }

    h3.work-title {
        font-size: 25px;
    }

    h4 {
        font-size: 17px;
    }

    /* .work-popup {
        position: absolute;
        width: 95%;
    } */

    p.task, 
    p.learn {
        font-size: 12px;
        line-height: 22px;
        margin-left: 20px;
        margin-top: 5px;
    }

    a.site-link {
        margin-top: 15px;
        padding: 5px;
    }

    .other-contacts {
        display: none;
    }
    
    .form-wrapper {
        padding: unset;
    }
    
    .contact-wrapper {
        display: block;
    }

    .contact-wrapper {
        align-items: start;
    }

    .contact-aside {
        padding-left: 0;
        border-left: none;
        margin-top: 1.5rem;
        min-height: auto;
        align-self: auto;
    }

    .other-contacts {
        flex: none;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .other-contacts-mobile {
        display: flex;
        justify-content: space-evenly;
        margin-top: 0;
    }
    
    .other-contacts-mobile a {
        color: var(--text-primary);
        font-size: 20px;
        text-decoration: none;
    }

    .contact-info {
        display: none;
    }

    .work-popup {
        --work-popup-offset-top: 68px;
        --work-popup-offset-bottom: 8px;
        width: calc(100vw - 0.5rem);
        max-width: none;
        border-radius: 8px;
        padding: 1rem 0.85rem 1.15rem;
    }

    .work-popup__intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
        margin-bottom: 0.75rem;
    }

    .work-popup .go-back {
        margin: 0;
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 6px;
        background-color: var(--go-back-mobile-bg);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    }

    .work-popup .go-back .material-icons-outlined {
        font-size: 1rem;
    }

    h3.work-title {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .work-popup .work-preview-viewport {
        max-height: min(42vh, 380px);
    }
}

@media (max-width: 576px) {
    :root {
        --layout-width: 94%;
        --layout-max-width: 100%;
    }

    #testimonials-sec {
        width: 100%;
        max-width: 100%;
    }

    #testimonials-sec .testimonials-header,
    #testimonials-sec .testimonials-footer,
    #testimonials-sec .testimonials-empty {
        width: var(--layout-width, 94%);
    }

    form {
        width: 90vw;
    }

    .double-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    div.m-menu.active-menu {
        width: 100%;
        max-width: 100vw;
    }

    section {
        padding: 0 1px;
        margin-top: 74px;
    }

    ul.technologies-list {
        width: 100%;
    }

    span.intro-text {
        font-size: 17px;
    }

    h1 {
        font-size: 35px;
    }

    h2 {
        font-size: 25px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
        line-height: 20px;
    }

    span#typewriter, 
    .typewriter-starting-text {
        font-size: 27px;
        line-height: 32px;
    }

    span.intro-description {
        font-size: 17px;
        line-height: 30px;
    }

    .technologies-list li {
        font-size: 14px;
        line-height: 24px;
    }

    ul.job-points {
        padding-left: 0px;
    }

    .experience-wrapper {
        margin-top: 15px;
    }

    a.explore {
        padding: 5px 0px;
    }

    a.lets-talk {
        padding: 5px 0px;
    }

    input.btn-submit {
        margin-top: 30px;
        width: 175px;
        padding: 5px 0px;
    }

    .input-row #content {
        height: 50px;
    }

    .input-row input, 
    .input-row #content {
        height: 25px;
        font-size: 13px;
        padding: 0px 0px 0px 10px;
    }

    .technologies-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        padding-top: 20px;
    }

    img.technology-img {
        width: 44px;
        height: 44px;
    }

    .technology {
        padding: 6px;
    }

    .work-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.65rem;
        margin-top: 1.25rem;
    }

    div.eachwork {
        min-height: 4.75rem;
        padding: 1rem 0.75rem;
        border-radius: 10px;
    }

    p.work-name {
        font-size: 0.8rem;
    }

    .contact-info {
        display: none;
    }
    .company.active-cn {
        min-width: 135px;
    }
}

@media (max-width: 400px) {
    .technologies-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    }
}

/* ——— Testimonials (LinkedIn-style recommendations) ——— */
#testimonials-sec {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 24px;
}

#testimonials-sec .testimonials-header,
#testimonials-sec .testimonials-footer {
    width: var(--layout-width, 90%);
    max-width: var(--layout-max-width, 1400px);
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
}

#testimonials-sec .testimonials-header {
    padding-top: 12px;
}

#testimonials-sec .testimonials-header h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

#testimonials-sec .testimonials-marquee {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 4px 0 28px;
    flex-shrink: 0;
}

#testimonials-sec .marquee-row {
    --marquee-row-h: 300px;
    overflow: hidden;
    height: var(--marquee-row-h);
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}

#testimonials-sec .marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#testimonials-sec .marquee-row--ltr .marquee-track {
    animation: marquee-ltr 95s linear infinite;
}

#testimonials-sec .marquee-row--rtl .marquee-track {
    animation: marquee-rtl 105s linear infinite;
}

#testimonials-sec .testimonials-footer {
    padding-top: 8px;
}

.testimonials-footer__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}

#testimonials-sec .testimonials-footer .explore-btn {
    margin-top: 0;
}

a.testimonials-rec-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border-radius: 5px;
    background: #0a66c2;
    color: #fff;
    font-family: 'Quicksand-medium', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid #0a66c2;
    transition: background 0.2s ease, border-color 0.2s ease;
}

a.testimonials-rec-btn:hover {
    background: #004182;
    border-color: #004182;
    color: #fff;
}

a.testimonials-rec-btn .portfolio-icon {
    font-size: 1.15rem;
}

.testimonials-rec-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-family: 'Quicksand-regular', sans-serif;
}

#testimonials-sec .testimonials-marquee.is-reading .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-ltr {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

#testimonials-sec .marquee-track__group {
    display: flex;
    flex-shrink: 0;
    gap: 16px;
    padding-right: 16px;
}

#testimonials-sec .li-rec-card {
    flex-shrink: 0;
    width: 360px;
    height: calc(var(--marquee-row-h, 248px) - 12px);
    max-height: calc(var(--marquee-row-h, 248px) - 12px);
    min-height: calc(var(--marquee-row-h, 248px) - 12px);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--li-rec-border);
    background: var(--li-rec-bg);
    box-shadow: 0 0 0 1px var(--li-rec-border), 0 4px 12px var(--li-rec-shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

#testimonials-sec .li-rec-card.is-expanded {
    z-index: 3;
    position: relative;
    box-shadow: 0 0 0 1px var(--li-rec-border), 0 8px 24px var(--li-rec-shadow);
}

#testimonials-sec .li-rec-card__header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

#testimonials-sec .li-rec-card__avatar-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--li-rec-avatar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

#testimonials-sec .li-rec-card__avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: block;
}

#testimonials-sec .li-rec-card__avatar--initials {
    font-size: 18px;
    font-weight: 600;
    color: var(--li-rec-avatar-text);
    line-height: 48px;
    text-align: center;
    width: 48px;
}

#testimonials-sec .li-rec-card__meta {
    min-width: 0;
    flex: 1;
}

#testimonials-sec .li-rec-card__name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--li-rec-text);
    margin: 0 0 2px;
}

#testimonials-sec .li-rec-card__headline {
    font-size: 14px;
    line-height: 1.35;
    color: var(--li-rec-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#testimonials-sec .li-rec-card__relationship {
    font-size: 12px;
    line-height: 1.35;
    color: var(--li-rec-muted);
    margin: 4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#testimonials-sec .li-rec-card.is-expanded .li-rec-card__relationship {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

#testimonials-sec .li-rec-card__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#testimonials-sec .li-rec-card:not(.is-expanded) .li-rec-card__body {
    flex: 1 1 0;
}

#testimonials-sec .li-rec-card.is-expanded .li-rec-card__body {
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--li-rec-see-more) rgba(255, 255, 255, 0.18);
    padding-right: 4px;
}

html[data-theme="light"] #testimonials-sec .li-rec-card.is-expanded .li-rec-card__body {
    scrollbar-color: var(--li-rec-see-more) rgba(0, 0, 0, 0.12);
}

#testimonials-sec .li-rec-card.is-expanded .li-rec-card__body::-webkit-scrollbar {
    width: 8px;
}

#testimonials-sec .li-rec-card.is-expanded .li-rec-card__body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 4px;
}

html[data-theme="light"] #testimonials-sec .li-rec-card.is-expanded .li-rec-card__body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
}

#testimonials-sec .li-rec-card.is-expanded .li-rec-card__body::-webkit-scrollbar-thumb {
    background: var(--li-rec-see-more);
    border-radius: 4px;
    min-height: 36px;
}

#testimonials-sec .li-rec-card.is-expanded .li-rec-card__body:focus {
    outline: none;
}

#testimonials-sec .li-rec-card.is-expanded .li-rec-card__body:focus-visible {
    outline: 2px solid var(--li-rec-see-more);
    outline-offset: -2px;
}

#testimonials-sec .li-rec-card__text {
    font-size: 14px;
    line-height: 1.4;
    color: var(--li-rec-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
}

#testimonials-sec .li-rec-card.is-expanded .li-rec-card__text {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
    flex-shrink: 0;
}

#testimonials-sec .li-rec-card__see-more {
    display: none;
    margin: 6px 0 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--li-rec-see-more);
    cursor: pointer;
    font-family: inherit;
}

#testimonials-sec .li-rec-card__see-more.is-visible {
    display: inline-block;
}

#testimonials-sec .li-rec-card.is-expanded .li-rec-card__see-more {
    display: inline-block;
    flex-shrink: 0;
}

#testimonials-sec .li-rec-card__footer {
    margin-top: 10px;
    padding-top: 8px;
    flex-shrink: 0;
}

#testimonials-sec .li-rec-card__date {
    font-size: 12px;
    color: var(--li-rec-muted);
    margin: 0;
}

#testimonials-sec .testimonials-empty {
    font-family: 'Quicksand-regular', sans-serif;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 24px;
    width: var(--layout-width, 90%);
    max-width: var(--layout-max-width, 1400px);
    margin-left: auto;
    margin-right: auto;
}

#testimonials-sec .testimonials-empty--hidden {
    display: none;
}

@media (max-width: 991px) {
    #testimonials-sec .li-rec-card {
        width: 300px;
    }

    #testimonials-sec .marquee-row {
        --marquee-row-h: 310px;
    }
}

@media (max-width: 767px) {
    #testimonials-sec {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #testimonials-sec .testimonials-marquee.testimonials-marquee--stacked {
        gap: 0;
        padding-bottom: 16px;
    }

    #testimonials-sec .testimonials-marquee--stacked .marquee-row {
        --marquee-row-h: auto;
        height: auto;
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }

    #testimonials-sec .testimonials-marquee--stacked .marquee-track {
        animation: none !important;
        width: 100%;
        flex-direction: column;
        gap: 14px;
    }

    #testimonials-sec .testimonials-marquee--stacked .marquee-track__group {
        flex-direction: column;
        gap: 14px;
        padding-right: 0;
        width: 100%;
    }

    #testimonials-sec .testimonials-marquee--stacked .li-rec-card {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        display: flex;
        flex-direction: column;
    }

    #testimonials-sec .testimonials-marquee--stacked .li-rec-card__header,
    #testimonials-sec .testimonials-marquee--stacked .li-rec-card__footer {
        flex-shrink: 0;
    }

    #testimonials-sec .testimonials-marquee--stacked .li-rec-card__body {
        flex: none;
        min-height: auto;
        overflow: visible;
    }

    #testimonials-sec .testimonials-marquee--stacked .li-rec-card:not(.is-expanded) .li-rec-card__body {
        flex: none;
    }

    #testimonials-sec .testimonials-marquee--stacked .li-rec-card__text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
        overflow: hidden;
        flex: none;
        min-height: auto;
    }

    #testimonials-sec .testimonials-marquee--stacked .li-rec-card.is-expanded {
        max-height: min(70vh, 520px);
    }

    #testimonials-sec .testimonials-marquee--stacked .li-rec-card.is-expanded .li-rec-card__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: scroll;
    }

    #testimonials-sec .testimonials-marquee--stacked .marquee-row--ltr .marquee-track,
    #testimonials-sec .testimonials-marquee--stacked .marquee-row--rtl .marquee-track {
        animation: none !important;
    }
}

@media (max-width: 575px) {
    #testimonials-sec .testimonials-marquee:not(.testimonials-marquee--stacked) .li-rec-card {
        width: 280px;
    }

    #testimonials-sec .testimonials-marquee:not(.testimonials-marquee--stacked) .marquee-row {
        --marquee-row-h: 320px;
        mask-image: none;
        -webkit-mask-image: none;
    }

    #testimonials-sec .testimonials-header,
    #testimonials-sec .testimonials-footer,
    #testimonials-sec .testimonials-empty {
        width: 90%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #testimonials-sec .marquee-row {
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        mask-image: none;
        -webkit-mask-image: none;
    }

    #testimonials-sec .marquee-track {
        animation: none !important;
        flex-wrap: nowrap;
        overflow-x: visible;
    }

    #testimonials-sec .testimonials-marquee {
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }
}

/* ——— Portfolio section transitions ——— */
section.section-leaving {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

section.section-entering {
    animation: portfolioSectionIn 0.28s ease forwards;
}

@keyframes portfolioSectionIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    section.section-leaving,
    section.section-entering {
        animation: none;
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* ——— Hero stats ——— */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    margin-top: 1.75rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-stat__value {
    font-family: 'Quicksand-Bold', sans-serif;
    font-size: 2rem;
    color: var(--accent, #62e3ff);
    line-height: 1.1;
}

.hero-stat__label {
    font-size: 0.82rem;
    font-family: 'Quicksand-medium', sans-serif;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

/* ——— Command palette ——— */
.command-palette {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 1rem 1rem;
}

.command-palette--hidden {
    display: none;
}

.command-palette__backdrop {
    position: absolute;
    inset: 0;
    background: var(--overlay-backdrop-strong);
    backdrop-filter: blur(4px);
}

.command-palette__panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-elevated);
    overflow: hidden;
}

.command-palette__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-soft);
}

.command-palette__input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.command-palette__close {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.25rem;
}

.command-palette__list {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.35rem;
}

.command-palette__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
}

.command-palette__item:hover,
.command-palette__item--active {
    background: var(--accent-muted);
}

.command-palette__item--hidden {
    display: none;
}

.command-palette__hint,
.footer-kbd-hint {
    font-size: 0.75rem;
    color: var(--text-faint);
    padding: 0.5rem 1rem 0.75rem;
}

.footer-kbd-hint {
    display: block;
    margin-top: 0.15rem;
    padding: 0;
    text-align: center;
    line-height: 1.35;
}

.footer-kbd-hint kbd,
.command-palette__hint kbd {
    font-family: inherit;
    font-size: 0.7rem;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    margin: 0 0.1em;
}

body.command-palette-open {
    overflow: hidden;
}

/* ——— Work case study drawer ——— */
.work-case-header {
    margin-bottom: 1rem;
}

.work-role {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0.75rem;
}

.work-metrics,
.work-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.work-metric-chip,
.work-stack-chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--surface-chip);
    color: var(--text-primary);
}

.work-stack-chip {
    background: var(--surface-chip-alt);
}

.work-case-highlights ul.work-highlights {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.work-case-highlights li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

/* ——— Experience + contact section layout ——— */
#experience-sec .row,
#contact-sec .row,
#technologies-sec .row {
    width: 100%;
}

.experience-layout {
    display: grid;
    grid-template-columns: minmax(150px, 1.15fr) minmax(0, 5fr);
    gap: 0 1.25rem;
    margin-top: 25px;
    width: 100%;
    align-items: stretch;
}

.experience-layout .experience-wrapper {
    margin-top: 0;
    min-width: 0;
    min-height: 100%;
    align-self: stretch;
}

/* ——— Experience timeline ——— */
.experience-timeline {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 100%;
}

.experience-timeline__track {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 0;
    position: relative;
    padding-left: 1.25rem;
    border-left: 2px solid var(--timeline-track);
    min-height: 100%;
    box-sizing: border-box;
}

.experience-timeline__node {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.15rem 0.75rem;
    align-items: start;
    text-align: left;
    padding: 0.65rem 0 0.65rem 0.5rem;
    margin-left: -1.35rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.experience-timeline__node.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.experience-timeline__node.is-active .experience-timeline__dot {
    background: var(--accent, #62e3ff);
    box-shadow: 0 0 0 4px var(--accent-muted);
}

.experience-timeline__dot {
    grid-row: 1 / span 2;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--timeline-dot-idle);
    margin-top: 0.35rem;
}

.experience-timeline__company {
    font-family: 'Quicksand-SemiBold', sans-serif;
    font-size: 1rem;
}

.experience-timeline__period {
    grid-column: 2;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .experience-layout .experience-timeline {
        display: flex;
        grid-column: 1;
        border-right: 2px solid var(--company-border);
        padding-right: 1.25rem;
        margin-right: 0;
    }

    .experience-layout .experience-wrapper {
        grid-column: 2;
        display: block;
        grid-template-columns: none;
    }

    .experience-layout .company-wrapper {
        display: none;
    }

    .experience-layout .company-text-wrapper {
        width: 100%;
        padding-left: 20px;
        border-left: none;
        min-height: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 991px) {
    .footer-kbd-hint {
        display: none;
    }

    section {
        height: auto;
        min-height: calc(100vh - var(--nav-height, 96px) - var(--footer-height, 68px));
        overflow-x: hidden;
        overflow-y: auto;
        align-items: flex-start;
        padding-top: 0.75rem;
        padding-bottom: 1.25rem;
        -webkit-overflow-scrolling: touch;
    }

    #banner-sec {
        align-items: center;
    }

    #experience-sec .row,
    #work-sec .row,
    #technologies-sec .row,
    #contact-sec .row {
        overflow: visible;
        min-width: 0;
        width: 100%;
    }

    #experience-sec {
        overflow-x: visible;
    }

    .experience-layout {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        width: 100%;
        min-width: 0;
        overflow: visible;
    }

    .experience-layout .experience-timeline {
        display: block;
        position: relative;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: auto;
        align-self: auto;
        overflow: visible;
        border-right: none;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .experience-layout .experience-timeline::after {
        display: none;
    }

    .experience-layout .company-wrapper {
        display: none;
    }

    .experience-layout .experience-wrapper {
        display: block;
        grid-template-columns: none;
        min-width: 0;
    }

    .experience-timeline__track {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        flex: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        border-left: none;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
        gap: 0.5rem;
        min-height: auto;
        justify-content: flex-start;
    }

    .experience-timeline__node {
        flex: 0 1 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        padding: 0.5rem 0.85rem;
        border: 1px solid var(--surface-card-border);
        border-radius: 999px;
        background: var(--surface-card);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        grid-template-columns: unset;
        grid-template-rows: unset;
        gap: 0.08rem;
        opacity: 1;
        transform: none;
    }

    .experience-timeline__node.is-active {
        background: var(--accent-muted);
        border-color: var(--accent);
    }

    .experience-timeline__dot {
        display: none;
    }

    .experience-timeline__company {
        font-size: 0.84rem;
        white-space: normal;
        line-height: 1.2;
    }

    .experience-timeline__period {
        grid-column: auto;
        font-size: 0.66rem;
        white-space: normal;
        line-height: 1.2;
    }

    .experience-layout .company-text-wrapper {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 991px) and (max-height: 740px) {
    :root {
        --nav-height: 72px;
        --footer-height: 60px;
    }

    h1 {
        font-size: clamp(28px, 8vw, 40px);
        padding: 0.35rem 0;
    }

    h2 {
        font-size: clamp(22px, 6vw, 30px);
    }

    span#typewriter,
    .typewriter-starting-text {
        font-size: clamp(22px, 6.5vw, 32px);
        line-height: 1.15;
        margin-top: 0.75rem;
    }

    span.intro-description {
        font-size: clamp(15px, 4vw, 18px);
        line-height: 1.45;
        margin-top: 0.5rem;
    }

    span.intro-text {
        font-size: clamp(14px, 3.5vw, 17px);
    }

    #banner-sec .hero-stats {
        margin-top: 0.65rem;
        gap: 0.65rem 1.25rem;
    }

    #banner-sec .hero-stat__value {
        font-size: 1.35rem;
    }

    #banner-sec .explore-btn {
        margin-top: 0.85rem;
    }

    #banner-sec {
        align-items: flex-start;
    }

    .activity-strip {
        margin-top: 0.5rem;
    }

    li.job-details {
        font-size: 13px;
        line-height: 1.55;
    }

    span.position {
        font-size: 16px;
    }
}

/* ——— Tech filters ——— */
.tech-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tech-filter-chip {
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.tech-filter-chip.is-active,
.tech-filter-chip:hover {
    background: var(--accent-muted);
    border-color: var(--accent);
}

.technology--hidden {
    display: none !important;
}

.technologies-wrapper .technology {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ——— Contact email row (matches other contact links) ——— */
.contact-email-row {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    max-width: 100%;
    gap: 0.35rem;
    margin: 0;
    align-self: flex-start;
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    font-size: 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Quicksand-regular';
}

.contact-email-link i {
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
}

.contact-email-link:hover,
.contact-email-link:focus {
    text-decoration: none;
    color: var(--accent);
}

.contact-email-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    flex: 0 0 auto;
}

.contact-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
}

.contact-icon-btn .material-icons-outlined {
    font-size: 1.25rem;
}

.contact-icon-btn:hover,
.contact-icon-btn:focus {
    color: var(--accent);
    background: var(--accent-muted);
    outline: none;
}

.copy-email-btn.is-copied {
    color: var(--accent);
}

.li-rec-card__profile-link {
    font-size: 0.8rem;
    color: var(--accent, #62e3ff);
    text-decoration: none;
    margin-top: 0.25rem;
}

.li-rec-card__profile-link:hover {
    text-decoration: underline;
}

/* ——— Active nav + section heading reveal ——— */
.menu-item a[data-nav-section].is-active,
.m-menu-item a[data-nav-section].is-active {
    color: var(--accent);
    font-family: 'Quicksand-medium';
}

.menu-item a[data-nav-section].is-active .material-icons-outlined {
    color: var(--accent);
}

section .row > h2:not(.section-heading--revealed),
section .row > .about-heading:not(.section-heading--revealed),
section .wrk-title:not(.section-heading--revealed),
#testimonials-sec .testimonials-header h2:not(.section-heading--revealed) {
    opacity: 0;
    transform: translateY(14px);
}

.section-heading--revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
    section .row > h2,
    section .row > .about-heading,
    section .wrk-title,
    #testimonials-sec .testimonials-header h2 {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ——— Hero atmosphere ——— */
#main-content {
    position: relative;
    z-index: 1;
    background: transparent;
}

.hero-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--footer-height, 68px);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    background: var(--page-bg);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

#banner-sec {
    overflow: hidden;
    height: calc(100vh - var(--nav-height, 96px) - var(--footer-height, 68px));
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
}

#banner-sec .banner-row {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

#banner-sec .activity-strip {
    width: 100%;
    max-width: 100%;
}

.typewriter-wrapper {
    display: block;
    max-width: 100%;
    overflow: visible;
}

.hero-atmosphere .hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.12);
    color: var(--text-primary);
    font-family: 'Quicksand-medium', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.hero-badge:hover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.18);
}

.hero-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28);
    animation: heroBadgePulse 2s ease-in-out infinite;
}

@keyframes heroBadgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-badge__dot {
        animation: none;
    }
}

/* ——— Technology tooltips + hover ——— */
.technology {
    position: relative;
}

.technology:not(.technology--visible):not(.technology--hidden) {
    opacity: 0;
    transform: scale(0.92);
}

.technology--visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.technology:hover .technology-img,
.technology:focus-within .technology-img {
    transform: scale(1.08);
    filter: drop-shadow(2px 6px 12px var(--accent)) opacity(0.95);
}

.technology-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: 'Quicksand-regular', sans-serif;
    font-size: 0.7rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 5;
}

.technology:hover .technology-tooltip,
.technology:focus-within .technology-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.technology-img {
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* ——— Work filters + tile hover ——— */
.work-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
}

.work-filter-chip {
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
}

.work-filter-chip.is-active,
.work-filter-chip:hover {
    background: var(--accent-muted);
    border-color: var(--accent);
}

.eachwork--hidden {
    display: none !important;
}

.eachwork {
    flex-direction: column;
    gap: 0.35rem;
}

.eachwork::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.eachwork::after {
    content: '→';
    position: absolute;
    right: 0.85rem;
    bottom: 0.9rem;
    font-size: 0.95rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.eachwork:hover,
.eachwork:focus-visible {
    transform: translateY(-6px);
    border-color: var(--surface-card-hover-border);
    background: var(--surface-card-hover-bg);
    box-shadow: var(--surface-card-shadow);
}

.eachwork:hover::before,
.eachwork:focus-visible::before,
.eachwork:hover::after,
.eachwork:focus-visible::after {
    opacity: 1;
}

.eachwork:hover::after,
.eachwork:focus-visible::after {
    transform: translateX(0);
}

p.work-role-label {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Quicksand-regular', sans-serif;
    margin: 0;
    line-height: 1.3;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease, margin 0.25s ease;
}

.eachwork:hover .work-role-label,
.eachwork:focus .work-role-label {
    max-height: 2.5em;
    opacity: 1;
    margin-top: 0.25rem;
}

/* ——— Work drawer polish ——— */
.work-popup-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--overlay-backdrop);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

body.work-popup-open .work-popup-backdrop {
    display: block;
}

body.work-popup-open .book-call-chip {
    visibility: hidden;
    pointer-events: none;
}

.work-case-thumbnail-wrap {
    max-width: 960px;
    margin: 0 auto 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--iframe-border);
}

.work-case-thumbnail-wrap--hidden {
    display: none;
}

img.work-case-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    max-height: 200px;
    object-fit: cover;
}

/* ——— 404 page ——— */
body.page-404 section.page-404-sec {
    align-items: center;
}

/* ——— Noscript SEO fallback (visible only when JS is off) ——— */
.noscript-seo {
    max-width: 42rem;
    margin: 2rem auto;
    padding: 1.25rem 1.5rem;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary, #e8e8ed);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.noscript-seo h1 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
}

.noscript-seo nav ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.noscript-seo a {
    color: var(--accent, #7c9cff);
}

/* ——— Section progress + rail ——— */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 101;
    background: var(--progress-track);
    pointer-events: none;
}

.scroll-progress__bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px var(--progress-glow);
}

.section-rail {
    position: fixed;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    pointer-events: none;
}

.section-rail__list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-end;
}

.section-rail__item {
    pointer-events: auto;
}

.section-rail__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    padding: 0.15rem 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Quicksand-regular', sans-serif;
    font-size: 0.68rem;
    color: var(--text-primary);
    opacity: var(--section-rail-idle);
    transition: opacity 0.2s ease, color 0.2s ease;
}

.section-rail__btn:hover,
.section-rail__btn.is-active {
    opacity: 1;
    color: var(--accent);
}

.section-rail__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    background: transparent;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.section-rail__btn.is-active .section-rail__dot {
    background: var(--accent);
    transform: scale(1.15);
}

.section-rail__label {
    position: absolute;
    right: calc(100% + 0.45rem);
    top: 50%;
    transform: translateY(-50%);
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: opacity 0.2s ease, max-width 0.2s ease, visibility 0.2s ease;
}

.section-rail__btn:hover .section-rail__label,
.section-rail__btn:focus-visible .section-rail__label {
    max-width: 6rem;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1199px) {
    .section-rail {
        display: none;
    }
}

/* ——— Nav (no glass) ——— */
nav#navigation.nav--glass {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* ——— Checkered mesh grid ——— */
.hero-atmosphere .hero-mesh {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: var(--mesh-opacity);
    background-image:
        linear-gradient(var(--mesh-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--mesh-line) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 95% 85% at 50% 40%, #000 15%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 40%, #000 15%, transparent 72%);
}

.hero-atmosphere .hero-mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, var(--mesh-line-soft) 1px, transparent 1px),
        linear-gradient(45deg, var(--mesh-line-soft) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ——— Activity strip ——— */
.activity-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    width: 100%;
    max-width: 40rem;
    padding: 0.3rem 0;
}

.activity-strip__tag {
    flex-shrink: 0;
    font-family: 'Quicksand-SemiBold', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.28rem 0.55rem;
    border: 1px solid var(--surface-tag-border);
    border-radius: 4px;
    background: var(--surface-tag);
    white-space: nowrap;
}

.activity-strip__track {
    min-width: 0;
    overflow: hidden;
    border-left: 1px solid var(--border-soft);
    padding-left: 0.75rem;
    mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent);
}

.activity-strip__items {
    display: inline-flex;
    gap: 2rem;
    white-space: nowrap;
    font-family: 'Quicksand-regular', sans-serif;
    font-size: 0.86rem;
    color: var(--text-primary);
    opacity: 0.9;
    animation: activityMarquee 32s linear infinite;
}

.activity-strip__items span::before {
    content: '◆';
    color: var(--accent);
    margin-right: 0.5rem;
    font-size: 0.55rem;
    vertical-align: middle;
}

@keyframes activityMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ——— Stagger reveal ——— */
.reveal-stagger:not(.reveal-stagger--visible) {
    opacity: 0;
    transform: translateY(12px);
}

.reveal-stagger--visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* ——— Uses panel ——— */
.uses-panel {
    margin: 0.5rem 0 1.25rem;
    border: 1px solid var(--surface-panel-border);
    border-radius: 10px;
    background: var(--surface-panel);
    overflow: hidden;
}

.uses-panel__summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-family: 'Quicksand-medium', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    list-style: none;
}

.uses-panel__summary::-webkit-details-marker {
    display: none;
}

.uses-panel__summary .material-icons-outlined {
    font-size: 1.15rem;
    color: var(--accent);
}

.uses-panel[open] .uses-panel__summary {
    border-bottom: 1px solid var(--surface-panel-border-soft);
}

.uses-panel__body {
    padding: 0.75rem 1rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem 1.25rem;
}

.uses-panel__group-label {
    font-family: 'Quicksand-SemiBold', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

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

.uses-panel__chip {
    font-family: 'Quicksand-regular', sans-serif;
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-chip);
    color: var(--text-primary);
}

/* ——— Book a call (nav + floating chip) ——— */
#calendar-booking-host,
#calendar-booking-host + button {
    position: fixed !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
}

/* ——— Book a call chip (bottom-right, animated) ——— */
.book-call-chip {
    display: inline-flex !important;
    position: fixed;
    bottom: calc(var(--footer-height, 68px) + 1rem);
    right: 1.25rem;
    z-index: 200;
    pointer-events: auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background: var(--accent, #62e3ff);
    color: var(--resume-text, #173c4e);
    font-family: 'Quicksand-SemiBold', sans-serif;
    font-size: 0.88rem;
    border: 1px solid var(--book-call-border);
    overflow: visible;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    animation: bookCallFloat 2.6s ease-in-out infinite;
    transition: background 0.2s ease, color 0.2s ease;
}

.book-call-chip__icon {
    font-size: 1.1rem;
    line-height: 1;
}

.book-call-chip:hover,
.book-call-chip:focus-visible {
    animation-play-state: paused;
    background: var(--btn-solid-hover-bg, #173c4e);
    color: var(--accent, #62e3ff);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 32px var(--book-call-shadow-hover);
}

.book-call-chip__pulse {
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid var(--accent);
    animation: bookCallPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes bookCallFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 20px var(--book-call-shadow);
    }
    50% {
        transform: translateY(-7px);
        box-shadow: 0 12px 36px var(--book-call-shadow-hover);
    }
}

@keyframes bookCallPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* ——— Easter egg ——— */
.easter-egg {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.easter-egg--hidden {
    display: none;
}

.easter-egg__backdrop {
    position: absolute;
    inset: 0;
    background: var(--overlay-backdrop-heavy);
    backdrop-filter: blur(6px);
}

.easter-egg__panel {
    position: relative;
    max-width: 22rem;
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--surface-tag-border);
    background: var(--surface-elevated);
    text-align: center;
    box-shadow: var(--shadow-elevated);
}

.easter-egg__panel h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.easter-egg__panel p {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

.easter-egg__emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.easter-egg__hint a {
    color: var(--accent);
}

.easter-egg__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.25rem;
}

@media (min-width: 992px) {
    html {
        overflow: hidden;
        height: 100%;
    }

    body {
        overflow: hidden;
        min-height: 100vh;
        max-height: 100vh;
    }

    section {
        overflow: hidden;
    }

    footer#footer {
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .activity-strip__items,
    .book-call-chip,
    .book-call-chip__pulse {
        animation: none;
    }

    .reveal-stagger:not(.reveal-stagger--visible) {
        opacity: 1;
        transform: none;
    }
}

/* Hide book-call chip on tablet/mobile (must follow base .book-call-chip rule) */
@media (max-width: 991px) {
    button.book-call-chip,
    #book-call-chip {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        animation: none !important;
    }
}