/* === Custom Portfolio Enhancements === */

.u-underline-none {
    text-decoration: none !important;
}

.hide {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}


/* --- Custom Cursor --- */
body.has-custom-cursor {
    cursor: none;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    background-color: white;
    transform: translate(-50%, -50%);
    transition:
        width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        height 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.3s ease;
}

.custom-cursor.hover {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
}

.custom-cursor.button-hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Subtle highlight behind the button */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    /* Pill shape */
    mix-blend-mode: normal;
    /* Turn off difference so it doesn't invert the button */
    z-index: 9998;
    /* Keep it just under the actual button text/interaction if possible, or over it with pointer-events: none */
}

/* --- Smooth Scrolling (Lenis) --- */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

/* --- Project Cards Premium Hover --- */
.project-wrapper-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.project-wrapper-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0) 50%);
    opacity: 0.5;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.project-wrapper-link:hover::after {
    opacity: 0.8;
}

.project-wrapper-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-photo {
    width: 100%;
    height: 100%;
    min-height: 100% !important;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.project-wrapper-link:hover .project-photo {
    transform: scale(1.05);
}

.project-flex {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 3;
    transform: translateY(10px);
    opacity: 1;
    transition:
        transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.5s ease;
}

.project-wrapper-link:hover .project-flex {
    transform: translateY(0);
    opacity: 1;
}

/* --- Navbar Polish --- */
.navigation-wrapper {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        background 0.4s ease,
        padding 0.4s ease;
}

.navigation-wrapper.scrolled {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* --- ScrollTrigger Reveal Class --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
}

/* === Phase 2: Design System Updates ("Linear-ish") === */

/* --- Dark Mode & Typography Theme --- */
:root {
    --bg-dark: #080808;
    --bg-darker: #040404;
    --text-primary: #f2f2f2;
    --text-muted: #8e8d8d;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --accent: #efefef;
    --site-gutter: clamp(16px, 5vw, 72px);
}

.padding-global {
    padding-left: var(--site-gutter) !important;
    padding-right: var(--site-gutter) !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
}

/* --- Global Overflow Guard --- */
.page-wrapper {
    max-width: 100vw;
    overflow: clip;
}

.section,
section {
    max-width: 100vw;
    overflow-x: clip;
}

/* --- Services Marquee Autoplay --- */
.section-cta.for-services .text-rotator-content {
    width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    white-space: nowrap;
    padding-bottom: 0.16em;
}

.section-cta.for-services .services-marquee-track {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    will-change: transform;
    padding-bottom: 0.04em;
}

.section-cta.for-services .services-marquee-track>* {
    flex: 0 0 auto;
}

/* --- Footer Layout System --- */
.footer-main {
    padding-top: clamp(56px, 7.2vw, 120px);
    padding-bottom: clamp(38px, 4.6vw, 74px);
}

.footer-main .container,
.footer-main .container-large {
    width: 100%;
    max-width: none;
    padding-left: clamp(18px, 4vw, 86px);
    padding-right: clamp(18px, 4vw, 86px);
}

.footer-main .footer-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    grid-template-areas:
        "logo logo"
        "year links";
    align-items: end;
    row-gap: clamp(26px, 3.2vw, 56px);
    column-gap: clamp(18px, 2.2vw, 48px);
}

.footer-main .footer-links-grid {
    grid-area: links;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8vw !important;
    min-width: 0;
    flex-wrap: wrap;
    max-width: 100%;
}

.footer-main .footer-link-item {
    opacity: 0.92;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    overflow: visible !important;
}

.footer-main .footer-link-item:hover {
    opacity: 1;
}

.footer-main .footer-logo-wrap {
    grid-area: logo;
    width: 100%;
    max-width: 100%;
}

.footer-main .footer-logo-svg {
    display: block;
    width: 100%;
    height: auto;
}

.footer-main .footer-logo-svg-mobile {
    display: none;
}

.footer-main .footer-year {
    grid-area: year;
    opacity: 0.68;
    margin: 0;
    align-self: center;
    font-size: clamp(1.08rem, 1.05vw, 1.5rem);
}

.footer-main .footer-copy-btn {
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    display: inline-block;
}

.footer-main .footer-links-grid>.footer-link-item {
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    flex: 0 0 auto;
    width: auto !important;
    white-space: nowrap;
}

.footer-main .footer-link-item .btn-animate-chars__text {
    display: block;
    padding-bottom: 0 !important;
    line-height: 1.12;
}

