/* ==========================================================================
   ABHISHEK SONWAL PORTFOLIO — Redesigned design system
   Industrial precision · Liquid glass · Asymmetric layout
   ========================================================================== */

:root {
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-hero: 'Fraunces', Georgia, "Times New Roman", serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-color: color 0.35s var(--ease-spring), background-color 0.35s var(--ease-spring), border-color 0.35s var(--ease-spring);
    --transition-transform: transform 0.4s var(--ease-spring), opacity 0.4s var(--ease-spring);
    --transition-shadow: box-shadow 0.4s var(--ease-spring);

    --max-width: 1320px;
    --header-height: 72px;
    --section-gap: 6rem;
    --card-radius: 2.5rem;
    --inner-radius: 1.25rem;

    --logo-teal: #45b8ae;
    --logo-teal-bright: #5ec9c1;
    --logo-teal-deep: #2d9a93;
    --logo-black: #09090b;

    --bg-base: #09090b;
    --bg-surface: rgba(24, 24, 27, 0.72);
    --bg-surface-solid: #18181b;
    --bg-surface-elevated: #1f1f23;
    --border-color: rgba(255, 255, 255, 0.09);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.08);

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-color: var(--logo-teal);
    --accent-hover: var(--logo-teal-bright);
    --accent-muted: rgba(69, 184, 174, 0.18);
    --accent-soft: rgba(69, 184, 174, 0.07);
    --accent-glow: rgba(69, 184, 174, 0.35);

    --shadow-diffuse: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
    --shadow-card: var(--shadow-diffuse), 0 0 0 1px var(--border-subtle);
    --shadow-card-hover: 0 32px 56px -18px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(69, 184, 174, 0.22);

    --status-green: #5ec9a8;
    --status-error: #e07a72;

    --fiverr-accent: #1dbf73;
    --fiverr-muted: rgba(29, 191, 115, 0.12);

    color-scheme: dark;
}

body.light-theme {
    --bg-base: #f4f7f7;
    --bg-surface: rgba(255, 255, 255, 0.82);
    --bg-surface-solid: #ffffff;
    --bg-surface-elevated: #eef4f3;
    --border-color: rgba(9, 9, 11, 0.1);
    --border-subtle: rgba(9, 9, 11, 0.06);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);

    --text-primary: #09090b;
    --text-secondary: #52525b;
    --text-muted: #71717a;

    --accent-color: #2d9a93;
    --accent-hover: #238f88;
    --accent-muted: rgba(45, 154, 147, 0.14);
    --accent-soft: rgba(45, 154, 147, 0.06);
    --accent-glow: rgba(45, 154, 147, 0.25);

    --shadow-diffuse: 0 24px 48px -20px rgba(9, 9, 11, 0.1);
    --shadow-card: var(--shadow-diffuse), 0 0 0 1px var(--border-subtle);
    --shadow-card-hover: 0 32px 56px -18px rgba(9, 9, 11, 0.14),
        0 0 0 1px rgba(45, 154, 147, 0.22);

    --fiverr-accent: #1dbf73;
    --fiverr-muted: rgba(29, 191, 115, 0.1);

    color-scheme: light;
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: calc(var(--header-height) + 1.5rem);
    -webkit-text-size-adjust: 100%;
}

@media (max-width: 767px) {
    html {
        scroll-behavior: auto;
    }
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.45s ease, color 0.45s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
}

body.light-theme::before {
    opacity: 0.02;
}

.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.mesh-bg::before,
.mesh-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.14;
    animation: mesh-drift 32s infinite alternate ease-in-out;
}

.mesh-bg::before {
    top: -18%;
    right: -8%;
    width: 52vw;
    height: 52vw;
    background: var(--accent-color);
}

.mesh-bg::after {
    bottom: -12%;
    left: -12%;
    width: 46vw;
    height: 46vw;
    background: var(--logo-teal-deep);
    animation-delay: -8s;
    animation-duration: 26s;
}

body.light-theme .mesh-bg::before,
body.light-theme .mesh-bg::after {
    opacity: 0.08;
}

@keyframes mesh-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5%, 6%) scale(1.06); }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    z-index: 200;
    background: linear-gradient(90deg, var(--logo-teal-deep), var(--accent-color));
    transform-origin: left center;
    pointer-events: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: max(1rem, env(safe-area-inset-left));
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background-color: var(--accent-color);
    color: var(--logo-black);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--inner-radius);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus-visible {
    top: max(1rem, env(safe-area-inset-top));
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
}

