﻿:root {
    --bg: #eef7ff;
    --surface: #ffffff;
    --surface-soft: #dff0ff;
    --ink: #172236;
    --muted: #5f6f86;
    --line: #c8def2;
    --accent: #4c93d8;
    --accent-soft: #d7ecff;
    --nav-bg: rgba(255, 255, 255, 0.84);
    --body-glow: rgba(76, 147, 216, 0.16);
    --body-start: #fbfdff;
    --shadow: 0 18px 55px rgba(31, 75, 119, 0.12);
    --spider-fill: #ffffff;
    --spider-stroke: #4c93d8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 80% 12%, var(--body-glow), transparent 28%),
        linear-gradient(180deg, var(--body-start) 0%, var(--bg) 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.spider-girl {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    width: 64px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(calc(var(--spider-x, -100px) - 50%), calc(var(--spider-y, -100px) - 50%), 0);
    transition: opacity 160ms ease;
    will-change: transform;
}

.spider-girl.is-following {
    opacity: 1;
}

.spider-girl svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.web-line {
    fill: none;
    stroke: var(--line);
    stroke-width: 1.35;
    opacity: 0.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.spider-girl-character {
    transform-origin: 80px 132px;
}

.spider-leg {
    fill: none;
    stroke: var(--spider-fill);
    stroke-width: 5.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.spider-body,
.spider-head {
    fill: var(--spider-fill);
    stroke: none;
}

body[data-theme="baby-pink"] {
    --bg: #fff1f6;
    --surface: #ffffff;
    --surface-soft: #ffe2ed;
    --ink: #321826;
    --muted: #7d6471;
    --line: #f3c8d8;
    --accent: #d95f91;
    --accent-soft: #ffd9e8;
    --nav-bg: rgba(255, 255, 255, 0.84);
    --body-glow: rgba(217, 95, 145, 0.16);
    --body-start: #fffafd;
    --shadow: 0 18px 55px rgba(150, 64, 99, 0.12);
    --spider-fill: #be1d62;
    --spider-stroke: #741038;
}

body[data-theme="black"] {
    --bg: #171217;
    --surface: #241c23;
    --surface-soft: #352631;
    --ink: #fff6fa;
    --muted: #d3bdc8;
    --line: #624453;
    --accent: #f15252;
    --accent-soft: #4b2932;
    --nav-bg: rgba(28, 20, 27, 0.88);
    --body-glow: rgba(241, 82, 82, 0.14);
    --body-start: #0f0c0f;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
    --spider-fill: #df3f45;
    --spider-stroke: #7f151d;
}

body[data-theme="white"] {
    --bg: #f4f4f4;
    --surface: #ffffff;
    --surface-soft: #ececec;
    --ink: #111111;
    --muted: #626262;
    --line: #d2d2d2;
    --accent: #111111;
    --accent-soft: #e5e5e5;
    --nav-bg: rgba(255, 255, 255, 0.88);
    --body-glow: rgba(17, 17, 17, 0.06);
    --body-start: #ffffff;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.1);
    --spider-fill: #191919;
    --spider-stroke: #000000;
}

body[data-theme="baby-blue"] {
    --spider-fill: #173f68;
    --spider-stroke: #5795cc;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.site-nav {
    position: sticky;
    top: 18px;
    z-index: 20;
    width: min(1292px, calc(100% - 32px));
    min-height: 78px;
    margin: 18px auto 0;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    background: var(--nav-bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links a {
    min-width: 96px;
    padding: 12px 18px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    text-align: center;
    transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
    background: var(--surface-soft);
    color: var(--ink);
}

.nav-links a.is-active {
    display: grid;
    place-items: center;
    padding: 8px 18px;
}

.nav-links a.is-active .nav-label {
    display: none;
}

.nav-spider-eyes {
    display: none;
    width: 56px;
    color: var(--ink);
}

.nav-links a.is-active .nav-spider-eyes {
    display: block;
}

.nav-spider-eyes path {
    fill: none;
    stroke: currentColor;
    stroke-width: 10;
    stroke-linejoin: round;
}

.nav-controls {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-field {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.custom-select {
    position: relative;
}

.select-trigger {
    min-width: 72px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.custom-select[data-custom-select="theme"] .select-trigger {
    min-width: 124px;
}

.select-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    display: none;
    min-width: 100%;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.custom-select.is-open .select-menu {
    display: grid;
    gap: 3px;
}

.select-menu button {
    min-height: 34px;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
    white-space: nowrap;
}

.select-menu button:hover,
.select-menu button:focus-visible,
.select-menu button[aria-selected="true"] {
    background: var(--surface-soft);
    outline: none;
}

main {
    width: min(1460px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(400px, 0.9fr);
    align-items: center;
    gap: 80px;
    padding: 48px 0 64px;
}

.hero-copy {
    max-width: 820px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.eyebrow > span:first-child {
    width: 48px;
    height: 2px;
    background: var(--line);
}

.eyebrow.center {
    justify-content: center;
}

.eyebrow.center > span:first-child {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--line);
}

h1 {
    margin-top: 24px;
    font-size: clamp(3rem, 6.2vw, 5.8rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.hero-name > span {
    display: block;
}

.hero-name.is-popping > span {
    animation: name-pop 850ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.hero-name.is-popping > span:nth-child(2) {
    animation-delay: 130ms;
}

.hero-name.is-popping > span:nth-child(3) {
    animation-delay: 260ms;
}

@keyframes name-pop {
    from {
        opacity: 0;
        transform: scale(0.25);
    }
    58% {
        opacity: 1;
        transform: scale(1.16);
    }
    78% {
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.role {
    margin-top: 24px;
    color: var(--ink);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
}

.location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
    font-weight: 700;
}

.location::before {
    content: "⌖";
    color: var(--accent);
    font-size: 1.15rem;
}

.summary,
.about-text,
.project-card p,
.contact-lead {
    color: var(--muted);
    font-size: 1.08rem;
}

.summary {
    max-width: 660px;
    margin-top: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.button {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 34px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 800;
}

.button.primary {
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink);
}

.button.secondary {
    background: var(--surface);
}

.hero-visual {
    position: relative;
    width: min(100%, 484px);
    aspect-ratio: 1;
    justify-self: end;
    align-self: center;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: var(--surface-soft);
    box-shadow: var(--shadow);
}

.hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 28px;
}

.section {
    padding: 92px 0;
}

.achievements {
    padding-block: 56px;
}

.reveal-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible[data-motion="bounce"] {
    animation: section-bounce 760ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--reveal-delay) both;
}

.reveal-on-scroll.is-visible[data-motion="merge"] {
    animation: section-merge 760ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--reveal-delay) both;
}

.reveal-on-scroll.is-visible[data-motion="slide"] {
    animation: section-slide 760ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--reveal-delay) both;
}

.reveal-on-scroll.is-visible[data-motion="roll"] {
    animation: section-roll 760ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--reveal-delay) both;
}

.reveal-on-scroll.is-visible.is-upward {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none !important;
}

@keyframes section-bounce {
    0% { opacity: 0; transform: translateY(50px) scale(0.92); }
    65% { opacity: 1; transform: translateY(-10px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes section-merge {
    from { opacity: 0; transform: scale(0.82); filter: blur(8px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes section-slide {
    from { opacity: 0; transform: translateX(-48px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes section-roll {
    from { opacity: 0; transform: translateX(36px) rotate(5deg) scale(0.92); }
    to { opacity: 1; transform: translateX(0) rotate(0) scale(1); }
}

.section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.section-heading h2,
.contact-section h2 {
    margin-top: 18px;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.06;
    letter-spacing: 0;
}


.about {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    border-top: 1px solid var(--line);
}

.about-text {
    display: grid;
    gap: 18px;
}

.skill-grid,
.project-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.card,
.timeline-card,
.project-card,
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.card {
    padding: 28px;
}

.card h3,
.timeline-card h3,
.project-card h3 {
    font-size: 1.35rem;
    line-height: 1.25;
}

.card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.card li {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-weight: 700;
}

.timeline-card {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 28px;
    padding: 30px;
}

.timeline-card ul {
    display: grid;
    gap: 12px;
    color: var(--muted);
}

.timeline-card li {
    padding-left: 18px;
    position: relative;
}

.timeline-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.label {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

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

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

.organization-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 20px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.organization-card h3 {
    font-size: 1.35rem;
    line-height: 1.25;
}

.organization-card > div:last-child > p:not(.label) {
    margin-top: 16px;
    color: var(--muted);
}

.organization-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--surface-soft);
    color: var(--accent);
    font-size: 2rem;
    font-weight: 900;
}

.documentation {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    font-weight: 700;
}

.project-card {
    min-height: 245px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.project-card p:not(.label) {
    margin-top: 18px;
}

.project-link {
    margin-top: auto;
    padding-top: 24px;
    color: var(--ink);
    font-weight: 800;
}

.achievement-categories {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
}

.achievement-group {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.achievement-group h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.certificate-grid,
.documentation-grid {
    display: flex;
    cursor: grab;
    overflow-x: auto;
    gap: 14px;
    padding: 4px 2px 10px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    user-select: none;
}

.documentation-grid {
    width: min(100%, 850px);
    margin-inline: auto;
    gap: 18px;
    padding: 18px 13% 24px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overflow-y: hidden;
}

.certificate-grid.is-dragging,
.documentation-grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.certificate-grid::-webkit-scrollbar,
.documentation-grid::-webkit-scrollbar {
    display: none;
}

.achievement-item {
    color: var(--ink);
    font-weight: 800;
}

.certificate-card,
.documentation-card {
    flex: 0 0 250px;
    display: grid;
    align-content: start;
    gap: 12px;
    scroll-snap-align: start;
}

.documentation-card {
    flex: 0 0 74%;
    min-width: 0;
    justify-items: center;
    text-align: center;
    scroll-snap-align: center;
    opacity: 0.42;
    filter: blur(4px);
    transform: scale(0.88);
    transition: opacity 280ms ease, filter 280ms ease, transform 280ms ease;
}

.documentation-card.is-spotlight {
    opacity: 1;
    filter: none;
    transform: scale(1);
}

.certificate-card img,
.documentation-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1.55;
    object-fit: cover;
    border-radius: 12px;
}

.documentation-card img {
    height: min(58vh, 460px);
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 0;
}

.publication-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(100%, 720px);
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}

.publication-icon {
    flex: 0 0 54px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 900;
}

.publication-copy {
    display: grid;
    gap: 4px;
}

.publication-copy small {
    color: var(--muted);
    font-weight: 600;
}

.publication-arrow {
    margin-left: auto;
    color: var(--accent);
    font-size: 1.4rem;
}

.contact-section {
    text-align: center;
}

.contact-section h2 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.contact-lead {
    max-width: 740px;
    margin: 20px auto 48px;
}

.contact-grid {
    max-width: 1008px;
    margin: 0 auto;
}

.contact-card {
    min-height: 110px;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    text-align: left;
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--surface-soft);
    font-weight: 900;
}

.contact-card strong,
.contact-card small {
    display: block;
}

.contact-card small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.98rem;
    word-break: break-word;
}

.contact-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 1.25rem;
}

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

.comment-demo-notice {
    max-width: 780px;
    margin: -10px 0 24px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.95rem;
}

.comment-form {
    display: grid;
    gap: 18px;
    max-width: 780px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.comment-field {
    display: grid;
    gap: 8px;
}

.comment-field label {
    font-weight: 800;
}

.comment-field input,
.comment-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
}

.comment-field textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-field input:focus-visible,
.comment-field textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.comment-field input::placeholder,
.comment-field textarea::placeholder {
    color: var(--muted);
    opacity: 0.8;
}

.comment-submit {
    justify-self: start;
    min-height: 50px;
    padding-inline: 24px;
    cursor: pointer;
    font: inherit;
}

.comment-status {
    min-height: 1.5em;
    color: var(--muted);
    font-size: 0.9rem;
}

.comment-list-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    max-width: 780px;
    margin-top: 34px;
}

.comment-list-heading p {
    color: var(--muted);
    font-size: 0.9rem;
}

.comment-list {
    display: grid;
    gap: 12px;
    max-width: 780px;
    margin-top: 14px;
}

.comment-item,
.comment-empty {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.comment-item p {
    margin-top: 6px;
    color: var(--muted);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.comment-empty {
    color: var(--muted);
}

footer {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 44px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 900px) {
    .site-nav {
        grid-template-columns: 1fr auto;
        border-radius: 999px;
        overflow: visible;
    }

    main > section[id] {
        scroll-margin-top: 150px;
    }

    .nav-links {
        grid-column: 1 / -1;
        justify-content: space-between;
        order: 3;
        width: 100%;
    }

    .nav-links a {
        min-width: 0;
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .hero,
    .about,
    .timeline-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        min-height: auto;
        padding-top: 56px;
    }

    .hero-visual {
        justify-self: start;
        width: min(100%, 320px);
    }


    .project-grid,
    .contact-grid,
    .organization-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    main,
    footer {
        width: min(100% - 28px, 1280px);
    }

    main > section[id] {
        scroll-margin-top: 170px;
    }

    .site-nav {
        width: calc(100% - 20px);
        top: 10px;
        margin-top: 10px;
        padding: 12px;
        border-radius: 28px;
    }

    .brand {
        font-size: 1.05rem;
    }

    .hero-copy {
        min-width: 0;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 9px 7px;
        font-size: 0.84rem;
    }

    .nav-controls {
        grid-column: 1 / -1;
        order: 4;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 6px;
    }

    .select-field {
        min-width: 0;
        width: 100%;
        justify-content: space-between;
        gap: 4px;
        padding-inline: 8px;
        font-size: 0.62rem;
    }

    .select-trigger {
        min-width: 64px;
        max-width: 100%;
        gap: 5px;
        padding-inline: 8px;
    }

    .custom-select[data-custom-select="theme"] .select-trigger {
        min-width: 88px;
    }

    h1 {
        font-size: clamp(1.9rem, 9.8vw, 4.2rem);
    }

    .eyebrow {
        gap: 9px;
        font-size: 0.67rem;
        letter-spacing: 0.2em;
    }

    .eyebrow > span:first-child {
        flex: 0 0 28px;
        width: 28px;
    }

    .role,
    .summary,
    .about-text,
    .project-card p,
    .contact-lead {
        font-size: 1rem;
    }

    .section {
        padding: 68px 0;
    }

    .card,
    .timeline-card,
    .organization-card,
    .project-card {
        padding: 22px;
    }

    .organization-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
    }

    .organization-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 1.6rem;
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }

    .certificate-grid {
        gap: 12px;
    }

    .certificate-card,
    .documentation-card {
        flex-basis: min(72vw, 250px);
    }

    .documentation-card {
        flex-basis: 74%;
    }

    .documentation-card img {
        height: min(52vh, 360px);
    }

    .publication-card {
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }

    .button {
        width: 100%;
    }

    .contact-card {
        grid-template-columns: 52px minmax(0, 1fr) 18px;
        gap: 14px;
        padding: 18px;
    }

    .comment-demo-notice {
        margin-top: -6px;
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .comment-form {
        gap: 14px;
        padding: 18px;
    }

    .comment-submit {
        width: 100%;
    }

    .contact-icon {
        width: 52px;
        height: 52px;
    }

    .spider-girl {
        display: none;
    }
}

@media (max-width: 380px) {
    .nav-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .select-field {
        justify-content: space-between;
        gap: 3px;
        padding-inline: 5px;
        font-size: 0.56rem;
        letter-spacing: 0.04em;
    }

    .select-trigger {
        min-width: 55px;
        gap: 4px;
        padding-inline: 6px;
    }

    .custom-select[data-custom-select="theme"] .select-trigger {
        min-width: 76px;
    }

    .hero {
        padding-top: 38px;
    }

    .hero-actions {
        gap: 10px;
    }

    .button {
        min-height: 52px;
        padding-inline: 20px;
    }
}

@media (hover: hover) and (pointer: fine) {
    body,
    a,
    button,
    select {
        cursor: none;
    }
}

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

    .spider-girl {
        display: none;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        animation: none !important;
        filter: none;
    }

    .hero-name.is-popping > span {
        animation: none;
    }
}
