:root {
    --bg: #f7f7f5;
    --text: #111111;
    --radius-pill: 999px;
    --page-gutter: clamp(20px, 1.55vw, 28px);
    --hero-page-gutter: var(--page-gutter);
    --hero-padding-y: clamp(18px, 2.2vh, 28px);
    --hero-mobile-padding: 16px;
    --hero-short-padding: 12px;
    --brand-logo-width: clamp(160px, 11.2vw, 176px);
    --nav-font-size: clamp(14px, 1vw, 16px);
    --hero-title-font-size: clamp(42px, 5vw, 68px);
    --short-title-font-size: clamp(40px, 4.4vw, 56px);
    --mobile-profile-width: min(68vw, 160px);
    --mobile-title-font-size: clamp(28px, 8vw, 42px);
    --small-profile-width: min(62vw, 160px);
    --small-title-font-size: clamp(28px, 8vw, 42px);
    --short-profile-width: min(44vw, 165px);
    --very-short-title-font-size: clamp(28px, 8.4vw, 38px);
    --font-sans: "Inter", Arial, sans-serif;
    --font-display: "Inter", Arial, sans-serif;
    --header-flow-height: 64px;
    --page-line-art-width: clamp(340px, 31vw, 520px);
    --page-line-art-top-offset: -28px;
    --page-line-art-right-offset: -56px;
    --page-line-art-bottom-top: clamp(520px, 63vh, 680px);
    --page-line-art-left-offset: -92px;
    --page-line-art-opacity: .52;
}

@media (max-width: 860px) {
    :root {
        --header-flow-height: 56px;
    }
}

* {
    box-sizing: border-box;
}

::selection {
    background: #d9d9d9;
    color: #111;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #f5ba29 transparent;
}

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

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: #f5ba29;
    border-radius: 999px;
}

html.is-wheel-smoothing {
    scroll-behavior: auto;
}

body {
    position: relative;
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

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

img,
svg {
    display: block;
}

.page-line-art-viewport {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 0;
    height: calc(100dvh + 320px);
    overflow: hidden;
    pointer-events: none;
}

.page-line-art {
    position: absolute;
    z-index: 0;
    width: var(--page-line-art-width);
    height: auto;
    fill: none;
    opacity: var(--page-line-art-opacity);
    pointer-events: none;
}

.page-line-art-base {
    stroke: #dcd9d0;
    stroke-width: 1;
    opacity: .62;
}

.page-line-art-runner {
    stroke: #111;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-dasharray: 70 70;
    opacity: .50;
    animation: line-art-runner 2.8s linear infinite;
}

.page-line-art-top {
    top: var(--page-line-art-top-offset);
    right: var(--page-line-art-right-offset);
}

.page-line-art-bottom {
    top: var(--page-line-art-bottom-top);
    left: var(--page-line-art-left-offset);
    transform: rotate(184deg);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease, backdrop-filter .24s ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
    background-color: rgba(255, 255, 255, .68);
    border-bottom-color: rgba(17, 17, 17, .07);
    box-shadow: 0 10px 30px rgba(17, 17, 17, .055), inset 0 1px 0 rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    backdrop-filter: blur(10px) saturate(165%);
}

.site-header-inner {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(240px, 1fr);
    align-items: center;
    gap: 28px;
    width: 100%;
    padding: 8px var(--page-gutter);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: max-content;
    animation: header-item-enter .62s .04s cubic-bezier(.2,.8,.2,1) both;
    transition: transform .25s ease;
}

.brand:hover {
    transform: translateY(-2px);
}

.brand svg {
    width: var(--brand-logo-width);
    height: auto;
}

/* On desktop the wrapper is invisible to layout, so nav and actions stay direct grid items. */
.header-collapse {
    display: contents;
}

.primary-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: center;
    flex-wrap: wrap;
    transform-origin: center;
    animation: primary-nav-land-open 1.12s .12s cubic-bezier(.16,.84,.24,1) backwards;
}

.nav-load-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 76px;
    height: 42px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.97);
    box-shadow: 0 2px 8px rgba(17,17,17,.045), inset 0 0 0 1px rgba(17,17,17,.025);
    transform: translate(-50%, -50%);
    animation: nav-empty-pill 1.12s .12s cubic-bezier(.16,.84,.24,1) both;
    pointer-events: none;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.97);
    font-size: var(--nav-font-size);
    font-weight: 500;
    letter-spacing: -.025em;
    box-shadow: 0 2px 8px rgba(17,17,17,.06), inset 0 0 0 1px rgba(17,17,17,.06);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background-color .3s ease;
}

.primary-nav .nav-pill:first-of-type {
    animation: nav-pill-open-left 1.12s .12s cubic-bezier(.16,.84,.24,1) backwards;
}

.primary-nav .nav-pill:nth-of-type(2),
.primary-nav .nav-pill:nth-of-type(3),
.primary-nav .nav-pill:nth-of-type(4) {
    animation: nav-pill-center 1.12s .12s cubic-bezier(.16,.84,.24,1) backwards;
}

.nav-pill:hover {
    transform: translateY(-3px) scale(1.025);
    background: #fff;
    box-shadow: 0 3px 10px rgba(17,17,17,.06), inset 0 0 0 1px rgba(17,17,17,.03);
}

.nav-pill:active {
    transform: translateY(0) scale(.98);
}

.nav-pill-button {
    appearance: none;
    border: 0;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    animation: nav-pill-center 1.12s .12s cubic-bezier(.16,.84,.24,1) backwards;
}

.hire-menu {
    position: relative;
    display: inline-flex;
    animation: nav-pill-open-right 1.12s .12s cubic-bezier(.16,.84,.24,1) backwards;
}

.hire-pill {
    appearance: none;
    border: 0;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 6px 0 16px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.97);
    font-size: var(--nav-font-size);
    font-weight: 500;
    letter-spacing: -.025em;
    box-shadow: 0 2px 8px rgba(17,17,17,.06), inset 0 0 0 1px rgba(17,17,17,.06);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background-color .3s ease;
}

.hire-pill:hover {
    transform: translateY(-3px) scale(1.025);
    background: #fff;
    box-shadow: 0 3px 10px rgba(17,17,17,.06), inset 0 0 0 1px rgba(17,17,17,.03);
}

.hire-pill:active {
    transform: translateY(0) scale(.98);
}