[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.75s var(--ease-spring),
        transform 0.75s var(--ease-spring);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    .mesh-bg::before,
    .mesh-bg::after,
    .blob,
    .hero-badge-dot,
    .scroll-progress {
        animation: none !important;
        transition: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 767px) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

.max-width-container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: max(clamp(1.25rem, 4vw, 2rem), env(safe-area-inset-left));
    padding-right: max(clamp(1.25rem, 4vw, 2rem), env(safe-area-inset-right));
}

.font-mono {
    font-family: var(--font-mono);
    font-feature-settings: "liga" 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.flex-col { display: flex; flex-direction: column; }
.flex-grow { flex-grow: 1; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

.paragraph-large {
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.75;
    font-weight: 400;
    max-width: 65ch;
}

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

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

::selection {
    background-color: var(--accent-muted);
    color: var(--text-primary);
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-color);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    touch-action: manipulation;
}

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* Liquid glass surface */
.glass-surface {
    background-color: var(--bg-surface);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-inset), var(--shadow-card);
}

/* ==========================================================================
   BACKGROUND BLOBS (legacy, kept for compat)
   ========================================================================== */

.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
}

body.light-theme .blob {
    opacity: 0.05;
}

.blob-1 {
    top: -15%;
    right: -5%;
    width: 55vw;
    height: 55vw;
    background: var(--accent-color);
    animation: float-blob-1 28s infinite alternate ease-in-out;
}

.blob-2 {
    bottom: -15%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--logo-teal-deep);
    animation: float-blob-2 22s infinite alternate ease-in-out;
}

@keyframes float-blob-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-6%, 8%) scale(1.08); }
}

@keyframes float-blob-2 {
    0% { transform: translate(0, 0) scale(1.05); }
    100% { transform: translate(8%, -6%) scale(0.95); }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid transparent;
    background-color: rgba(9, 9, 11, 0.65);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body.light-theme .navbar-header {
    background-color: rgba(244, 247, 247, 0.82);
}

.navbar-header.nav-scrolled {
    border-bottom-color: var(--border-color);
    background-color: rgba(9, 9, 11, 0.92);
    box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.5);
}

body.light-theme .navbar-header.nav-scrolled {
    background-color: rgba(244, 247, 247, 0.96);
    box-shadow: 0 12px 40px -16px rgba(9, 9, 11, 0.08);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.35s var(--ease-spring), opacity 0.35s ease;
}

.logo-link:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.logo-link:active {
    transform: scale(0.98);
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: height 0.35s ease;
}

.navbar-header.nav-scrolled .brand-logo {
    height: 42px;
}

.desktop-nav .nav-list {
    display: flex;
    list-style: none;
    position: relative;
    gap: 0.1rem;
    align-items: center;
    isolation: isolate;
    padding: 0.3rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background-color: rgba(255, 255, 255, 0.03);
}

body.light-theme .desktop-nav .nav-list {
    background-color: rgba(9, 9, 11, 0.03);
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link:hover,
.nav-link.nav-active {
    color: var(--text-primary);
}

.nav-link:hover {
    background-color: var(--accent-soft);
}

.nav-link.nav-active {
    color: var(--accent-color);
}

.nav-active-indicator {
    position: absolute;
    top: 0.3rem;
    left: 0.3rem;
    width: var(--indicator-width, 0px);
    height: calc(100% - 0.6rem);
    border-radius: 999px;
    background-color: var(--accent-muted);
    border: 1px solid rgba(69, 184, 174, 0.2);
    transform: translateX(var(--indicator-x, 0px));
    transition: transform 0.45s var(--ease-spring),
        width 0.45s var(--ease-spring),
        opacity 0.25s ease;
    opacity: var(--indicator-opacity, 0);
    z-index: 1;
    pointer-events: none;
}

.nav-cta-btn {
    display: none;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background-color: var(--accent-color);
    color: var(--logo-black);
    border: 1px solid transparent;
    transition: transform 0.35s var(--ease-spring), background-color 0.35s ease, box-shadow 0.35s ease;
    white-space: nowrap;
}

.nav-cta-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px var(--accent-glow);
}

.nav-cta-btn:active {
    transform: scale(0.98);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background-color: transparent;
    transition: var(--transition-color), var(--transition-transform);
}

