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

:root {
    color-scheme: light dark;
    --bg: #f6f3ee;
    --surface: #ffffff;
    --text: #1b1b1b;
    --muted: #616161;
    --accent: #1b1b1b;
    --signal: #1b6bff;
    --border: #dcd6cd;
    --shadow: 0 22px 60px rgba(27, 27, 27, 0.12);
    --soft-shadow: 0 10px 30px rgba(27, 27, 27, 0.08);
    --scrollbar-thumb: #1b1b1b;
    --scrollbar-track: rgba(27, 27, 27, 0.12);
}

html {
    scroll-behavior: smooth;
}

[data-theme="dark"] {
    --bg: #121212;
    --surface: #181818;
    --text: #f2f2f2;
    --muted: #b2b2b2;
    --accent: #ffffff;
    --signal: #7aa2ff;
    --border: #2a2a2a;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    --soft-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    --scrollbar-thumb: #f2f2f2;
    --scrollbar-track: rgba(242, 242, 242, 0.2);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

body {
    margin: 0;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    padding: 0;
    box-shadow: var(--soft-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
}

.back-to-top-icon {
    display: inline-flex;
    line-height: 1;
}

.back-to-top-icon svg {
    width: 18px;
    height: 18px;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 720px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }
}

body.theme-transition,
body.theme-transition * {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease,
        box-shadow 0.35s ease;
}

body.theme-transition .back-to-top {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease,
        box-shadow 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

.site-header {
    padding: 20px clamp(20px, 5vw, 72px) 0;
    width: 100%;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 860px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .nav-shell {
    background: rgba(24, 24, 24, 0.7);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1;
}
    
.nav-links {
    display: flex;
    gap: 24px;
    margin: 0;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    background: var(--surface);
}

.menu-line {
    width: 18px;
    height: 2px;
    background: var(--text);
    margin: 0 auto;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    border: none;
    display: none;
}

.menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: static;
    display: grid;
    gap: 14px;
    padding: 0 20px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    margin: 0 auto;
    width: min(1100px, 100%);
    transition: max-height 0.45s ease, opacity 0.25s ease, transform 0.45s ease,
        padding 0.35s ease, margin 0.35s ease;
    will-change: max-height, transform, opacity;
    display: none;
}

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

.mobile-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-height: 320px;
    padding: 18px 20px;
    margin: 6px auto 0;
}

[data-theme="dark"] .mobile-menu {
    background: rgba(24, 24, 24, 0.7);
}

button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.ghost {
    background: transparent;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    line-height: 1;
}

.theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.35s ease;
}

.theme-text {
    display: inline-block;
    min-width: 3.35rem;
    line-height: 1;
}

.theme-toggle.is-animating .theme-icon {
    transform: rotate(180deg);
}

main {
    padding: 36px clamp(20px, 5vw, 72px) 80px;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    justify-items: center;
    text-align: center;
    color: var(--text);
}

.hero-classic {
    overflow: hidden;
}

.hero-center {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 8px 24px 92px;
}

.hero-title {
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: clamp(2.2rem, 4.6vw, 3.7rem);
    margin: 8px 0 16px;
    letter-spacing: -0.01em;
}

.accent {
    color: var(--text);
}

.hero-label {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 14px;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-actions button {
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
        background-color 0.2s ease, color 0.2s ease;
}

.hero-actions button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.scroll-indicator {
    margin-top: 36px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    color: var(--muted);
}

.scroll-text {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mouse {
    width: 22px;
    height: 34px;
    border: 2px solid var(--text);
    border-radius: 999px;
    display: grid;
    align-items: start;
    justify-items: center;
    padding-top: 6px;
}

.mouse-dot {
    width: 4px;
    height: 8px;
    background: var(--text);
    border-radius: 999px;
    animation: scroll-dot 1.6s ease-in-out infinite;
}

.about {
    padding: 70px clamp(20px, 5vw, 72px);
}

.about-inner {
    width: min(860px, 100%);
    margin: 0 auto;
}

.about-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.74rem;
    color: var(--muted);
}

.about-title {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.about-text {
    color: var(--muted);
    margin: 0 0 16px;
    font-size: 1rem;
    line-height: 1.7;
}

.about-more {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-bottom: 0;
    transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease, margin-bottom 0.32s ease;
}

.about-more-inner {
    overflow: hidden;
}

.about-more .about-text:last-child {
    margin-bottom: 6px;
}

.about-more.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-bottom: 8px;
}

.about-toggle {
    padding: 10px 20px;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    border-color: var(--border);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease,
        transform 0.24s ease;
}

.about-toggle:hover {
    box-shadow: none;
}

.about-toggle-label {
    line-height: 1;
}

.about-toggle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.about-toggle-arrow svg {
    width: 1em;
    height: 1em;
    display: block;
}

.about-toggle[aria-expanded="true"] {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.about-toggle[aria-expanded="true"] .about-toggle-arrow {
    transform: rotate(180deg);
}

.services {
    padding: 70px clamp(20px, 5vw, 72px);
}

.services-inner {
    width: min(860px, 100%);
    margin: 0 auto;
}

.services-header {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.services-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.74rem;
    color: var(--muted);
}

.services-title {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    letter-spacing: -0.02em;
}

.services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
    counter-reset: service;
}

.service-item {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(0, 2fr);
    gap: 16px 24px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    counter-increment: service;
}

.service-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform 0.24s ease;
}