.hire-pill-icon {
    display: grid;
    place-items: center;
    width: 32px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #111;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    transform-origin: center;
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

.hire-pill:hover .hire-pill-icon,
.hire-pill:focus-visible .hire-pill-icon,
.hire-menu.is-open .hire-pill-icon {
    transform: rotate(180deg);
}

.hire-pill-icon svg {
    width: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hire-menu.is-open .hire-pill-icon {
    transform: rotate(180deg);
}

.hire-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 210px;
    padding: 7px;
    border: 1px solid rgba(17,17,17,.07);
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 16px 36px rgba(17,17,17,.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-7px) scale(.98);
    transform-origin: top right;
    transition: opacity .2s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility .2s ease;
}

.hire-menu.is-open .hire-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hire-dropdown-link {
    display: grid;
    grid-template-columns: 20px max-content max-content;
    align-items: center;
    justify-content: start;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -.02em;
    white-space: nowrap;
    transition: background-color .2s ease, transform .2s ease;
    column-gap: 9px;
}

.hire-dropdown-link:hover,
.hire-dropdown-link:focus-visible {
    background: #f3f3f0;
    outline: none;
}

.hire-dropdown-link:active {
    transform: scale(.985);
}

.hire-dropdown-leading-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #111;
}

.hire-dropdown-leading-icon svg {
    width: 18px;
    height: 18px;
}

.hire-dropdown-status-dot {
    position: absolute;
    right: -1px;
    bottom: 0;
    width: 7px;
    height: 7px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #21c16b;
}

.hire-dropdown-external {
    width: 16px;
    height: 16px;
    margin-left: -4px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    animation: header-item-enter .62s .2s cubic-bezier(.2,.8,.2,1) both;
}

.email-copy-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 39px;
    padding: 0 13px 0 16px;
    border: 1px solid rgba(17,17,17,.78);
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.72);
    color: #111;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -.025em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(17,17,17,.035);
    will-change: transform, opacity;
    animation: email-pill-enter .68s 1.82s cubic-bezier(.16,.78,.22,1) backwards;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), background-color .28s ease, box-shadow .28s ease;
}

.email-copy-pill:hover,
.email-copy-pill:focus-visible {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 3px 10px rgba(17,17,17,.06);
}

.email-copy-pill:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.email-copy-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.email-copy-pill.is-copied .email-copy-icon {
    animation: copy-icon-confirm .32s cubic-bezier(.2,.8,.2,1);
}

.email-copy-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.email-copy-tooltip {
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    z-index: 60;
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(255,255,255,.97);
    color: #111;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .015em;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(17,17,17,.10), inset 0 0 0 1px rgba(17,17,17,.035);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -5px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.email-copy-pill:hover .email-copy-tooltip,
.email-copy-pill:focus-visible .email-copy-tooltip,
.email-copy-pill.is-copied .email-copy-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 39px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #111;
    transform-origin: center;
    backface-visibility: hidden;
    will-change: transform, opacity;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s ease;
}

.social-links .social-button:nth-child(1) {
    z-index: 1;
    animation: social-rollout-instagram 1.28s .48s cubic-bezier(.16,.78,.22,1) backwards;
}

.social-links .social-button:nth-child(2) {
    z-index: 2;
    animation: social-rollout-linkedin 1.18s .40s cubic-bezier(.16,.78,.22,1) backwards;
}

.social-links .social-button:nth-child(3) {
    z-index: 3;
    animation: social-facebook-anchor 1.18s .18s cubic-bezier(.16,.78,.22,1) backwards;
}


.social-button:hover {
    transform: translateY(-3px) scale(1.06);
    opacity: .9;
}

.social-button svg {
    width: 21px;
    height: 21px;
    fill: #fff;
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
}

.social-button:hover svg {
    transform: scale(1.12);
}

/* Menu button. Hidden until the compact header takes over. */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-self: end;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #111;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: header-item-enter .62s .2s cubic-bezier(.2,.8,.2,1) both;
    transition: transform .25s cubic-bezier(.2,.8,.2,1);
}

.nav-toggle:hover {
    transform: translateY(-2px);
}

.nav-toggle:active {
    transform: translateY(0) scale(.96);
}

.nav-toggle:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.nav-toggle-icon {
    width: 24px;
    height: 24px;
    display: block;
    color: #fff;
    transition:
        opacity .22s ease,
        transform .28s cubic-bezier(.2,.8,.2,1);
}

.nav-toggle-bars {
    position: absolute;
    display: block;
    width: 18px;
    height: 18px;
    opacity: 0;
    transform: scale(.72) rotate(-20deg);
    pointer-events: none;
    transition:
        opacity .22s ease,
        transform .28s cubic-bezier(.2,.8,.2,1);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: var(--radius-pill);
    background: #fff;
}

.nav-toggle-bars::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle-bars::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    opacity: 0;
    transform: scale(.72) rotate(20deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(17,17,17,.34);
    opacity: 0;
    visibility: hidden;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: opacity .26s ease, visibility .26s ease;
}

.nav-scrim.is-open {
    opacity: 1;
    visibility: visible;
}

body.nav-open {
    overflow: hidden;
}


/* Logo animation only */
.brand-logo {
    overflow: visible;
    transform-origin: center;
    animation: brand-logo-final-buzz .52s 3.48s steps(2, end) both;
}

.brand-logo-dot {
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    animation: brand-logo-dot-bounce 2.72s .78s linear both;
}