.theme-toggle-btn:hover {
    color: var(--accent-color);
    background-color: var(--accent-muted);
    border-color: color-mix(in srgb, var(--accent-color) 40%, var(--border-color));
}

.theme-toggle-btn:active {
    transform: scale(0.96);
}

.theme-toggle-btn .icon {
    width: 18px;
    height: 18px;
}

body.dark-theme .sun-icon { display: none; }
body.dark-theme .moon-icon { display: block; }
body.light-theme .moon-icon { display: none; }
body.light-theme .sun-icon { display: block; }

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-color), var(--transition-transform);
}

.mobile-menu-toggle:hover {
    color: var(--accent-color);
    border-color: color-mix(in srgb, var(--accent-color) 40%, var(--border-color));
    background-color: var(--accent-soft);
}

.mobile-menu-toggle .icon {
    width: 20px;
    height: 20px;
}

.line-top, .line-bot, .line-mid {
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .line-mid {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .line-top {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .line-bot {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 98;
    background-color: rgba(9, 9, 11, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.light-theme .mobile-nav-backdrop {
    background-color: rgba(9, 9, 11, 0.35);
}

.mobile-nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    height: 100dvh;
    padding-top: calc(var(--header-height) + env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
    background-color: rgba(24, 24, 27, 0.97);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-left: 1px solid var(--glass-border);
    box-shadow: var(--glass-inset), -24px 0 48px -12px rgba(0, 0, 0, 0.45);
    z-index: 99;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s var(--ease-spring), opacity 0.3s ease, visibility 0.3s;
    overscroll-behavior: contain;
}

body.light-theme .mobile-nav-drawer {
    background-color: rgba(255, 255, 255, 0.97);
}

.mobile-nav-drawer.drawer-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
}

.mobile-nav-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-color), var(--transition-transform);
}

.mobile-nav-close:hover {
    color: var(--accent-color);
    border-color: color-mix(in srgb, var(--accent-color) 35%, var(--border-color));
}

.mobile-nav-close svg {
    width: 18px;
    height: 18px;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 1rem;
    flex: 1;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.85rem 1rem;
    border-radius: var(--inner-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-color), var(--transition-transform);
    opacity: 0;
    transform: translateX(12px);
}

.mobile-nav-drawer.drawer-open .mobile-nav-link {
    opacity: 1;
    transform: translateX(0);
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.45s var(--ease-spring), opacity 0.45s ease;
}

.mobile-nav-drawer.drawer-open .mobile-nav-list li:nth-child(1) .mobile-nav-link { transition-delay: 0.05s; }
.mobile-nav-drawer.drawer-open .mobile-nav-list li:nth-child(2) .mobile-nav-link { transition-delay: 0.08s; }
.mobile-nav-drawer.drawer-open .mobile-nav-list li:nth-child(3) .mobile-nav-link { transition-delay: 0.11s; }
.mobile-nav-drawer.drawer-open .mobile-nav-list li:nth-child(4) .mobile-nav-link { transition-delay: 0.14s; }
.mobile-nav-drawer.drawer-open .mobile-nav-list li:nth-child(5) .mobile-nav-link { transition-delay: 0.17s; }
.mobile-nav-drawer.drawer-open .mobile-nav-list li:nth-child(6) .mobile-nav-link { transition-delay: 0.2s; }
.mobile-nav-drawer.drawer-open .mobile-nav-list li:nth-child(7) .mobile-nav-link { transition-delay: 0.23s; }
.mobile-nav-drawer.drawer-open .mobile-nav-list li:nth-child(8) .mobile-nav-link { transition-delay: 0.26s; }

.mobile-nav-link:hover,
.mobile-nav-link.nav-active {
    color: var(--accent-color);
    background-color: var(--accent-soft);
}

.mobile-nav-link::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.25s ease;
}

.mobile-nav-link.nav-active::after {
    background-color: var(--accent-color);
}

.mobile-nav-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav-footer .btn {
    width: 100%;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section-padding-large {
    padding-top: calc(var(--header-height) + 4.5rem);
    padding-bottom: var(--section-gap);
}

.section-padding-standard {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

.section-header-block {
    margin-bottom: 3.5rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem 3.5rem;
    align-items: start;
}

.section-header-copy {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 44rem;
    min-width: 0;
}

.section-index {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--font-mono);
    font-size: clamp(3rem, 5.5vw, 5.25rem);
    font-weight: 600;
    line-height: 1;
    color: var(--accent-color);
    letter-spacing: -0.04em;
    opacity: 0.2;
    font-variant-numeric: tabular-nums;
    align-self: start;
    padding-top: 0.1rem;
    user-select: none;
    translate: no;
}

body.light-theme .section-index {
    opacity: 0.16;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.section-heading-rule {
    width: 3.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
    margin-top: 0.25rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 0.35s var(--ease-spring),
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease;
    white-space: nowrap;
    min-height: 44px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--logo-black);
    border: 1px solid transparent;
    box-shadow: 0 6px 20px -6px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 10px 28px -6px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface-solid);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: color-mix(in srgb, var(--accent-color) 35%, var(--border-color));
    color: var(--accent-color);
    background-color: var(--accent-soft);
    transform: translateY(-1px);
}

.btn-fiverr:hover,
.social-btn-fiverr:hover {
    border-color: var(--fiverr-accent);
    color: var(--fiverr-accent);
    background-color: var(--fiverr-muted);
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-spring);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-block { width: 100%; }

.btn.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.fiverr-mark {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero-section {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow-anchor: none;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
    width: 100%;
}

.hero-content-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: clamp(0rem, 3vw, 2rem);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-color);
    background-color: var(--accent-muted);
    border: 1px solid color-mix(in srgb, var(--accent-color) 28%, var(--border-color));
    border-radius: 999px;
    margin-bottom: 1.75rem;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--status-green);
    flex-shrink: 0;
    animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(94, 201, 168, 0.5); }
    50% { opacity: 0.85; transform: scale(0.92); box-shadow: 0 0 0 6px rgba(94, 201, 168, 0); }
}