.service-name::before {
    content: counter(service, decimal-leading-zero) ". ";
    color: var(--muted);
    margin-right: 0.3em;
}

.service-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    max-width: 56ch;
}

.service-item:hover .service-name,
.service-item:focus-within .service-name {
    transform: translateX(3px);
}

.projects {
    padding: 70px clamp(20px, 5vw, 72px);
}

.projects-inner {
    width: min(860px, 100%);
    margin: 0 auto;
}

.projects-header {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.projects-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.74rem;
    color: var(--muted);
}

.projects-title {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    letter-spacing: -0.02em;
}

.projects-layout {
    display: block;
}

.projects-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
    counter-reset: project;
}

.project-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    counter-increment: project;
}

.project-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.project-name {
    margin: 0;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    position: relative;
    transition: transform 0.24s ease;
}

.project-name::before {
    content: counter(project, decimal-leading-zero) ". ";
    color: var(--muted);
    margin-right: 0.3em;
}

.project-stack {
    margin: 0;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-self: end;
    gap: 8px;
}

.project-info {
    position: relative;
    display: inline-flex;
}

.project-info-trigger {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
}

.project-info-trigger:hover {
    color: var(--text);
    border-color: var(--text);
    box-shadow: none;
}

.project-info-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.project-info-trigger:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
}

.project-info-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(260px, calc(100vw - 36px));
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.55;
    box-shadow: var(--soft-shadow);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: 3;
    text-align: left;
}

.project-info:hover .project-info-tooltip,
.project-info:focus-within .project-info-tooltip,
.project-info.is-open .project-info-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.project-info.is-open .project-info-trigger {
    color: var(--text);
    border-color: var(--text);
}

.project-repo {
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    transition: color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.project-repo:hover {
    color: var(--text);
    border-color: var(--text);
    transform: translateY(-1px);
    box-shadow: none;
}

.project-repo svg {
    width: 14px;
    height: 14px;
    display: block;
}

.project-repo:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
}

.project-item:hover .project-name,
.project-item:focus-within .project-name {
    transform: translateX(3px);
}

.testimonials {
    padding: 70px clamp(20px, 5vw, 72px);
}

.testimonials-inner {
    width: min(860px, 100%);
    margin: 0 auto;
}

.testimonials-header {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.testimonials-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.74rem;
    color: var(--muted);
}

.testimonials-title {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    letter-spacing: -0.02em;
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 12px;
    align-items: stretch;
}

.testimonials-control {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    box-shadow: var(--soft-shadow);
    padding: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.testimonials-control:hover {
    color: var(--text);
    border-color: var(--text);
    transform: translateY(-1px);
}

.testimonials-control:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
}

.testimonials-control svg {
    width: 18px;
    height: 18px;
    display: block;
}