.footer-main .footer-link-item .button-line-first {
    width: 100%;
    margin-top: 8px;
}

/* Smaller desktop */
@media (max-width: 1280px) and (min-width: 992px) {
    .footer-main .footer-links-grid {
        gap: 12px 14px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .footer-main {
        padding-top: clamp(48px, 8vw, 72px);
        padding-bottom: clamp(34px, 6.5vw, 52px);
    }

    .footer-main .footer-content-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "links"
            "year";
        align-items: start;
        row-gap: 16vw !important;
        min-height: 85vh !important;
        justify-content: space-between !important;
    }

    .footer-main .footer-links-grid {
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: 14px 22px;
    }

    .footer-main .footer-year {
        align-self: start;
    }

    .footer-main .footer-logo-svg-full {
        display: block;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .footer-main {
        padding-top: 64px;
        padding-bottom: 48px;
    }

    .footer-main .container,
    .footer-main .container-large {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-main .footer-content-grid {
        row-gap: 24px;
    }

    .footer-main .footer-links-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        justify-content: stretch;
        align-items: start;
        gap: 16px 18px;
    }

    .footer-main .footer-link-item {
        max-width: 100% !important;
        font-size: clamp(1.36rem, 5.3vw, 2rem);
    }

    .footer-main .footer-links-grid>.footer-link-item:first-child {
        grid-column: 1 / -1;
    }

    .footer-main .footer-links-grid>.footer-link-item:not(:first-child) {
        width: 100% !important;
    }

    .footer-main .footer-year {
        font-size: clamp(1.05rem, 4.2vw, 1.48rem);
    }

    .footer-main .footer-logo-svg-full {
        display: none;
    }

    .footer-main .footer-logo-svg-mobile {
        display: block;
        width: 100%;
        height: auto;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-top: 0;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
}

.linear-border {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

/* --- 12-Column Grid Layout --- */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    width: 100%;
}

.col-span-12 {
    grid-column: span 12;
}

.col-span-10 {
    grid-column: span 10;
}

.col-span-8 {
    grid-column: span 8;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-4 {
    grid-column: span 4;
}

.col-span-3 {
    grid-column: span 3;
}

/* Desktop overrides */
@media (min-width: 992px) {
    .md-col-span-8 {
        grid-column: span 8;
    }

    .md-col-span-6 {
        grid-column: span 6;
    }

    .md-col-span-4 {
        grid-column: span 4;
    }

    .md-col-span-3 {
        grid-column: span 3;
    }

    .md-col-start-3 {
        grid-column-start: 3;
    }
}

/* --- Form Styling (Audit Lead Magnet) --- */
.linear-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    width: 100%;
}

.linear-input {
    background: var(--bg-darker);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 16px 20px;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.linear-input:focus {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.linear-input::placeholder {
    color: #555;
}

.linear-button {
    background: var(--text-primary);
    color: var(--bg-dark);
    font-weight: 500;
    padding: 16px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-size: 15px;
}

.linear-button:hover {
    opacity: 0.9;
}

.linear-form label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: -8px;
}

/* --- Phase 7 User Requests --- */

/* Navbar Background overrides */
.menu-circle {
    display: none !important;
}

.navigation-wrapper {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.46) 0%,
            rgba(0, 0, 0, 0.28) 32%,
            rgba(0, 0, 0, 0.12) 62%,
            rgba(0, 0, 0, 0) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
    border: none !important;
    box-shadow: none !important;
}

.navigation-wrapper.scrolled {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.58) 0%,
            rgba(0, 0, 0, 0.34) 35%,
            rgba(0, 0, 0, 0.15) 65%,
            rgba(0, 0, 0, 0) 100%) !important;
    border-bottom: none !important;
    border: none !important;
    box-shadow: none !important;
}

.navbar-overlay {
    background-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.44) 0%,
            rgba(0, 0, 0, 0.18) 38%,
            rgba(0, 0, 0, 0) 100%) !important;
    height: min(36vh, 340px) !important;
    border: none !important;
    pointer-events: none;
}

/* ================================ */
/* New Full-Screen Navigation       */
/* ================================ */

.bold-nav-full {
    z-index: 999;
    pointer-events: none;
    position: fixed;
    inset: 0;
    overflow: hidden;
}

/* Gradient overlay on closed navbar — matches old .navbar-overlay */
.bold-nav-full__gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: min(36vh, 340px);
    background-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.44) 0%,
            rgba(0, 0, 0, 0.18) 38%,
            rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
}