.hero-main-title {
    font-family: var(--font-hero);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title-role {
    color: var(--accent-color);
}

.text-cycle-wrap {
    position: relative;
    display: inline-block;
    min-width: 12ch;
    min-height: 1.1em;
    vertical-align: baseline;
    transition: width 0.45s var(--ease-spring);
}

.text-cycle-word {
    display: inline-block;
    white-space: nowrap;
    color: var(--accent-color);
    font-style: italic;
    will-change: transform, opacity;
}

.text-cycle-word.is-entering { opacity: 0; transform: translateY(-10px); }
.text-cycle-word.is-leaving { opacity: 0; transform: translateY(10px); }
.text-cycle-word.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.36s ease, transform 0.36s var(--ease-spring);
}

.headline-cycle-part {
    display: inline-block;
    will-change: transform, opacity;
}

.headline-cycle-part.is-entering { opacity: 0; transform: translateY(-8px); }
.headline-cycle-part.is-leaving { opacity: 0; transform: translateY(8px); }
.headline-cycle-part.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.42s ease, transform 0.42s var(--ease-spring);
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 54ch;
    margin-bottom: 2.25rem;
    line-height: 1.75;
}

.hero-cta-wrapper {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-visual-block {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.hero-visual-block::before {
    content: "";
    position: absolute;
    inset: -8% -6% -8% 12%;
    border: 1px solid var(--border-subtle);
    border-radius: var(--card-radius);
    pointer-events: none;
    z-index: 0;
}

.hero-snapshot {
    width: 100%;
    position: relative;
    z-index: 1;
    border-radius: var(--card-radius);
    padding: 2.25rem 2.5rem;
}

.hero-snapshot-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.hero-snapshot-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.hero-snapshot-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.hero-snapshot-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-soft);
    color: var(--accent-color);
    border: 1px solid color-mix(in srgb, var(--accent-color) 18%, transparent);
}

.hero-snapshot-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.hero-snapshot-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.hero-snapshot-copy strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.hero-snapshot-copy span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hero-snapshot-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding-top: 1.35rem;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    letter-spacing: 0.01em;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(3rem, 7vw, 6rem);
    align-items: start;
}