.testimonials-viewport {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonials-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-slide {
    min-width: 100%;
    padding: 20px 2px 18px;
}

.testimonial-quote {
    margin: 0;
    line-height: 1.7;
    max-width: 64ch;
}

.testimonial-author {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.testimonials-dots {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.testimonials-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: 0;
    background: var(--border);
    padding: 0;
    opacity: 0.7;
    box-shadow: none;
}

.testimonials-dot.is-active {
    background: var(--text);
    opacity: 1;
}

.testimonials-dot:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
}

.contact {
    padding: 70px clamp(20px, 5vw, 72px) 120px;
}

.contact-inner {
    width: min(860px, 100%);
    margin: 0 auto;
}

.contact-header {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.contact-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.74rem;
    color: var(--muted);
}

.contact-title {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    letter-spacing: -0.02em;
}

.contact-intro {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 66ch;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}

.contact-item {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.8fr);
    gap: 12px 20px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.contact-key {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.contact-value {
    margin: 0;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.24s ease, transform 0.24s ease;
    justify-self: start;
}

.contact-item:hover .contact-value,
.contact-item:focus-within .contact-value {
    color: var(--text);
    transform: translateX(3px);
}

.contact-value-static {
    color: var(--muted);
}

.contact-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer {
    padding: 20px clamp(20px, 5vw, 72px) 92px;
}

.footer-inner {
    width: min(860px, 100%);
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 22px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-tagline {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--text);
    transform: translateX(2px);
}

.footer-links a:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
}

.footer-meta {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

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

@media (min-width: 981px) {
    html {
        scroll-snap-type: y proximity;
        scroll-padding-top: 24px;
    }

    .about,
    .services,
    .projects,
    .testimonials,
    .contact {
        scroll-snap-align: start;
    }
}

@keyframes scroll-dot {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    70% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

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



.js [data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .nav {
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-shell {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-radius: 24px;
        width: 100%;
        margin: 0;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .menu-backdrop {
        display: block;
    }

    .mobile-menu {
        display: grid;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-center {
        padding: 12px 20px 84px;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3.2rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .scroll-indicator {
        margin-top: 28px;
        gap: 16px;
    }

    .scroll-text {
        font-size: 0.88rem;
        letter-spacing: 0.16em;
    }

    .service-item {
        grid-template-columns: minmax(170px, 0.9fr) minmax(0, 1.8fr);
    }

    .contact-item {
        grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.8fr);
    }

    .testimonials-carousel {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 10px;
    }

    .testimonials-control {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding-top: 14px;
    }

    main {
        padding-top: 24px;
    }

    .nav-actions {
        width: auto;
        flex-wrap: nowrap;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-actions button {
        width: 100%;
    }

    .hero-center {
        padding: 8px 16px 76px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6.5vw, 2.6rem);
    }

    .hero-label {
        letter-spacing: 0.2em;
    }

    .scroll-text {
        font-size: 0.92rem;
        letter-spacing: 0.14em;
    }

    .about {
        padding: 74px 16px;
    }

    .about-inner {
        text-align: center;
    }

    .about-more .about-text {
        margin-inline: auto;
        max-width: 52ch;
    }

    .services {
        padding: 74px 16px;
    }

    .services-header {
        text-align: center;
        margin-bottom: 24px;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px 0;
    }

    .service-name {
        font-size: 1.08rem;
    }

    .projects {
        padding: 74px 16px;
    }

    .projects-header {
        text-align: center;
        margin-bottom: 24px;
    }

    .projects-list {
        gap: 0;
    }

    .project-item {
        grid-template-columns: 1fr;
        padding: 18px 0;
    }

    .project-name {
        font-size: 1.08rem;
    }

    .project-stack {
        font-size: 0.7rem;
        padding: 4px 9px;
    }

    .project-actions {
        justify-self: start;
    }

    .project-info-tooltip {
        left: 0;
        right: auto;
    }

    .testimonials {
        padding: 74px 16px;
    }

    .testimonials-header {
        text-align: center;
        margin-bottom: 24px;
    }

    .testimonials-carousel {
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        gap: 8px;
    }

    .testimonials-control {
        width: 32px;
        height: 32px;
    }

    .testimonials-control svg {
        width: 16px;
        height: 16px;
    }

    .contact {
        padding: 74px 16px 64px;
    }

    .contact-header {
        text-align: center;
        margin-bottom: 24px;
    }

    .contact-intro {
        text-align: center;
        margin: 0 auto 24px;
    }

    .contact-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px 0;
    }

    .contact-key {
        font-size: 0.98rem;
    }

    .contact-note {
        margin-top: 14px;
    }

    .site-footer {
        padding: 0 16px 72px;
    }

    .footer-inner {
        padding-top: 18px;
    }

    .footer-top {
        flex-direction: column;
        gap: 14px;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-meta {
        margin-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {

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

    html {
        scroll-snap-type: none;
        scroll-behavior: auto;
    }
}