/* Hide gradient when nav is open (tile covers everything) */
[data-navigation-status="active"] .bold-nav-full__gradient {
    opacity: 0;
}

.bold-nav-full__bar {
    z-index: 2;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    /* Match existing .navigation width/padding */
    width: 100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px 20px;
    min-height: 80px;
    display: flex;
    position: relative;
}

.bold-nav-full__logo {
    pointer-events: auto;
    color: var(--text-primary);
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    display: flex;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

/* ---- Menu Toggle (label + hamburger bars) ---- */
.bold-nav-full__menu-toggle {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75em;
    cursor: pointer;
    padding: 10px;
    margin-right: -10px;
}

/* Menu/Close label — stacked text that slides on toggle */
.bold-nav-full__menu-label {
    overflow: hidden;
    height: 1.2em;
    position: relative;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bold-nav-full__menu-text {
    display: block;
    line-height: 1.2;
    transition: transform 0.5s cubic-bezier(.7, 0, .3, 1);
}

[data-navigation-status="active"] .bold-nav-full__menu-text {
    transform: translateY(-100%);
}

/* Hamburger bars */
.bold-nav-full__hamburger {
    color: var(--text-primary);
    cursor: pointer;
    background-color: transparent;
    border: none;
    padding: 0;
    justify-content: center;
    align-items: center;
    width: 2em;
    height: 2em;
    display: flex;
    position: relative;
    overflow: hidden;
}

.bold-nav-full__hamburger .bold-nav-full__hamburger-bar {
    background-color: currentColor;
    width: 1.5em;
    height: 0.125em;
    position: absolute;
    transform: translate(0, 0) rotate(0.001deg);
    transition: transform 0.5s cubic-bezier(.7, 0, .3, 1);
}

.bold-nav-full__hamburger .bold-nav-full__hamburger-bar:nth-child(1) {
    transform: translate(0, -.35em) scale(1, 1) rotate(0.001deg);
}

.bold-nav-full__hamburger .bold-nav-full__hamburger-bar:nth-child(3) {
    transform: translate(0, .35em) scale(1, 1) rotate(0.001deg);
}

/* Hamburger hover (closed) */
.bold-nav-full__menu-toggle:hover .bold-nav-full__hamburger-bar:nth-child(1) {
    transform: translate(0, -.35em) scale(.5, 1) rotate(0.001deg);
}

.bold-nav-full__menu-toggle:hover .bold-nav-full__hamburger-bar:nth-child(3) {
    transform: translate(0, .35em) scale(.5, 1) rotate(0.001deg);
}

/* Hamburger bars — open state (X) */
[data-navigation-status="active"] .bold-nav-full__hamburger-bar:nth-child(1) {
    transform: translate(0, 0) rotate(45deg) scale(1, 1);
}

[data-navigation-status="active"] .bold-nav-full__hamburger-bar:nth-child(2) {
    transform: translate(-150%, 0) rotate(0.001deg) scale(1, 1);
}

[data-navigation-status="active"] .bold-nav-full__hamburger-bar:nth-child(3) {
    transform: translate(0, 0) rotate(-45deg) scale(1, 1);
}

/* X hover — rotate 90deg */
[data-navigation-status="active"] .bold-nav-full__menu-toggle:hover .bold-nav-full__hamburger-bar:nth-child(1) {
    transform: translate(0, 0) rotate(135deg) scale(1, 1);
}

[data-navigation-status="active"] .bold-nav-full__menu-toggle:hover .bold-nav-full__hamburger-bar:nth-child(3) {
    transform: translate(0, 0) rotate(-135deg) scale(1, 1);
}

/* ---- Full-screen Tile (overlay) ---- */
.bold-nav-full__tile {
    pointer-events: auto;
    background-color: #111111e6;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: clip-path 1s cubic-bezier(.9, 0, .1, 1);
    clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
}

[data-navigation-status="active"] .bold-nav-full__tile {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* ---- Nav Links ---- */
.bold-nav-full__ul {
    flex-flow: column;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.bold-nav-full__li {
    justify-content: flex-start;
    align-items: baseline;
    margin: 0;
    padding: 0;
    text-decoration: none;
    display: flex;
    position: relative;
    overflow: hidden;
    transition: opacity 0.5s cubic-bezier(.7, 0, .3, 1);
}

.bold-nav-full__number {
    color: rgba(255, 255, 255, 0.3);
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    margin-right: 0.5em;
    flex-shrink: 0;
}

.bold-nav-full__link {
    color: var(--text-primary);
    letter-spacing: -.04em;
    padding-left: .075em;
    padding-right: .075em;
    font-family: "Inter", sans-serif;
    font-size: calc(4vw + 4vh);
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    transform: translateY(100%) rotate(5deg);
    transition: transform 0.75s cubic-bezier(.7, 0, .3, 1);
}

.bold-nav-full__link.is--current {
    opacity: 0.5;
}

/* Stagger delays — closed (reverse order for exit) */
.bold-nav-full__li:nth-child(1) .bold-nav-full__link {
    transition-delay: 0.25s;
}

.bold-nav-full__li:nth-child(2) .bold-nav-full__link {
    transition-delay: 0.2s;
}

.bold-nav-full__li:nth-child(3) .bold-nav-full__link {
    transition-delay: 0.15s;
}

.bold-nav-full__li:nth-child(4) .bold-nav-full__link {
    transition-delay: 0.1s;
}

.bold-nav-full__li:nth-child(5) .bold-nav-full__link {
    transition-delay: 0.05s;
}

.bold-nav-full__li:nth-child(6) .bold-nav-full__link {
    transition-delay: 0s;
}

/* Stagger delays — open (forward order for entrance) */
[data-navigation-status="active"] .bold-nav-full__link {
    transform: translateY(0%) rotate(0.001deg);
    transition-delay: 0.3s;
}

[data-navigation-status="active"] .bold-nav-full__li:nth-child(1) .bold-nav-full__link {
    transition-delay: 0.3s;
}

[data-navigation-status="active"] .bold-nav-full__li:nth-child(2) .bold-nav-full__link {
    transition-delay: 0.35s;
}

[data-navigation-status="active"] .bold-nav-full__li:nth-child(3) .bold-nav-full__link {
    transition-delay: 0.4s;
}

[data-navigation-status="active"] .bold-nav-full__li:nth-child(4) .bold-nav-full__link {
    transition-delay: 0.45s;
}

[data-navigation-status="active"] .bold-nav-full__li:nth-child(5) .bold-nav-full__link {
    transition-delay: 0.5s;
}

[data-navigation-status="active"] .bold-nav-full__li:nth-child(6) .bold-nav-full__link {
    transition-delay: 0.55s;
}

/* Link text — duplicate via text-shadow for hover roll */
.bold-nav-full__link-text {
    text-shadow: 0 1.1em 0;
    display: block;
    position: relative;
}

/* Link hover — dim siblings */
.bold-nav-full__ul:has(.bold-nav-full__li:hover) .bold-nav-full__li {
    opacity: 0.15;
}

.bold-nav-full__ul:has(.bold-nav-full__li:hover) .bold-nav-full__li:hover {
    opacity: 1;
}

/* Link hover — text roll */
.bold-nav-full__link .bold-nav-full__link-text {
    transition: transform 0.5s cubic-bezier(.7, 0, .3, 1);
    transform: translateY(0%) rotate(0.001deg);
}

.bold-nav-full__link:hover .bold-nav-full__link-text {
    transform: translateY(-100%) rotate(0.001deg);
}

/* ---- Bottom bar ---- */
.bold-nav__bottom {
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 2.25em 2.5em;
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
}

.bold-nav__word {
    opacity: .5;
    margin-bottom: 0;
    font-family: "Inter", sans-serif;
    font-size: 1.125em;
    position: relative;
    color: var(--text-primary);
}

/* ---- Responsive ---- */
@media screen and (max-width: 991px) {
    .bold-nav-full__bar {
        padding-left: 2%;
        padding-right: 2%;
    }
}

@media screen and (max-width: 479px) {
    .bold-nav-full__bar {
        padding: 10px 4%;
        min-height: 60px;
    }

    .bold-nav-full__link {
        font-size: calc(5vw + 3vh);
    }

    .bold-nav__bottom {
        padding: 1.5em 1.25em;
    }

    .bold-nav__word {
        font-size: 0.875em;
    }
}

.menu {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    background-color: transparent !important;
    background-image: linear-gradient(to bottom,
            rgba(8, 8, 8, 0.94) 0%,
            rgba(8, 8, 8, 0.88) 50%,
            rgba(8, 8, 8, 0.78) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
}

/* Ensure content is centered in a full-screen menu layer */
.menu .container {
    width: 100%;
    max-height: 100%;
    margin-top: 0;
    margin-bottom: 0;
    overflow: visible !important;
}

.menu .navigation-content-2 {
    width: min(92vw, 920px);
    max-width: 920px;
    max-height: calc(100dvh - 120px);
    justify-content: center;
    gap: clamp(0.15rem, 1vh, 0.65rem);
}

.menu .navigation-main {
    width: 100%;
    overflow: visible !important;
}

.menu .navigation-text {
    font-size: clamp(2.85rem, 7.6vw, 7.2rem);
    line-height: 0.92;
}

/* Hide menu scrollbars in all browsers */
.menu,
.menu * {
    scrollbar-width: none;
}

.menu::-webkit-scrollbar,
.menu *::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Hero layout + title scaling robustness */
.section_header113 .container-large {
    max-width: 100%;
}

/* Force padding-section-large to fill the full width of the flex component,
   so the wrapper and its absolute-positioned children span the content area */
.section_header113 .padding-section-large {
    width: 100%;
}

/* Keep display: block to avoid breaking SplitText autoSplit / mask animations */
.section_header113 .header113_content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: clamp(14px, 2vw, 28px);
    width: 100%;
    height: 100%;
    position: relative;
    --hero-bottom-offset: max(16px, env(safe-area-inset-bottom));
}

/* Pin hero text to bottom-left via absolute positioning */
.section_header113 .header113_content-left {
    position: static;
    left: 0;
    width: 100%;
    max-width: 100%;
    padding-right: clamp(18px, 2.5vw, 44px);
}

/* Place CTA directly below title */
.section_header113 .header113_content-right {
    position: static;
    right: auto !important;
    bottom: auto !important;
    align-items: flex-start;
    align-self: flex-start;
    z-index: 3;
}

.section_header113 .header113_content-right .button {
    background-color: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section_header113 .rotating-text__heading {
    width: 100%;
    max-width: none;
    font-size: clamp(4.2rem, 11vw, 10rem);
    line-height: 1;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.section_header113 .hero-title-solutions {
    display: block;
    margin-top: -0.75rem;
}

/* Prevent descender clipping in animated hero masks/lines */
.section_header113 .rotating-line-mask {
    overflow-y: hidden !important;
}

.section_header113 .rotating-line {
    padding-bottom: 0.14em;
    margin-bottom: -0.02em;
}

/* Button Stagger Effect */
.btn-animate-chars {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-animate-chars [data-button-animate-chars] {
    overflow: hidden;
    position: relative;
    display: inline-block;
}

.btn-animate-chars [data-button-animate-chars] span {
    display: inline-block;
    position: relative;
    text-shadow: 0px 1.3em currentColor;
    transform: translateY(0em) rotate(0.001deg);
    transition: transform 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}

.btn-animate-chars:hover [data-button-animate-chars] span {
    transform: translateY(-1.3em) rotate(0.001deg);
}

/* --- Phase 8: Full-Screen Project Showcase --- */

.section.is--work {
    padding: 0 !important;
    scroll-snap-type: y mandatory;
    overflow-y: auto;
}

.work-grid {
    min-height: 100vh;
    width: 100vw;
    position: relative;
    top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-dark);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.work-grid .project-content {
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: none;
}

.work-grid>div {
    width: 100%;
    height: 100%;
}

.work-grid .project-wrapper-link {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
}

.work-grid .project-flex {
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 10;
    transform: none;
    opacity: 1;
}

.flex-pixel {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-small-title.bigger {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.project-small-title.lighter {
    font-size: 1.1rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.82);
    opacity: 1;
}

/* --- Services Cards: AI / Design / Development --- */
.section_layout233 .services-split-grid {
    display: grid;
    grid-template-columns: 0.6fr 2fr;
    gap: 56px;
}

.section_layout233 .services-split-intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section_layout233 .services-split-title {
    margin: 0;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.section_layout233 .layout233_list {
    grid-column-gap: 0;
    grid-row-gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--border-subtle);
    background: var(--bg-darker);
}

.section_layout233 .layout233_item {
    min-height: clamp(280px, 34vw, 420px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    padding: clamp(22px, 3vw, 44px);
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section_layout233 .layout233_item:nth-child(2n) {
    border-right: none;
}

.section_layout233 .layout233_item:nth-last-child(-n + 2) {
    border-bottom: none;
}

.section_layout233 .layout233_item .heading-style-h4 {
    margin: 0;
    font-size: clamp(1.55rem, 2.3vw, 2.15rem);
    line-height: 1.08;
}

.section_layout233 .layout233_item .text-style-muted {
    margin: 0;
    max-width: 45ch;
}

.section_layout233 .layout233_item-icon-wrapper {
    border-radius: 0;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-primary);
}

.section_layout233 .layout233_item-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0.65;
}

.section_layout233 .layout233_item-index,
.section_layout233 .layout233_item-plus {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.section_layout233 .layout233_item-plus {
    font-size: 2rem;
    font-weight: 300;
}

/* --- Home About Section Clarity + Highlight --- */
.about-section-intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: clamp(28px, 4vw, 56px);
}

.about-eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.about-heading {
    margin: 0;
    font-size: clamp(1.75rem, 4.2vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.about-highlight-card {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.8vw, 22px);
}

.about-highlight-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.about-quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-fact-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.82rem;
    line-height: 1;
}

.about-highlight-text {
    display: block !important;
    max-width: 30ch;
    line-height: 1.1;
}

.page-title.second.about-highlight-text {
    font-size: clamp(50px, 5.5vw, 80px);
}

.about-highlight-text .word,
.about-highlight-text .char {
    display: inline-block !important;
}

.about-highlight-text .word {
    white-space: nowrap;
}

.about-resume-block {
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.about-resume-block.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.line-divider-award .line-absolute {
    opacity: 0.45 !important;
    background-color: rgba(255, 255, 255, 0.45) !important;
    transition:
        opacity 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s ease;
}

.item-wrapper:hover .line-divider-award .line-absolute {
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    transform: scaleY(1.35);
    transform-origin: center;
}

.item-wrapper.is-hovered .line-divider-award .line-absolute {
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    transform: scaleY(1.35);
    transform-origin: center;
}

@media (max-width: 991px) {
    .section_header113 .rotating-text__heading {
        font-size: clamp(3.8rem, 11vw, 12rem);
        line-height: 1.2 !important;
        margin-top: -1rem !important;
    }

    .hero-title-solutions {
        margin-top: -1rem !important;
    }

    .work-grid .project-flex {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 10px;
    }

    .work-grid .project-flex .flex-pixel,
    .work-grid .project-flex .flex-pixel._2 {
        width: 100%;
    }

    .work-grid .project-small-title.bigger {
        margin-bottom: 0;
        line-height: 1.02;
    }

    .work-grid .project-small-title.lighter {
        max-width: 28ch;
        font-size: 1rem;
        line-height: 1.15;
    }

    .work-grid .project-flex {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .about-resume-block {
        transform: translateY(18px);
    }

    .about-highlight-image {
        width: 100px;
        max-width: 100px;
    }

    .project-small-title.bigger {
        font-size: 1.8rem;
    }

    .section_layout233 .layout233_list {
        grid-template-columns: 1fr;
    }

    .section_layout233 .services-split-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section_layout233 .layout233_item {
        min-height: 260px;
        border-right: none;
    }

    .section_layout233 .layout233_item:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--border-subtle);
    }

    .section_layout233 .layout233_item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 767px) {
    .section_header113 .rotating-text__heading {
        font-size: clamp(4rem, 16vw, 7rem);
        line-height: 0.9;
        white-space: normal;
    }

    /* First visible line: "I build" */
    .section_header113 .rotating-line-mask:first-child .rotating-line {
        margin-bottom: -1rem;
    }
}

/* --- Horizontal Scrolling Sections --- */
.demo-header__h1 {
    letter-spacing: -.04em;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 4em;
    font-weight: 500;
    line-height: .95;
}

.horizontal__wrap {
    flex-flow: row;
    min-height: 100dvh;
    display: flex;
    overflow: hidden;
}

.horizontal__panel {
    flex: none;
    width: 100%;
}

.horizontal__panel-inner {
    width: 100%;
    height: 100%;
    padding: 1.25em;
}

.demo-card {
    border-radius: 1.25em;
    flex-flow: column;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    padding: 3em;
    display: flex;
    position: relative;
    overflow: hidden;
}

.demo-card__bg {
    z-index: 0;
    position: absolute;
    inset: 0%;
}

.demo-card__inner {
    z-index: 1;
    position: relative;
}

.demo-card__bg-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.card__bg-img:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 767px) {
    .demo-header__h1 {
        font-size: 2.5em;
    }

    .horizontal__wrap {
        flex-flow: column;
    }

    .horizontal__panel {
        height: 30em;
    }

    .demo-card {
        padding: 1.25em;
    }
}