.about-narrative {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.about-profiles {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.about-profiles a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-profiles a:hover {
    color: var(--accent-hover);
}

.about-narrative p {
    font-size: 1rem;
    line-height: 1.8;
}

.about-highlights {
    border-radius: var(--card-radius);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.about-metrics-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.metric-cell {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.metric-cell:nth-child(3),
.metric-cell:nth-child(4) {
    padding-bottom: 0;
    border-bottom: none;
}

.metric-number {
    font-family: var(--font-mono);
    font-size: 2.15rem;
    font-weight: 600;
    line-height: 1;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.credential-list {
    border-top: 1px solid var(--border-color);
    padding-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.cred-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cred-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ==========================================================================
   SKILLS — Asymmetric bento
   ========================================================================== */

.bento-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.bento-skills-grid .bento-card:nth-child(1),
.bento-skills-grid .bento-card:nth-child(2),
.bento-skills-grid .bento-card:nth-child(3),
.bento-skills-grid .bento-card:nth-child(4) {
    grid-column: span 1;
}

.bento-card {
    border-radius: var(--card-radius);
    padding: 2.25rem;
    transition: transform 0.4s var(--ease-spring),
        border-color 0.35s ease,
        box-shadow 0.4s ease;
    display: flex;
}

.bento-card:hover {
    border-color: color-mix(in srgb, var(--accent-color) 22%, var(--border-color));
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.bento-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.bento-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background-color: var(--accent-muted);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, var(--accent-color) 15%, transparent);
}

.bento-icon {
    width: 22px;
    height: 22px;
}

.bento-card-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bento-card-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.bento-card-subtitle {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bento-card-body {
    width: 100%;
    margin-bottom: 1.5rem;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.875rem;
}

.skills-list li {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.skills-list li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.45em;
}

.skills-carousel .services-carousel-controls {
    display: none;
}

.skills-carousel.is-carousel-active .services-carousel-viewport {
    overflow: hidden;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services-intro {
    max-width: 54rem;
    margin-bottom: 3rem;
}

.services-lead {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.35rem;
}

.services-proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.services-proof-item {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: var(--accent-color);
    padding: 0.45rem 0.9rem;
    border: 1px solid color-mix(in srgb, var(--accent-color) 25%, var(--border-color));
    border-radius: 999px;
    background-color: var(--accent-soft);
}

.services-carousel-viewport {
    overflow: hidden;
}

.services-grid {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s var(--ease-spring);
    will-change: transform;
}

.services-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.services-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface-solid);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s var(--ease-spring),
        border-color 0.35s ease,
        color 0.35s ease,
        background-color 0.35s ease;
    flex-shrink: 0;
}

.services-carousel-btn svg {
    width: 18px;
    height: 18px;
}

.services-carousel-btn:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--accent-color) 45%, var(--border-color));
    color: var(--accent-color);
    transform: translateY(-1px);
}

.services-carousel-btn:active:not(:disabled) {
    transform: scale(0.96);
}

.services-carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.services-carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.services-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background-color: color-mix(in srgb, var(--text-muted) 50%, transparent);
    cursor: pointer;
    transition: width 0.35s var(--ease-spring), background-color 0.35s ease;
}

.services-carousel-dot.is-active {
    width: 24px;
    background-color: var(--accent-color);
}

.services-carousel-counter {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    min-width: 4.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.service-card {
    border-radius: var(--card-radius);
    padding: 2.25rem;
    transition: transform 0.4s var(--ease-spring),
        border-color 0.35s ease,
        box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    flex: 0 0 calc((100% - 3rem) / 3);
    min-width: calc((100% - 3rem) / 3);
}

.service-card:hover {
    border-color: color-mix(in srgb, var(--accent-color) 28%, var(--border-color));
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.35rem;
}

.service-code {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.service-icon {
    width: 22px;
    height: 22px;
    color: var(--accent-color);
}

.service-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    text-wrap: balance;
}

.service-description {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.35rem;
}

.service-deliverables {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-deliverables li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.service-deliverables li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border-color);
}

.service-metric {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-color);
    letter-spacing: 0.02em;
}

.service-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.25s ease;
}

.service-link:hover {
    color: var(--accent-color);
}

.services-cta-row {
    display: grid;
    grid-template-columns: 1.35fr auto;
    gap: 2.5rem;
    align-items: center;
    margin-top: 3rem;
    padding: 2.5rem;
    border-radius: var(--card-radius);
}

.services-cta-copy {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.services-cta-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.35;
    text-wrap: balance;
}

.services-cta-description {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 42rem;
}

.services-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    flex-shrink: 0;
}

.service-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.timeline-container {
    position: relative;
    margin: 0 auto;
    padding-left: 2.25rem;
}

.timeline-container::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--border-color) 8%,
        var(--border-color) 92%,
        transparent
    );
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-base);
    border: 2px solid var(--accent-color);
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
    z-index: 2;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-muted);
}

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.85rem;
    color: var(--text-muted);
}