@keyframes brand-logo-dot-bounce {
    0% {
        opacity: 0;
        transform: scale(.18);
    }
    4% {
        opacity: 1;
        transform: scale(.58);
    }
    9% {
        transform: scale(1.16);
    }
    14% {
        transform: scale(1);
    }
    31% {
        transform: scale(1);
    }
    34% {
        transform: scale(1.13, .84);
    }
    38% {
        transform: scale(.96, 1.08);
    }
    48% {
        transform: scale(1);
    }
    51% {
        transform: scale(1.12, .86);
    }
    55% {
        transform: scale(.97, 1.07);
    }
    65% {
        transform: scale(1);
    }
    68% {
        transform: scale(1.12, .86);
    }
    72% {
        transform: scale(.97, 1.07);
    }
    84% {
        transform: scale(1);
    }
    87% {
        transform: scale(1.14, .82);
    }
    91% {
        transform: scale(.96, 1.08);
    }
    97% {
        opacity: 1;
        transform: scale(1.08, .88);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes brand-logo-final-buzz {
    0%, 100% {
        transform: translate3d(0, 0, 0);
        filter: none;
    }
    12% {
        transform: translate3d(-1px, .4px, 0);
        filter: drop-shadow(1.3px 0 0 rgba(245,58,42,.72)) drop-shadow(-1.3px 0 0 rgba(0,154,255,.72));
    }
    26% {
        transform: translate3d(1.2px, -.5px, 0);
        filter: drop-shadow(-1px 0 0 rgba(245,58,42,.65)) drop-shadow(1px 0 0 rgba(0,154,255,.65));
    }
    40% {
        transform: translate3d(-.7px, .6px, 0);
        filter: drop-shadow(1.5px 0 0 rgba(245,58,42,.62)) drop-shadow(-1.5px 0 0 rgba(0,154,255,.62));
    }
    58% {
        transform: translate3d(.8px, -.3px, 0);
        filter: drop-shadow(-1.1px 0 0 rgba(245,58,42,.5)) drop-shadow(1.1px 0 0 rgba(0,154,255,.5));
    }
    76% {
        transform: translate3d(-.35px, .2px, 0);
        filter: drop-shadow(.7px 0 0 rgba(245,58,42,.28)) drop-shadow(-.7px 0 0 rgba(0,154,255,.28));
    }
}

@keyframes hire-icon-wiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    20% { transform: rotate(-12deg) scale(1.07); }
    40% { transform: rotate(10deg) scale(1.08); }
    60% { transform: rotate(-7deg) scale(1.07); }
    80% { transform: rotate(4deg) scale(1.04); }
}

@keyframes copy-icon-confirm {
    0% { transform: scale(.72); opacity: .35; }
    58% { transform: scale(1.16); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes email-pill-enter {
    0% {
        opacity: 0;
        transform: translate3d(56px,0,0) scale(.94);
    }
    68% {
        opacity: 1;
        transform: translate3d(-4px,0,0) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translate3d(0,0,0) scale(1);
    }
}

@keyframes social-facebook-anchor {
    0% {
        opacity: 0;
        transform: translate3d(0,0,0) rotate(0deg) scale(.78);
    }
    24% {
        opacity: 1;
        transform: translate3d(0,0,0) rotate(0deg) scale(1.06);
    }
    42% {
        transform: translate3d(0,0,0) rotate(72deg) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate3d(0,0,0) rotate(360deg) scale(1);
    }
}

@keyframes social-rollout-linkedin {
    0%, 18% {
        opacity: 0;
        transform: translate3d(49px,0,0) rotate(0deg) scale(.84);
    }
    32% {
        opacity: .18;
        transform: translate3d(45px,0,0) rotate(-48deg) scale(.86);
    }
    68% {
        opacity: .84;
        transform: translate3d(10px,0,0) rotate(-286deg) scale(.97);
    }
    100% {
        opacity: 1;
        transform: translate3d(0,0,0) rotate(-360deg) scale(1);
    }
}

@keyframes social-rollout-instagram {
    0%, 18% {
        opacity: 0;
        transform: translate3d(98px,0,0) rotate(0deg) scale(.76);
    }
    32% {
        opacity: .12;
        transform: translate3d(92px,0,0) rotate(-58deg) scale(.8);
    }
    66% {
        opacity: .72;
        transform: translate3d(24px,0,0) rotate(-392deg) scale(.95);
    }
    100% {
        opacity: 1;
        transform: translate3d(0,0,0) rotate(-540deg) scale(1);
    }
}

@keyframes line-art-runner {
    to {
        stroke-dashoffset: -140;
    }
}

@keyframes primary-nav-land-open {
    0% {
        transform: translateY(-24px) scale(.86);
    }
    34% {
        transform: translateY(2px) scale(1.02);
    }
    48% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes nav-empty-pill {
    0% {
        opacity: 1;
        transform: translate(-50%, calc(-50% - 18px)) scale(.84);
    }
    28% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.02);
    }
    54% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    64%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.96);
    }
}