.timeline-period {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.timeline-location {
    font-weight: 400;
}

.timeline-card {
    border-radius: var(--card-radius);
    padding: 2rem;
    transition: border-color 0.35s ease, box-shadow 0.4s ease;
}

.timeline-item:hover .timeline-card {
    border-color: color-mix(in srgb, var(--accent-color) 18%, var(--border-color));
    box-shadow: var(--shadow-card-hover);
}

.timeline-role {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-wrap: balance;
}

.timeline-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 1.35rem;
}

.timeline-progression {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.role-progress-item {
    padding: 1.35rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--inner-radius);
    background-color: var(--accent-soft);
}

.role-progress-header {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
}

.role-progress-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.role-progress-period {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-color);
}

.timeline-details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.9rem;
}

.timeline-details-list li {
    position: relative;
    padding-left: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.timeline-details-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-color);
}

.timeline-details-wrap.is-collapsed .timeline-details-list { gap: 0; }
.timeline-details-wrap.is-collapsed .timeline-details-list li:not(:first-child) { display: none; }
.timeline-details-wrap.is-collapsed .timeline-details-list li:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-details-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0;
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.25s ease;
}

.timeline-details-toggle:hover {
    color: var(--text-primary);
}

.timeline-details-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.35s var(--ease-spring);
}

.timeline-details-wrap.is-expanded .timeline-details-toggle svg {
    transform: rotate(180deg);
}

.role-progress-item .timeline-details-toggle {
    margin-top: 0.55rem;
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    border-radius: var(--card-radius);
    transition: transform 0.4s var(--ease-spring),
        border-color 0.35s ease,
        box-shadow 0.4s ease;
    height: 100%;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent-color) 22%, var(--border-color));
    box-shadow: var(--shadow-card-hover);
}

.project-visual-bar {
    height: 3px;
    width: 100%;
    background-color: var(--border-subtle);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 100%;
}