@keyframes nav-pill-open-left {
    0%, 64% {
        opacity: 0;
        transform: translateX(82px);
    }
    76% {
        opacity: .36;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes nav-pill-center {
    0%, 64% {
        opacity: 0;
        transform: scale(.94);
    }
    76% {
        opacity: .36;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes nav-pill-open-right {
    0%, 64% {
        opacity: 0;
        transform: translateX(-82px);
    }
    76% {
        opacity: .36;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes header-item-enter {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo {
        animation: none !important;
        filter: none !important;
        transform: none !important;
    }

    .brand-logo-dot {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }

    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* Compact header. The desktop navigation becomes a rounded card menu on
   tablets and phones while the brand and menu button stay in the top bar. */
html.layout-narrow-1080 .site-header-inner {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

html.layout-narrow-1080 .nav-toggle {
    display: inline-grid;
}

html.layout-narrow-1080 .header-collapse {
    position: absolute;
    top: calc(100% + 10px);
    right: var(--page-gutter);
    left: auto;
    z-index: 5;
    display: grid;
    gap: 0;
    width: min(520px, calc(100vw - (var(--page-gutter) * 2)));
    max-height: calc(100dvh - var(--header-flow-height) - 24px);
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(17,17,17,.07);
    border-radius: 28px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 54px rgba(17,17,17,.16), inset 0 1px 0 rgba(255,255,255,.9);
    -webkit-backdrop-filter: blur(20px) saturate(165%);
    backdrop-filter: blur(20px) saturate(165%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(.985);
    transform-origin: top right;
    transition: opacity .26s ease, transform .32s cubic-bezier(.2,.8,.2,1), visibility .26s ease;
}

html.layout-narrow-1080 .header-collapse.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Entry animations belong to the desktop bar, not to a panel that opens on tap. */
html.layout-narrow-1080 .primary-nav,
html.layout-narrow-1080 .primary-nav .nav-pill,
html.layout-narrow-1080 .primary-nav .nav-pill:first-of-type,
html.layout-narrow-1080 .primary-nav .nav-pill:nth-of-type(2),
html.layout-narrow-1080 .primary-nav .nav-pill:nth-of-type(3),
html.layout-narrow-1080 .primary-nav .nav-pill:nth-of-type(4),
html.layout-narrow-1080 .hire-menu,
html.layout-narrow-1080 .hire-pill,
html.layout-narrow-1080 .header-actions,
html.layout-narrow-1080 .email-copy-pill,
html.layout-narrow-1080 .social-links .social-button {
    animation: none;
}

html.layout-narrow-1080 .nav-load-icon {
    display: none;
}

html.layout-narrow-1080 .primary-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    justify-self: stretch;
    padding: 8px;
    border-radius: 22px;
    background: rgba(247,247,245,.78);
    counter-reset: compact-nav;
}

html.layout-narrow-1080 .primary-nav::before {
    content: "NAVIGATION";
    display: block;
    padding: 2px 8px 8px;
    color: rgba(17,17,17,.45);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}

html.layout-narrow-1080 .nav-pill,
html.layout-narrow-1080 .hire-pill {
    position: relative;
    width: 100%;
    min-height: 62px;
    justify-content: flex-start;
    gap: 14px;
    padding: 0 18px;
    border: 1px solid rgba(17,17,17,.045);
    border-radius: 19px;
    background: rgba(255,255,255,.98);
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(17,17,17,.045);
}

html.layout-narrow-1080 .nav-pill::before,
html.layout-narrow-1080 .hire-pill::before {
    counter-increment: compact-nav;
    content: "0" counter(compact-nav);
    flex: 0 0 auto;
    color: #f0a900;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
}

html.layout-narrow-1080 .nav-pill:hover,
html.layout-narrow-1080 .hire-pill:hover {
    transform: translateY(-1px);
    background: #fff;
    box-shadow: 0 8px 20px rgba(17,17,17,.06);
}

html.layout-narrow-1080 .hire-menu {
    display: grid;
    width: 100%;
}

html.layout-narrow-1080 .hire-pill-icon {
    margin-left: auto;
}

html.layout-narrow-1080 .hire-dropdown {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    margin-top: 7px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(239,239,236,.8);
    box-shadow: inset 0 0 0 1px rgba(17,17,17,.025);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
}

html.layout-narrow-1080 .hire-menu.is-open .hire-dropdown {
    display: grid;
}

html.layout-narrow-1080 .hire-dropdown-link {
    min-height: 46px;
    padding: 0 14px;
    font-size: 15px;
}

html.layout-narrow-1080 .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 12px;
    padding: 14px 8px 6px;
    border-top: 1px solid rgba(17,17,17,.08);
}

html.layout-narrow-1080 .email-copy-pill {
    width: 100%;
    height: 52px;
    justify-content: space-between;
    padding: 0 17px;
    background: rgba(255,255,255,.92);
}

html.layout-narrow-1080 .email-copy-tooltip {
    top: auto;
    bottom: calc(100% + 4px);
    transform: translate(-50%, 5px);
}

html.layout-narrow-1080 .email-copy-pill:hover .email-copy-tooltip,
html.layout-narrow-1080 .email-copy-pill:focus-visible .email-copy-tooltip,
html.layout-narrow-1080 .email-copy-pill.is-copied .email-copy-tooltip {
    transform: translate(-50%, 0);
}

html.layout-narrow-1080 .social-links {
    justify-content: flex-start;
    gap: 12px;
}

/* html.layout-narrow-860 .brand svg {
    width: 104px;
} */

html.layout-narrow-430 .header-collapse {
    top: calc(100% + 8px);
    right: 12px;
    width: calc(100vw - 24px);
    padding: 10px;
    border-radius: 25px;
}

html.layout-narrow-430 .primary-nav {
    padding: 6px;
    border-radius: 20px;
}

html.layout-narrow-430 .nav-pill,
html.layout-narrow-430 .hire-pill {
    min-height: 58px;
    padding: 0 15px;
    border-radius: 18px;
    font-size: 15px;
}

html.layout-narrow-430 .header-actions {
    padding-inline: 6px;
}

html.layout-narrow-350 .email-copy-pill {
    font-size: 12px;
    padding: 0 12px;
}


/* Floating direct chat. Kept isolated from the existing header and page components. */
.portfolio-chat {
    position: fixed;
    right: 26px;
    bottom: 24px;
    z-index: 25;
    display: grid;
    justify-items: end;
    gap: 10px;
    font-family: var(--font-sans);
    /* The hidden chat panel still contributes to this wrapper's box size.
       Keep the wrapper itself click-through so it never blocks page content. */
    pointer-events: none;
}

.portfolio-chat-toggle {
    pointer-events: auto;
    appearance: none;
    border: 1px solid rgba(17,17,17,.07);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.98);
    color: #111;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -.025em;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(17,17,17,.12), inset 0 0 0 1px rgba(255,255,255,.8);
    -webkit-tap-highlight-color: transparent;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background-color .25s ease;
}

.portfolio-chat-toggle:hover,
.portfolio-chat-toggle:focus-visible {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 16px 36px rgba(17,17,17,.16), inset 0 0 0 1px rgba(17,17,17,.025);
    outline: none;
}

.portfolio-chat-toggle:active {
    transform: translateY(0) scale(.985);
}

.portfolio-chat-status-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    color: #111;
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
}

.portfolio-chat-status-mark svg {
    width: 21px;
    height: 21px;
}

.portfolio-chat-toggle:hover .portfolio-chat-status-mark,
.portfolio-chat-toggle:focus-visible .portfolio-chat-status-mark {
    transform: scale(1.08);
}

.portfolio-chat-toggle-text {
    transform: translateY(-.5px);
}

.portfolio-chat-dot {
    position: absolute;
    right: -1px;
    bottom: 1px;
    width: 7px;
    height: 7px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #21c16b;
}

.portfolio-chat-panel {
    width: min(350px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid rgba(17,17,17,.07);
    border-radius: 20px;
    background: rgba(255,255,255,.985);
    box-shadow: 0 22px 54px rgba(17,17,17,.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(.975);
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .26s cubic-bezier(.2,.8,.2,1), visibility .2s ease;
}

.portfolio-chat.is-open .portfolio-chat-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.portfolio-chat-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 10px;
}

.portfolio-chat-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    overflow: visible;
    border-radius: 50%;
    background: #f3f3f0;
    box-shadow: inset 0 0 0 1px rgba(17,17,17,.05);
}

.portfolio-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 17%;
    border-radius: inherit;
}

.portfolio-chat-head-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.portfolio-chat-head-copy strong {
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.portfolio-chat-head-copy span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b6b67;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.portfolio-chat-head-copy span i {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #21c16b;
}

.portfolio-chat-close {
    appearance: none;
    border: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: #f3f3f0;
    color: #111;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.portfolio-chat-close:hover,
.portfolio-chat-close:focus-visible {
    background: #e9e9e5;
    outline: none;
}

.portfolio-chat-close:active {
    transform: scale(.94);
}

.portfolio-chat-close svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.portfolio-chat-intro {
    margin: 0;
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: #f3f3f0;
    color: #292926;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: -.012em;
}

.portfolio-chat-form {
    display: grid;
    gap: 8px;
    padding: 12px 4px 4px;
}

.portfolio-chat-form label {
    padding-left: 4px;
    color: #5f5f5b;
    font-size: 11px;
    font-weight: 600;
}

.portfolio-chat-form textarea {
    width: 100%;
    min-height: 84px;
    resize: vertical;
    border: 1px solid rgba(17,17,17,.08);
    border-radius: 13px;
    padding: 12px 13px;
    background: #fafaf8;
    color: #111;
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.portfolio-chat-form textarea::placeholder {
    color: #969690;
}

.portfolio-chat-form textarea:focus {
    border-color: rgba(17,17,17,.24);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(17,17,17,.045);
}

.portfolio-chat-send {
    appearance: none;
    border: 0;
    min-height: 44px;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

.portfolio-chat-send:hover,
.portfolio-chat-send:focus-visible {
    background: #262626;
    outline: none;
}

.portfolio-chat-send:active {
    transform: scale(.985);
}

.portfolio-chat-email {
    display: block;
    padding: 8px 7px 5px;
    color: #777771;
    font-size: 10.5px;
    line-height: 1.35;
    text-align: center;
}

.portfolio-chat-email strong {
    color: #111;
    font-weight: 600;
}

@keyframes portfolio-chat-status {
    0% { transform: scale(.8); opacity: .65; }
    70%, 100% { transform: scale(1.55); opacity: 0; }
}

html.layout-narrow-430 .portfolio-chat {
    right: 16px;
    bottom: 16px;
}

html.layout-narrow-430 .portfolio-chat-toggle {
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
}

html.layout-narrow-430 .portfolio-chat-panel {
    width: calc(100vw - 32px);
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-chat-toggle,
    .portfolio-chat-panel {
        transition: none;
    }
}

@media screen and (max-width: 1210px){
    .header-actions button.email-copy-pill{
        display: none;
    }
}
@media screen and (max-width: 1080px){
    .header-actions button.email-copy-pill{
        display: flex;
    }
}

@media (max-width: 620px) {
    .portfolio-chat {
        right: 15px;
        bottom: 20px;
    }
}

/* ===================================================================
   SHARED SITE CONTACT + FOOTER
   Used by index.html, services.html and projects.html.
   Keep common footer styles here so every page renders the same footer.
   =================================================================== */
/* ---------- 04 Final CTA ---------- */
.contact-section {
    position: relative;
    padding: clamp(90px, 9vw, 150px) 0 clamp(96px, 10vw, 160px);
    overflow: hidden;
    background: #0e0e0e;
    color: #fff;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f5ba29 22%, #f5ba29 78%, transparent);
}

/* Yellow glow that tracks the pointer, --gx / --gy set by JS. */
.contact-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(560px circle at var(--gx, 76%) var(--gy, 26%), rgba(245,186,41,.12), transparent 66%);
    transition: opacity .5s ease;
    pointer-events: none;
}

.contact-section .pn-dots {
    left: 0;
    bottom: 0;
    width: 220px;
    height: 200px;
    color: #fff;
    opacity: .07;
}

.contact-grid { position: relative; z-index: 1; }

.portfolio-new-kicker-dark { color: rgba(255,255,255,.46); }
.portfolio-new-kicker-dark span { border-color: rgba(255,255,255,.18); color: #f5ba29; }

.contact-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr);
    align-items: end;
    gap: clamp(32px, 4vw, 90px);
    padding-bottom: clamp(40px, 4vw, 66px);
    border-bottom: 1px solid rgba(255,255,255,.13);
}

.contact-copy h2 {
    max-width: 15ch;
    font-size: clamp(50px, 5.6vw, 100px);
}

.contact-copy h2 em {
    font-style: normal;
    color: #f5ba29;
}

.contact-copy-aside {
    display: grid;
    gap: 28px;
    justify-items: start;
    padding-bottom: 8px;
}

.contact-copy-aside p {
    margin: 0;
    max-width: 48ch;
    color: rgba(255,255,255,.6);
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.62;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-primary,
.contact-secondary {
    position: relative;
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 0 26px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    isolation: isolate;
    transition: transform .34s cubic-bezier(.16,.84,.28,1), color .3s ease;
}

.contact-primary { background: #f5ba29; color: #111; }

.contact-primary::after {
    content: "";
    position: absolute;
    top: -40%;
    bottom: -40%;
    left: -45%;
    width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-18deg) translateX(-180%);
    transition: transform .62s cubic-bezier(.16,.84,.28,1);
}

.contact-primary:hover::after,
.contact-primary:focus-visible::after { transform: skewX(-18deg) translateX(520%); }

.contact-secondary {
    border: 1px solid rgba(255,255,255,.24);
    color: #fff;
}

.contact-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: #fff;
    transform: translateY(101%);
    transition: transform .46s cubic-bezier(.16,.84,.28,1);
}

.contact-secondary:hover,
.contact-secondary:focus-visible { color: #111; outline: none; }
.contact-secondary:hover::before,
.contact-secondary:focus-visible::before { transform: translateY(0); }

.contact-primary:hover,
.contact-primary:focus-visible { outline: none; transform: translateY(-3px); }

.contact-channels {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.2vw, 20px);
    margin-top: clamp(34px, 3.6vw, 58px);
}

.contact-channel {
    position: relative;
    display: grid;
    align-content: start;
    gap: 13px;
    padding: clamp(24px, 2.2vw, 34px);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 24px;
    background: rgba(255,255,255,.035);
    overflow: hidden;
    transition: transform .5s cubic-bezier(.16,.84,.28,1), border-color .38s ease, background-color .38s ease;
}

.contact-channel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(245,186,41,.16), transparent 64%);
    opacity: 0;
    transition: opacity .42s ease;
    pointer-events: none;
}

.contact-channel:hover {
    border-color: rgba(245,186,41,.42);
    background: rgba(255,255,255,.06);
    transform: translateY(-8px);
}

.contact-channel:hover::after { opacity: 1; }

.contact-channel-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #969696;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: normal;
}

.contact-channel strong {
    position: relative;
    font-size: clamp(16px, 1.15vw, 20px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.03em;
    word-break: break-word;
}

.contact-channel > span:last-child {
    position: relative;
    color: rgba(255,255,255,.52);
    font-size: 14px;
    line-height: 1.55;
}

.contact-channel-live .contact-channel-label::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    animation: pn-pulse 2.4s ease-in-out infinite;
}

@keyframes pn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.42); }
    50% { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
}

.contact-channel a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f5ba29;
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
    transition: gap .3s ease;
}