.fill-eks { background-color: #5eb8d4; }
.fill-sec { background-color: #d4827a; }
.fill-obs { background-color: #5ec9a8; }
.fill-migrate { background-color: #45b8ae; }
.fill-scale { background-color: #6ab4cc; }
.fill-cdn { background-color: #4db6ac; }
.fill-vpc { background-color: #2d9a93; }

.project-content {
    padding: 2rem;
}

.project-meta {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-wrap: balance;
}

.project-outcome {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-color);
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid color-mix(in srgb, var(--accent-color) 22%, transparent);
    border-radius: 10px;
    display: inline-block;
    background-color: var(--accent-soft);
}

.project-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.35rem;
}

.project-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.feature-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 0.28rem 0.6rem;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
}

.project-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.2rem 2rem;
    margin-top: auto;
}

.project-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s var(--ease-spring);
}

.project-link:hover .link-arrow {
    transform: translateX(3px);
}

.projects-view-all {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.projects-all-btn {
    min-width: 240px;
}

.featured-projects-carousel .services-carousel-controls {
    display: none;
}

.featured-projects-carousel.is-carousel-active .services-carousel-viewport {
    overflow: hidden;
}

.featured-projects-carousel.is-carousel-active .services-carousel-controls {
    display: flex;
}

.featured-projects-carousel.is-carousel-active .projects-grid-featured {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s var(--ease-spring);
    will-change: transform;
}

.featured-projects-carousel.is-carousel-active .project-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    min-width: calc((100% - 3rem) / 3);
}

.projects-page-hero {
    padding-bottom: 2.5rem;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.breadcrumb-nav a {
    color: var(--text-secondary);
}

.breadcrumb-nav a:hover {
    color: var(--accent-color);
}

.breadcrumb-sep {
    opacity: 0.45;
}

.projects-page-title {
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 1.15rem;
    max-width: 22ch;
}

.projects-page-lead {
    max-width: 58ch;
    margin-bottom: 1.75rem;
}

.projects-page-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.projects-stat-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface-solid);
    color: var(--text-secondary);
}

.projects-stat-pill strong {
    color: var(--accent-color);
    font-weight: 600;
}

.projects-page-cta {
    margin-top: 3.5rem;
    padding: 2.5rem;
    border-radius: var(--card-radius);
    text-align: center;
}

.projects-cta-text {
    color: var(--text-secondary);
    margin-bottom: 1.35rem;
    font-size: 1rem;
}

.projects-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.projects-page .project-card:target {
    border-color: color-mix(in srgb, var(--accent-color) 40%, var(--border-color));
    box-shadow: 0 0 0 2px var(--accent-muted), var(--shadow-card-hover);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(3rem, 7vw, 6rem);
    align-items: start;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-channels {
    margin-top: 2.25rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.channel-row {
    font-size: 0.875rem;
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 0.75rem;
    align-items: baseline;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.channel-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.channel-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.channel-value {
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

.social-networks-flex {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background-color: var(--bg-surface-solid);
    transition: transform 0.35s var(--ease-spring),
        border-color 0.35s ease,
        color 0.35s ease,
        background-color 0.35s ease;
    min-height: 44px;
}

.social-btn:hover {
    border-color: color-mix(in srgb, var(--accent-color) 35%, var(--border-color));
    color: var(--accent-color);
    transform: translateY(-1px);
}

.social-btn:active {
    transform: scale(0.98);
}

.social-icon {
    width: 16px;
    height: 16px;
}

.form-panel {
    border-radius: var(--card-radius);
    overflow: hidden;
}

.form-panel-title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    padding: 2.25rem 2.5rem 0.4rem;
    text-wrap: balance;
}

.form-panel-lead {
    padding: 0 2.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.secure-form {
    padding: 1.5rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--inner-radius);
    padding: 0.9rem 1.05rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
    outline: none;
    min-height: 44px;
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}

.form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-input.is-invalid {
    border-color: var(--status-error);
    box-shadow: 0 0 0 3px rgba(224, 122, 114, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-error {
    font-size: 0.75rem;
    color: var(--status-error);
    line-height: 1.4;
    min-height: 0;
}

.form-error:empty {
    display: none;
}

.form-alert-box {
    padding: 0.9rem 1.05rem;
    border-radius: var(--inner-radius);
    font-size: 0.8rem;
    display: none;
}

.form-alert-box.alert-success {
    display: block;
    background-color: rgba(109, 184, 138, 0.12);
    color: var(--status-green);
    border: 1px solid rgba(109, 184, 138, 0.25);
}

.form-alert-box.alert-error {
    display: block;
    background-color: rgba(212, 114, 106, 0.12);
    color: var(--status-error);
    border: 1px solid rgba(212, 114, 106, 0.25);
}

.form-alert-box.text-muted {
    display: block;
    color: var(--text-muted);
    background-color: var(--accent-soft);
    border: 1px solid var(--border-subtle);
}

/* Shared glass surfaces */
.glass-surface,
.hero-snapshot,
.about-highlights,
.bento-card,
.service-card,
.timeline-card,
.project-card,
.services-cta-row,
.form-panel,
.projects-page-cta {
    background-color: var(--bg-surface);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-inset), var(--shadow-card);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer-wrapper {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom));
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   RESPONSIVE — 991px
   ========================================================================== */

@media (max-width: 991px) {
    :root {
        --section-gap: 3.5rem;
    }

    .nav-cta-btn {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content-block {
        padding-right: 0;
    }

    .hero-section {
        min-height: auto;
        padding-bottom: 2.5rem;
    }

    .hero-visual-block {
        justify-content: stretch;
    }

    .hero-visual-block::before {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .bento-skills-grid {
        grid-template-columns: 1fr;
    }

    .services-carousel .service-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .services-carousel .service-card:hover {
        transform: none;
    }

    .services-cta-row {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2rem;
    }

    .services-cta-actions {
        align-items: flex-start;
        width: 100%;
    }

    .services-cta-actions .service-action-row {
        width: 100%;
    }

    .services-cta-actions .service-action-row .btn {
        flex: 1 1 auto;
    }

    .skills-carousel.is-carousel-active .bento-skills-grid {
        display: flex;
        gap: 1.25rem;
        transition: transform 0.5s var(--ease-spring);
        will-change: transform;
    }

    .skills-carousel.is-carousel-active .bento-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .skills-carousel.is-carousel-active .bento-card:hover {
        transform: none;
    }

    .skills-carousel .services-carousel-controls {
        display: flex;
    }

    .featured-projects-carousel.is-carousel-active .project-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .featured-projects-carousel.is-carousel-active .project-card:hover {
        transform: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .projects-page-title {
        max-width: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .section-header-block {
        margin-bottom: 2.25rem;
    }

    .services-intro {
        margin-bottom: 2rem;
    }

    .services-cta-row {
        margin-top: 2rem;
    }

    .projects-view-all {
        margin-top: 2rem;
    }

    .timeline-item {
        margin-bottom: 2.25rem;
    }

    .section-header-block {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        padding-right: 3rem;
    }

    .section-header-copy {
        grid-column: 1;
        grid-row: 1;
        max-width: none;
    }

    .section-index {
        grid-column: 1;
        grid-row: 1;
        position: absolute;
        top: 0.15rem;
        right: 0;
        font-size: 0.72rem;
        font-weight: 500;
        letter-spacing: 0.1em;
        opacity: 0.85;
        padding-top: 0;
        align-self: auto;
    }

    body.light-theme .section-index {
        opacity: 0.85;
    }
}

/* ==========================================================================
   RESPONSIVE — 767px
   ========================================================================== */

@media (max-width: 767px) {
    :root {
        --header-height: 64px;
        --section-gap: 2.75rem;
        --card-radius: 1.75rem;
    }

    .brand-logo {
        height: 38px;
    }

    .navbar-header.nav-scrolled .brand-logo {
        height: 34px;
    }

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

    .desktop-nav {
        display: none;
    }

    .section-padding-large {
        padding-top: calc(var(--header-height) + 1.5rem);
        padding-bottom: 2.5rem;
    }

    .hero-section {
        padding-bottom: 2rem;
    }

    .hero-grid {
        gap: 1.5rem;
    }

    .hero-badge {
        margin-bottom: 1.25rem;
    }

    .hero-main-title {
        font-size: 2.5rem;
        line-height: 1.1;
        letter-spacing: -0.03em;
        margin-bottom: 1.35rem;
    }

    .hero-description {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

    .section-header-block {
        padding-right: 2.75rem;
        margin-bottom: 1.75rem;
    }

    .section-index {
        top: 0.1rem;
        font-size: 0.68rem;
    }

    .hero-cta-wrapper .btn {
        width: 100%;
    }

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

    .secure-form,
    .form-panel-title,
    .form-panel-lead {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .secure-form {
        padding-bottom: 1.75rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.35rem;
    }

    .projects-all-btn {
        width: 100%;
    }

    .hero-snapshot {
        padding: 1.5rem;
    }

    .hero-snapshot-list {
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .about-highlights {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .about-narrative {
        gap: 1rem;
    }

    .contact-channels {
        margin-top: 1.5rem;
        margin-bottom: 1.75rem;
        gap: 0.75rem;
    }

    .channel-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding-bottom: 0.75rem;
    }

    .services-carousel-controls {
        margin-top: 1.25rem;
    }

    .timeline-item {
        margin-bottom: 1.75rem;
    }

    .timeline-card {
        padding: 1.5rem;
    }

    .bento-card {
        padding: 1.75rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-footer {
        padding: 1rem 1.5rem;
    }

    .social-btn {
        flex: 1 1 calc(50% - 0.375rem);
        justify-content: center;
    }

    .timeline-container {
        padding-left: 1.5rem;
    }

    .timeline-dot {
        left: -24px;
    }
}

/* ==========================================================================
   RESPONSIVE — 480px
   ========================================================================== */

@media (max-width: 480px) {
    :root {
        --section-gap: 2.25rem;
    }

    .hero-main-title {
        font-size: 2.5rem;
    }

    .section-header-block {
        margin-bottom: 1.5rem;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .social-btn {
        flex: 1 1 100%;
    }

    .about-highlights {
        padding: 1.35rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 1rem;
    }

    .metric-cell {
        padding-bottom: 1.15rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .metric-cell:nth-child(3),
    .metric-cell:nth-child(4) {
        padding-bottom: 0;
        border-bottom: none;
    }

    .metric-number {
        font-size: 1.85rem;
    }

    .metric-label {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   DESKTOP ENHANCEMENTS
   ========================================================================== */

@media (min-width: 992px) {
    .nav-cta-btn {
        display: inline-flex;
    }

    .hero-cta-wrapper {
        flex-wrap: nowrap;
        gap: 0.65rem;
    }

    .hero-cta-wrapper .btn {
        flex: 0 0 auto;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 1200px) {
    .hero-content-block {
        padding-left: clamp(0rem, 2vw, 1.5rem);
    }
}