.contact-channel a:hover { gap: 13px; }

/* ---------- Compact footer ---------- */
.site-footer {
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255,255,255,.10);
    background: #131313;
    color: rgba(255,255,255,.62);
}

.site-footer-inner {
    width: 100%;
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 18px var(--page-gutter);
}

.site-footer-copy {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -.01em;
}

.site-footer-copy strong { color: #fff; font-weight: 600; }

.site-footer-home .site-footer-inner {
    justify-content: center;
    text-align: center;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.site-footer-nav a {
    position: relative;
    color: rgba(255,255,255,.62);
    font-size: 12px;
    font-weight: 600;
    transition: color .24s ease;
}

.site-footer-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: #f5ba29;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .36s cubic-bezier(.16,.84,.28,1);
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible { color: #f5ba29; outline: none; }

.site-footer-nav a:hover::after,
.site-footer-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

.site-footer-social {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-right: 132px;
}

.site-footer-social-link {
    display: grid;
    width: 36px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.03);
    transition: transform .34s cubic-bezier(.16,.84,.28,1), color .24s ease, border-color .24s ease, background-color .24s ease;
}

.site-footer-social-link:hover,
.site-footer-social-link:focus-visible {
    color: #111;
    border-color: #f5ba29;
    background: #f5ba29;
    outline: none;
    transform: translateY(-4px);
}

.site-footer-social-link svg { width: 17px; height: 17px; }

/* Shared footer layout dependencies, scoped to the contact/footer only. */
.contact-section {
    z-index: 5;
    scroll-margin-top: calc(var(--header-flow-height) + 24px);
}

.contact-section .contact-grid {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding-inline: var(--page-gutter);
}

.contact-section .pn-dots {
    position: absolute;
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

.contact-section .portfolio-new-kicker {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    font-weight: 700;
}

.contact-section .portfolio-new-kicker span {
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    letter-spacing: 0;
}

.contact-section .contact-copy h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.055em;
}

/* Match the Start a Project label to the speech-bubble style used by What I Build. */
.contact-section .portfolio-new-kicker {
    position: relative;
    width: fit-content;
    min-height: 68px;
    gap: 18px;
    margin-bottom: 0;
    padding: 10px 22px 10px 14px;
    border-radius: 50px;
    background: #fff;
    color: rgba(17,17,17,.62);
    font-size: clamp(16px, .72vw, 20px);
    letter-spacing: .18em;
    box-shadow: inset 0 0 0 1px rgba(17,17,17,.04);
}

.contact-section .portfolio-new-kicker::before {
    content: "";
    position: absolute;
    left: 42px;
    bottom: -9px;
    width: 18px;
    height: 18px;
    border-radius: 0 0 0 4px;
    border-left: 1px solid rgba(17,17,17,.05);
    border-bottom: 1px solid rgba(17,17,17,.05);
    background: #fff;
    transform: rotate(45deg);
}

.contact-section .portfolio-new-kicker::after,
.contact-section .portfolio-new-kicker span::after {
    display: none;
}

.contact-section .portfolio-new-kicker span {
    z-index: 1;
    width: 50px;
    height: 50px;
    border: 0;
    background: #fff;
    color: #111;
    font-size: 17px;
    box-shadow: 0 3px 10px rgba(17,17,17,.05), inset 0 0 0 1px rgba(17,17,17,.08);
}

@media (max-width: 1080px) {
    .contact-section .contact-copy {
        grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
        gap: 34px;
    }

    .contact-section .contact-channels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .contact-section .portfolio-new-kicker {
    min-height: 48px;
    gap: 14px;
    padding: 8px 16px 8px 12px;
    height: 48px;
    font-size: 14px;
    }

    .contact-section .portfolio-new-kicker::before {
    left: 35px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    }

    .contact-section .portfolio-new-kicker span {
    width: 35px;
    height: 35px;
    font-size: 13px;
    }
}

@media (max-width: 860px) {
    .contact-section .contact-grid {
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .contact-section .contact-copy,
    .contact-section .contact-channels {
        grid-template-columns: 1fr;
    }

    .contact-section .contact-copy h2 {
        max-width: none;
        font-size: clamp(40px, 13vw, 40px);
    }

    .contact-section .contact-channel {
        padding: 24px 22px;
    }

    .site-footer-inner {
        min-height: 0;
        flex-direction: column;
        justify-content: center;
        gap: 18px;
        padding: 28px var(--page-gutter) 82px;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .contact-section .contact-copy h2 {
        font-size: 42px;
    }

    .contact-section .contact-actions {
        display: grid;
    }

    .contact-section .contact-primary,
    .contact-section .contact-secondary {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-section .contact-channel-live .contact-channel-label::before {
        animation: none;
    }
}



/* Current page state: Concept 04, dark active pill with a gold accent ring. */
.primary-nav .nav-pill[aria-current="page"] {
    position: relative;
    gap: 10px;
    color: #fff;
    background: linear-gradient(180deg, #202020 0%, #111 100%);
    box-shadow: 0 7px 18px rgba(17,17,17,.16), inset 0 0 0 1px rgba(255,255,255,.04);
}

.primary-nav .nav-pill[aria-current="page"]::after {
    content: "";
    order: -1;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border: 3px solid #f5ba29;
    border-radius: 50%;
    box-sizing: border-box;
}

.primary-nav .nav-pill[aria-current="page"]:hover {
    color: #fff;
    background: linear-gradient(180deg, #252525 0%, #141414 100%);
    box-shadow: 0 9px 22px rgba(17,17,17,.19), inset 0 0 0 1px rgba(245,186,41,.12);
}

html.layout-narrow-1080 .primary-nav .nav-pill[aria-current="page"] {
    color: #fff;
    background: linear-gradient(180deg, #202020 0%, #111 100%);
    border-color: rgba(245,186,41,.18);
}

html.layout-narrow-1080 .primary-nav .nav-pill[aria-current="page"]::after {
    order: 2;
    margin-left: auto;
}
/* ---------------------------------------------------------------
   Small global Coming Soon notice for navigation items that do not
   have a public page yet.
   --------------------------------------------------------------- */
.portfolio-coming-soon-notice {
    position: fixed;
    top: calc(var(--header-flow-height) + 18px);
    left: 50%;
    z-index: 100001;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: calc(100vw - 28px);
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(17,17,17,.96);
    color: #fff;
    box-shadow: 0 12px 34px rgba(17,17,17,.18);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px) scale(.98);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.portfolio-coming-soon-notice::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #f5ba29;
    box-shadow: 0 0 0 4px rgba(245,186,41,.12);
}

.portfolio-coming-soon-notice.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
}

/* ---------------------------------------------------------------
   Global copy attribution toast
   Appears only after a 60+ character text selection is copied.
   --------------------------------------------------------------- */
.portfolio-copy-notice {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(360px, calc(100vw - 28px));
    padding: 11px 14px;
    border: 1px solid rgba(17, 17, 17, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    color: #111;
    box-shadow: 0 12px 34px rgba(17, 17, 17, .16);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.01em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(.98);
    transform-origin: right bottom;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.portfolio-copy-notice.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.portfolio-copy-notice-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 50%;
    background: #f5ba29;
    color: #111;
}

.portfolio-copy-notice-icon svg {
    width: 16px;
    height: 16px;
}

.portfolio-copy-notice-text {
    display: block;
}

@media (max-width: 520px) {
    .portfolio-copy-notice {
        right: 12px;
        bottom: 78px;
        max-width: calc(100vw - 24px);
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-copy-notice {
        transition: none;
    }
}


/* ===================================================================
   LIVE CHAT UPGRADE
   Adds WhatsApp + persistent AJAX live chat without changing page layout.
   =================================================================== */
.portfolio-chat-panel [hidden] { display: none !important; }

.portfolio-chat-head {
    position: relative;
    grid-template-columns: 48px minmax(0, 1fr);
    padding-right: 80px;
}

.portfolio-chat-head-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.portfolio-chat-expand {
    appearance: none;
    border: 1px solid rgba(17,17,17,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 10px;
    background: #fff9e9;
    color: #111;
    font: inherit;
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(245,186,41,.08);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.portfolio-chat-expand:hover,
.portfolio-chat-expand:focus-visible {
    background: #fff3cf;
    box-shadow: 0 0 0 4px rgba(245,186,41,.13);
    outline: none;
    transform: translateY(-1px);
}

.portfolio-chat-expand svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portfolio-chat-choice,
.portfolio-live-chat,
.portfolio-chat-history {
    min-width: 0;
}

.portfolio-chat-channel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.portfolio-chat-channel-grid .portfolio-chat-send {
    min-width: 0;
    padding: 0 10px;
    white-space: nowrap;
}

.portfolio-chat-live {
    background: #f5ba29;
    color: #111;
}

.portfolio-chat-live:hover,
.portfolio-chat-live:focus-visible {
    background: #ffc83d;
}

.portfolio-chat-expand-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 1px 0 0;
    color: #777771;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

.portfolio-chat-expand-note span {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff4d4;
    color: #8a6100;
    font-size: 10px;
    font-weight: 700;
}

.portfolio-chat-history-shortcut {
    padding: 4px 4px 0;
    text-align: center;
}

.portfolio-chat-history-shortcut button,
.portfolio-live-actions button,
.portfolio-chat-history-head button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #6e6e69;
    font: inherit;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.portfolio-live-chat {
    display: flex;
    min-height: 380px;
    flex-direction: column;
    padding: 2px 4px 2px;
}

.portfolio-live-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 7px 10px;
    border-bottom: 1px solid rgba(17,17,17,.07);
}

.portfolio-live-meta > div {
    display: grid;
    gap: 2px;
}

.portfolio-live-meta > div span {
    color: #888780;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 650;
}

.portfolio-live-meta > div strong {
    color: #111;
    font-size: 11px;
    letter-spacing: .015em;
}

.portfolio-live-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eaf8ef;
    color: #187344;
    font-size: 9.5px;
    font-weight: 650;
}

.portfolio-live-status::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #21c16b;
}

.portfolio-live-status.is-ended {
    background: #f2f1ed;
    color: #777771;
}

.portfolio-live-status.is-ended::before { background: #9a9993; }

.portfolio-live-messages {
    display: flex;
    min-height: 250px;
    max-height: 315px;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 14px 5px 10px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d2cec3 transparent;
}

.portfolio-live-messages:empty::before {
    content: "Start the conversation. Your messages will stay here even if you reload the page.";
    display: block;
    width: min(250px, 90%);
    margin: auto;
    color: #8c8b84;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

.portfolio-chat-message {
    display: flex;
    max-width: 86%;
    flex-direction: column;
    gap: 3px;
    align-self: flex-start;
}

.portfolio-chat-message.is-client { align-self: flex-end; }

.portfolio-chat-bubble {
    padding: 9px 11px;
    border-radius: 13px 13px 13px 4px;
    background: #f0efeb;
    color: #171715;
    font-size: 14px;
    line-height: 1.48;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.portfolio-chat-message.is-client .portfolio-chat-bubble {
    border-radius: 13px 13px 4px 13px;
    background: #111;
    color: #fff;
}

.portfolio-chat-message.is-auto .portfolio-chat-bubble {
    background: #fff7df;
    box-shadow: inset 0 0 0 1px rgba(245,186,41,.3);
}

.portfolio-chat-message-meta {
    padding: 0 3px;
    color: #96958f;
    font-size: 8.5px;
    line-height: 1.2;
}

.portfolio-chat-message.is-client .portfolio-chat-message-meta { text-align: right; }

.portfolio-chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
    margin: 0 5px 7px;
    padding: 9px 12px;
    border-radius: 13px 13px 13px 4px;
    background: #f0efeb;
}

.portfolio-chat-typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #777771;
    animation: portfolio-chat-typing 1s infinite ease-in-out;
}

.portfolio-chat-typing span:nth-child(2) { animation-delay: .13s; }
.portfolio-chat-typing span:nth-child(3) { animation-delay: .26s; }

@keyframes portfolio-chat-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: .45; }
    30% { transform: translateY(-3px); opacity: 1; }
}

.portfolio-chat-error {
    margin: 0 5px 7px;
    padding: 8px 10px;
    border: 1px solid #efcccc;
    border-radius: 10px;
    background: #fff3f3;
    color: #a03b3b;
    font-size: 9.5px;
    line-height: 1.4;
}

.portfolio-live-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 7px;
    align-items: end;
    padding: 8px 2px 5px;
    border-top: 1px solid rgba(17,17,17,.07);
}

.portfolio-live-composer textarea {
    width: 100%;
    min-height: 38px;
    max-height: 94px;
    resize: vertical;
    border: 1px solid rgba(17,17,17,.1);
    border-radius: 11px;
    padding: 9px 10px;
    background: #fafaf8;
    color: #111;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
}

.portfolio-live-composer textarea:focus {
    border-color: rgba(17,17,17,.25);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(17,17,17,.04);
}

.portfolio-live-composer > button {
    appearance: none;
    border: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #f5ba29;
    color: #111;
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease;
}

.portfolio-live-composer > button:hover { background: #ffc83d; transform: translateY(-1px); }
.portfolio-live-composer.is-sending { opacity: .68; pointer-events: none; }
.portfolio-live-composer > button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.portfolio-live-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 5px 1px;
}

.portfolio-live-actions button:last-child { color: #a34a4a; }

.portfolio-live-ended {
    margin: 8px 2px 5px;
    padding: 12px;
    border-radius: 12px;
    background: #f4f3ef;
    text-align: center;
}

.portfolio-live-ended p {
    margin: 0 0 9px;
    color: #676761;
    font-size: 10.5px;
    line-height: 1.45;
}

.portfolio-live-ended button {
    appearance: none;
    border: 0;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
}

.portfolio-chat-history {
    padding: 4px;
}

.portfolio-chat-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 5px 11px;
    border-bottom: 1px solid rgba(17,17,17,.07);
}

.portfolio-chat-history-head strong { font-size: 12px; }

.portfolio-chat-history [data-chat-history-list] {
    display: grid;
    gap: 7px;
    max-height: 360px;
    overflow-y: auto;
    padding: 10px 1px 2px;
}

.portfolio-chat-history-item {
    appearance: none;
    border: 1px solid rgba(17,17,17,.08);
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 10px 11px;
    border-radius: 11px;
    background: #fafaf8;
    color: #111;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.portfolio-chat-history-item:hover { background: #fff8e7; border-color: rgba(245,186,41,.42); }
.portfolio-chat-history-item strong { font-size: 10.5px; }
.portfolio-chat-history-item span { color: #83827c; font-size: 9px; }
.portfolio-chat-history-empty { margin: 12px 5px; color: #84837d; font-size: 10.5px; text-align: center; }

.portfolio-chat.has-unread .portfolio-chat-toggle::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #f5ba29;
    box-shadow: 0 2px 8px rgba(17,17,17,.18);
}

.portfolio-chat-toggle { position: relative; }

html.portfolio-chat-fullscreen,
html.portfolio-chat-fullscreen body,
body.portfolio-chat-fullscreen {
    overflow: hidden !important;
}

.portfolio-chat.is-expanded {
    inset: 0;
    z-index: 99999;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: block;
    pointer-events: none;
}

.portfolio-chat.is-expanded .portfolio-chat-panel {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transform: none;
    transform-origin: center;
    pointer-events: auto;
}

.portfolio-chat.is-expanded .portfolio-chat-head {
    flex: 0 0 auto;
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 4px 92px 14px 4px;
    border-bottom: 1px solid rgba(17,17,17,.07);
}

.portfolio-chat.is-expanded .portfolio-chat-avatar {
    width: 52px;
    height: 52px;
}

.portfolio-chat.is-expanded .portfolio-chat-head-copy strong { font-size: 17px; }
.portfolio-chat.is-expanded .portfolio-chat-head-copy span { font-size: 12px; }
.portfolio-chat.is-expanded .portfolio-chat-toggle { display: none; }

.portfolio-chat.is-expanded .portfolio-live-chat,
.portfolio-chat.is-expanded .portfolio-chat-history,
.portfolio-chat.is-expanded .portfolio-chat-choice {
    flex: 1 1 auto;
    min-height: 0;
}

.portfolio-chat.is-expanded .portfolio-live-chat {
    height: 100%;
    padding: 8px 4px 2px;
}

.portfolio-chat.is-expanded .portfolio-live-meta {
    flex: 0 0 auto;
    padding: 10px 8px 12px;
}

.portfolio-chat.is-expanded .portfolio-live-messages {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    padding: 20px clamp(6px, 3vw, 42px) 14px;
}

.portfolio-chat.is-expanded .portfolio-chat-message {
    max-width: min(760px, 78%);
}

.portfolio-chat.is-expanded .portfolio-chat-bubble {
    padding: 12px 14px;
    font-size: 14px;
}

.portfolio-chat.is-expanded .portfolio-chat-message-meta { font-size: 10px; }
.portfolio-chat.is-expanded .portfolio-chat-typing { margin-left: clamp(6px, 3vw, 42px); }
.portfolio-chat.is-expanded .portfolio-chat-error { margin: 0 clamp(6px, 3vw, 42px) 8px; font-size: 11px; }

.portfolio-chat.is-expanded .portfolio-live-composer {
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) 50px;
    gap: 10px;
    padding: 12px clamp(4px, 2vw, 28px) 7px;
}

.portfolio-chat.is-expanded .portfolio-live-composer textarea {
    min-height: 50px;
    max-height: 160px;
    padding: 14px 15px;
    border-radius: 14px;
    font-size: 14px;
}

.portfolio-chat.is-expanded .portfolio-live-composer > button {
    width: 50px;
    height: 50px;
    border-radius: 14px;
}

.portfolio-chat.is-expanded .portfolio-live-actions {
    flex: 0 0 auto;
    padding: 6px clamp(8px, 2vw, 30px) 2px;
}

.portfolio-chat.is-expanded .portfolio-chat-choice,
.portfolio-chat.is-expanded .portfolio-chat-history {
    width: min(900px, 100%);
    margin: 0 auto;
    overflow-y: auto;
    padding-top: 18px;
}

.portfolio-chat.is-expanded .portfolio-chat-intro { font-size: 15px; }
.portfolio-chat.is-expanded .portfolio-chat-form textarea { min-height: 180px; }
.portfolio-chat.is-expanded .portfolio-chat-history [data-chat-history-list] { max-height: none; }

@media (max-width: 620px) {
    .portfolio-chat-expand { width: 32px; padding: 0; justify-content: center; }
    .portfolio-chat-channel-grid { grid-template-columns: 1fr; }
    .portfolio-chat.is-expanded .portfolio-chat-panel {
        padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    }
    .portfolio-chat.is-expanded .portfolio-chat-head {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 8px;
        padding: 0 80px 10px 0;
    }
    .portfolio-chat.is-expanded .portfolio-chat-avatar { width: 44px; height: 44px; }
    .portfolio-chat.is-expanded .portfolio-chat-head-copy strong { font-size: 15px; }
    .portfolio-chat.is-expanded .portfolio-chat-head-copy span { font-size: 10.5px; }
    .portfolio-chat.is-expanded .portfolio-live-messages { padding-inline: 4px; }
    .portfolio-chat.is-expanded .portfolio-chat-message { max-width: 88%; }
    .portfolio-chat.is-expanded .portfolio-live-composer { padding-inline: 0; }
    .portfolio-chat.is-expanded .portfolio-live-actions { padding-inline: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-chat-typing span { animation: none; }
}
.portfolio-chat .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
