@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #00b894;
    --text-dark: #444444;
    --text-grey: #737373;
    --text-light: #CCCCCC;
    /* Pill nav: softer than #1a1a1a, stronger than body text — tweak here */
    --pill-nav-bg: #2e2e2e;
    --transition-time: all 0.2s ease-in-out;
    --font-bold: 700;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var( --text-dark);
    font-size: 18px;
}

/*/////////////////////
Globals
///////////////////////*/

hr {
    border: none;
    height: 1px;
    color: var(--text-grey);
    background-color: var(--text-grey);
}

#fader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: none;
    background: #FFFFFF;
    animation-duration: 600ms;
    animation-timing-function: ease-in-out;
}

@keyframes fade-out {
    from {
        opacity: 1
    }
    to {
        opacity: 0
    }
}

@keyframes fade-in {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

#fader.fade-out {
    opacity: 0;
    animation-name: fade-out;
}

#fader.fade-in {
    opacity: 1;
    animation-name: fade-in;
}

.container {
    max-width: 1920px;
    padding: 0rem 5vw;
    overflow: hidden;
}

a, a:hover {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.space-sm {
    margin: 3rem 0;
}

.space-md {
    padding: 4rem 0;
}

.space-lg {
    padding: 8rem 0;
}

.space-top {
    padding-top: 2rem;
}

.space-bottom {
    margin-bottom: 2rem;
}

.space-top-lg {
    padding-top: 8rem;
}

.space-bottom-lg {
    margin-bottom: 8rem;
}

.space-top-sm {
    margin-bottom: 1rem;
}

.space-bottom-sm {
    margin-bottom: 1rem;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: var( --font-bold);
    line-height: 1.5em;
    margin-bottom: 0.5rem;
}

.headline-big {
    font-size: 3.5rem;
    font-weight: var(--font-bold);
    padding-bottom: 0.2em;
    line-height: 1.2em;
    color: var(--text-dark);
}

.subtitle {
    font-size: 2.5rem;
    line-height: 1.2em;
    font-weight: 300;
}

/*/////////////////////
Navigation
///////////////////////*/

.navbar {
    margin: 0 auto;
    padding: 2rem 5vw;
}

.text-next {
    color: var(--text-dark);
}

.nav-item {
    padding-left: 20px;
}

.social-icon {
    padding: 10px 20px 10px 0;
    font-size: 22px;
    color: var(--text-dark);
}

.corner-round {
    border-radius: 1em;
}

.navbar-brand, .nav-item, .text-next, .social-icon, .img-next {
    -webkit-transition: var(--transition-time);
    -moz-transition: var(--transition-time);
    -o-transition: var(--transition-time);
    transition: var(--transition-time);
}

.nav-item:hover, .navbar-brand:hover, .text-next:hover, .social-icon:hover, .img-next:hover {
    opacity: 0.7;
}

.navbar-light .navbar-nav .nav-link, .navbar-light .navbar-brand {
    color: var(--text-dark);
    font-weight: var( --font-bold);
    font-size: 1em;
}

.sidebar {
    position: fixed;
    padding: 5em 0;
    background: #ffffff;
    color: var(--text-light);
}

.anchor {
    display: block;
    color: var(--text-light);
    line-height: 2;
}

.anchor:hover, .sidebar-highlight {
    color: var(--primary-color);
}

.smart-scroll {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
}

.scrolled-down {
    transform: translateY(-100%);
    transition: all 0.3s ease-in-out;
}

.scrolled-up {
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}

/*/////////////////////
Home
///////////////////////*/

.header-text {
    width: 720px;
    color: var(--text-grey);
}

.header-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.35rem;
}

#index-page .header-body {
    margin-top: 0;
    margin-bottom: 1.75rem;
}

#index-page .header-cta {
    margin-top: 0;
}

/* Index: full-page grid (behind content), cream base */
body#index-page {
    position: relative;
    background-color: #f5f4f0;
}

body#index-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(68, 68, 68, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(68, 68, 68, 0.07) 1px, transparent 1px);
    background-size: 72px 72px;
}

/* Pill bar is fixed and must stack above .container; exclude it from this layer.
   SimpleLightbox appends .sl-overlay / .sl-wrapper / .sl-spinner as body children — do not
   pin them to z-index:1 or the scrim sits under the pill nav and looks missing. */
body#index-page > :not(#fader):not(.index-pill-nav-wrap):not(.sl-overlay):not(.sl-wrapper):not(.sl-spinner) {
    position: relative;
    z-index: 1;
}

/* Case study / detail pages: same fixed pill nav as index */
body.site-detail {
    padding-top: 8rem;
}

/* In-page / hash scroll: keep headings below fixed pill (matches body padding) */
html:has(body.site-detail) {
    scroll-padding-top: 8rem;
}

body.site-detail > :not(#fader):not(.index-pill-nav-wrap):not(.sl-overlay):not(.sl-wrapper):not(.sl-spinner) {
    position: relative;
    z-index: 1;
}

@keyframes index-landing-waterfall {
    from {
        opacity: 0;
        transform: translateY(1.35rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Landing hero: green glow (grid is on body) */
#index-page .index-landing {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    padding-bottom: clamp(5rem, 14vh, 10rem);
    background-color: transparent;
    background-image: radial-gradient(
        ellipse 130% 90% at 50% -15%,
        rgba(0, 184, 148, 0.28) 0%,
        transparent 58%
    );
}

:is(#index-page, body.site-detail) .index-pill-nav-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding-top: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
}

:is(#index-page, body.site-detail) .index-pill-nav-wrap .index-pill-nav {
    position: relative;
    pointer-events: auto;
    font-family: 'Inter', sans-serif;
}

:is(#index-page, body.site-detail) .index-pill-nav__inner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.4rem 0.4rem;
    background: var(--pill-nav-bg);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: index-landing-waterfall 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

:is(#index-page, body.site-detail) .index-pill-nav__link {
    display: inline-block;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #f0f0f0;
    text-decoration: none;
    border-radius: 999px;
    background-color: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

/* Index pill: Work / About / Connect — home never highlighted; top = none */
#index-page[data-index-nav="work"] .index-pill-nav__link[href="#portfolio"],
#index-page[data-index-nav="about"] .index-pill-nav__link[href="#about"],
#index-page[data-index-nav="connect"] .index-pill-nav__link[href="#connect-end"] {
    background-color: var(--primary-color);
    color: #fff;
    border-color: transparent;
}

#index-page[data-index-nav="top"] .index-pill-nav__link[href="#portfolio"],
#index-page[data-index-nav="top"] .index-pill-nav__link[href="#about"],
#index-page[data-index-nav="top"] .index-pill-nav__link[href="#connect-end"],
#index-page[data-index-nav="work"] .index-pill-nav__link[href="#about"],
#index-page[data-index-nav="work"] .index-pill-nav__link[href="#connect-end"],
#index-page[data-index-nav="about"] .index-pill-nav__link[href="#portfolio"],
#index-page[data-index-nav="about"] .index-pill-nav__link[href="#connect-end"],
#index-page[data-index-nav="connect"] .index-pill-nav__link[href="#portfolio"],
#index-page[data-index-nav="connect"] .index-pill-nav__link[href="#about"] {
    background-color: transparent;
    color: #f0f0f0;
}

:is(#index-page, body.site-detail) .index-pill-nav__link--home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.15rem;
}

:is(#index-page, body.site-detail) .index-pill-nav__link--home img {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 4px;
    object-fit: cover;
}

:is(#index-page, body.site-detail) .index-pill-nav-wrap .index-pill-nav__inner .index-pill-nav__link:hover {
    background-color: rgba(255, 255, 255, 0.14);
    color: #f0f0f0;
    opacity: 1;
}

#index-page[data-index-nav="work"] .index-pill-nav-wrap .index-pill-nav__inner .index-pill-nav__link[href="#portfolio"]:hover,
#index-page[data-index-nav="about"] .index-pill-nav-wrap .index-pill-nav__inner .index-pill-nav__link[href="#about"]:hover,
#index-page[data-index-nav="connect"] .index-pill-nav-wrap .index-pill-nav__inner .index-pill-nav__link[href="#connect-end"]:hover {
    background-color: #00cca4;
    color: #fff;
}

:is(#index-page, body.site-detail) .index-pill-nav__link:focus {
    outline: none;
}

:is(#index-page, body.site-detail) .index-pill-nav__link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

#index-page .index-landing__hero {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 6.5rem 5vw clamp(3rem, 8vw, 5rem);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

#index-page .index-landing__hero-inner {
    width: 100%;
    max-width: 100%;
    container-type: inline-size;
}

#index-page .index-landing .index-hero__name-part + .index-hero__name-part::before {
    content: ' ';
}

#index-page .index-landing .index-hero__name {
    font-family: 'Inter', sans-serif;
    font-size: clamp(4.25rem, 18vw, 12rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    margin: 0 0 0.75rem;
    padding: 0;
    max-width: none;
    width: 100%;
    color: var(--text-dark);
    font-weight: 700;
    animation: index-landing-waterfall 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

#index-page .index-landing .index-hero__blurb {
    max-width: 540px;
    margin: 0 0 0.75rem;
    animation: index-landing-waterfall 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

/* Intro copy: same size/leading as hero blurb */
#index-page .index-landing .index-hero__blurb,
#index-page .index-about__lede,
#index-page .index-about__body,
#index-page .index-life-outside__deck {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--text-grey);
}

#index-page .index-landing .index-hero__contact {
    margin-top: 0;
    font-size: 1.2rem;
    animation: index-landing-waterfall 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
}

@media (prefers-reduced-motion: reduce) {
    :is(#index-page, body.site-detail) .index-pill-nav__inner,
    #index-page .index-landing .index-hero__blurb,
    #index-page .index-landing .index-hero__name,
    #index-page .index-landing .index-hero__contact {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* About: decorative reCAPTCHA-style visual + Inter copy */
#index-page .index-about {
    position: relative;
    z-index: 2;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    padding: clamp(5.5rem, 14vw, 9.5rem) 5vw clamp(2.5rem, 7vw, 4.5rem);
    scroll-margin-top: calc(5.5rem - 100px);
}

#index-page .index-about__inner {
    max-width: 1220px;
    margin: 0 auto;
}

#index-page .index-about__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: max(2em, clamp(1rem, 2.5vw, 1.75rem));
    justify-content: flex-start;
}

#index-page .index-about__col--visual {
    flex: 1 1 240px;
    max-width: min(100%, 480px);
}

#index-page .index-about__col--text {
    flex: 1 1 300px;
    min-width: min(100%, 260px);
    max-width: 540px;
    margin-left: auto;
}

/* Wide screens: grid so the reCAPTCHA column can hug the text (right side of left track).
   Only enabled once the viewport is wide enough to fit captcha + the large gap + text;
   below this the flexbox layout (small gap, then stacking) keeps the panel from clipping. */
@media (min-width: 1200px) {
    #index-page .index-about__row--top {
        display: grid;
        grid-template-columns: minmax(0, 480px) minmax(min(100%, 260px), 540px);
        align-items: center;
        column-gap: max(200px, 2.5rem);
        row-gap: clamp(1rem, 2.5vw, 1.75rem);
    }

    #index-page .index-about__row--top .index-about__col--text {
        margin-left: 0;
    }

    #index-page .index-about__row--top .index-about__col--visual {
        justify-self: end;
    }
}

#index-page .index-about__title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.15rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin: 0 0 clamp(1.15rem, 3vw, 1.85rem);
}

#index-page .index-about__lede {
    margin: 0 0 1.25rem;
}

#index-page .index-about__body {
    margin: 0 0 1.1rem;
}

#index-page .index-about__body:last-child {
    margin-bottom: 0;
}

/* About: reCAPTCHA-style panel (checkbox only is interactive) */
#index-page .index-about-captcha {
    width: min(100%, 480px);
    margin-left: auto;
    margin-right: 0;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #202124;
}

#index-page .index-about-captcha__chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.5rem;
    background: #fafafa;
    border: 1px solid #d3d3d3;
    border-radius: 7px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#index-page .index-about-captcha__robot-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

#index-page .index-about-captcha__checkbox-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#index-page .index-about-captcha__robot-row:focus-within .index-about-captcha__checkbox-faux {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

#index-page .index-about-captcha__checkbox-faux {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 2px solid #c4c4c4;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.35s cubic-bezier(0.34, 1.45, 0.64, 1);
}

#index-page .index-about-captcha__spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.85);
    transition:
        opacity 0.15s ease,
        width 0.2s ease,
        height 0.2s ease,
        margin 0.2s ease,
        left 0.2s ease,
        top 0.2s ease;
}

/* Spinner replaces the whole checkbox slot (no empty box) while verifying */
#index-page .index-about-captcha__robot-row--verifying .index-about-captcha__spinner {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-width: 3px;
    border-color: rgba(0, 0, 0, 0.06);
    border-top-color: var(--primary-color);
    opacity: 1;
    transform: none;
    animation: index-about-captcha-spin 0.65s linear infinite;
}

#index-page .index-about-captcha__robot-row--verified .index-about-captcha__spinner {
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-width: 2px;
    opacity: 0;
    animation: none;
    transform: scale(0.85);
    transition: opacity 0.12s ease, transform 0.12s ease, width 0.15s ease, height 0.15s ease, margin 0.15s ease, left 0.15s ease, top 0.15s ease;
}

@keyframes index-about-captcha-spin {
    to {
        transform: rotate(360deg);
    }
}

#index-page .index-about-captcha__robot-row--verifying .index-about-captcha__checkbox-faux {
    border: none;
    background: transparent;
    box-shadow: none;
    transform: none;
    overflow: visible;
}

#index-page .index-about-captcha__robot-row--verifying:focus-within .index-about-captcha__checkbox-faux {
    outline: none;
}

/* Verified / checked: solid brand green (no gradient), like reCAPTCHA after load */
#index-page .index-about-captcha__robot-row--verified .index-about-captcha__checkbox-faux,
#index-page .index-about-captcha__checkbox-input:checked + .index-about-captcha__checkbox-faux {
    border-radius: 6px;
    border: 2px solid transparent;
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 184, 148, 0.4);
    transform: scale(1.06);
    overflow: hidden;
}

#index-page .index-about-captcha__checkbox-faux::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 48%;
    width: 6px;
    height: 11px;
    margin: -6px 0 0 -3px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    box-sizing: border-box;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.42s cubic-bezier(0.34, 1.55, 0.64, 1);
}

#index-page .index-about-captcha__robot-row--verified .index-about-captcha__checkbox-faux::after,
#index-page .index-about-captcha__checkbox-input:checked + .index-about-captcha__checkbox-faux::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

#index-page .index-about-captcha__robot-row--verifying .index-about-captcha__checkbox-faux::after {
    opacity: 0;
    transform: rotate(45deg) scale(0);
    transition: opacity 0.1s ease, transform 0.1s ease;
}

#index-page .index-about-captcha__checkbox-copy {
    font-size: 0.95rem;
    color: #262626;
    user-select: none;
    transition: color 0.2s ease;
}

@media (hover: hover) {
    #index-page .index-about-captcha__robot-row:not(.index-about-captcha__robot-row--verifying):hover .index-about-captcha__checkbox-input:not(:checked) + .index-about-captcha__checkbox-faux {
        border-color: #5f6368;
        background: #f1f3f4;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    #index-page .index-about-captcha__robot-row--verified:hover .index-about-captcha__checkbox-faux,
    #index-page .index-about-captcha__robot-row:hover .index-about-captcha__checkbox-input:checked + .index-about-captcha__checkbox-faux {
        box-shadow: 0 4px 18px rgba(0, 184, 148, 0.45);
        transform: scale(1.08);
    }

    #index-page .index-about-captcha__robot-row:hover .index-about-captcha__checkbox-copy {
        color: #111;
    }
}

@media (prefers-reduced-motion: reduce) {
    #index-page .index-about-captcha__checkbox-faux,
    #index-page .index-about-captcha__checkbox-faux::after {
        transition: none;
    }

    #index-page .index-about-captcha__robot-row--verifying .index-about-captcha__spinner {
        animation: none;
        opacity: 1;
        transform: none;
    }

    #index-page .index-about-captcha__robot-row--verified .index-about-captcha__checkbox-faux,
    #index-page .index-about-captcha__checkbox-input:checked + .index-about-captcha__checkbox-faux {
        transform: none;
    }

    #index-page .index-about-captcha__robot-row--verified .index-about-captcha__checkbox-faux::after,
    #index-page .index-about-captcha__checkbox-input:checked + .index-about-captcha__checkbox-faux::after {
        transform: rotate(45deg) scale(1);
    }

    @media (hover: hover) {
        #index-page .index-about-captcha__robot-row--verified:hover .index-about-captcha__checkbox-faux,
        #index-page .index-about-captcha__robot-row:hover .index-about-captcha__checkbox-input:checked + .index-about-captcha__checkbox-faux {
            transform: none;
        }
    }
}

#index-page .index-about-captcha__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.55rem;
    line-height: 1.1;
    color: #5f6368;
}

#index-page .index-about-captcha__brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: conic-gradient(from 180deg at 50% 50%, #4285f4 0deg, #ea4335 120deg, #fbbc04 200deg, #34a853 280deg, #4285f4 360deg);
    opacity: 0.9;
}

#index-page .index-about-captcha__brand-text {
    font-size: 0.5rem;
    letter-spacing: 0.02em;
}

#index-page .index-about-captcha__panel {
    background: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

#index-page .index-about-captcha__header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.85rem 0.75rem 0.65rem;
    border-bottom: 1px solid #e8eaed;
    text-align: left;
}

#index-page .index-about-captcha__instruction {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #202124;
    text-align: left;
}

#index-page .index-about-captcha__sample {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    margin-left: auto;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: #f1f3f4;
    box-shadow: none;
}

#index-page .index-about-captcha__sample img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#index-page .index-about-captcha__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #202124;
}

#index-page .index-about-captcha__cell {
    aspect-ratio: 1;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    pointer-events: none;
    background: #000;
}

#index-page .index-about-captcha__cell img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#index-page .index-about-captcha__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.65rem 0.65rem;
    border-top: 1px solid #e8eaed;
    background: #fff;
}

#index-page .index-about-captcha__icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #5f6368;
    font-size: 1.15rem;
}

#index-page .index-about-captcha__icon {
    opacity: 0.85;
}

#index-page .index-about-captcha__icon-svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
}

#index-page .index-about-captcha__verify {
    padding: 0.45rem 1.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: #1a73e8;
    border: none;
    border-radius: 3px;
    cursor: default;
    opacity: 0.85;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

#index-page .index-about-captcha__verify:disabled {
    opacity: 0.75;
}

@media (min-width: 500px) {
    #index-page .index-about__col--visual {
        max-width: 480px;
        flex: 1 1 300px;
    }

    #index-page .index-about-captcha {
        width: min(100%, 480px);
    }
}

@media only screen and (max-width: 769px) {
    #index-page .index-about__col--visual,
    #index-page .index-about__col--text {
        margin-left: auto;
        margin-right: auto;
    }

    #index-page .index-about__row--top .index-about__col--text {
        margin-top: max(2em, clamp(1.5rem, 6vw, 2.75rem));
    }

    #index-page .index-about-captcha {
        margin-right: auto;
    }

    #index-page .index-life-outside {
        padding-top: clamp(2.5rem, 9vw, 4rem);
    }
}

@media only screen and (max-width: 499px) {
    #index-page .index-about__col--visual {
        max-width: min(100%, 380px);
    }
}

/* Connect: kicker + marquee + “Get in touch” on mirrored hero glow */
#index-page .index-life-outside {
    position: relative;
    z-index: 2;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    padding: clamp(0.75rem, 2.5vw, 1.35rem) 0 0;
    scroll-margin-top: 5.5rem;
    background-color: transparent;
    background-image: radial-gradient(
        ellipse 130% 90% at 50% 115%,
        rgba(0, 184, 148, 0.28) 0%,
        transparent 58%
    );
    color: inherit;
}

#index-page .index-life-outside__kicker {
    font-family: 'Inter', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--text-dark);
    text-align: center;
    margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
    max-width: 36rem;
    padding: 0 clamp(1rem, 4vw, 1.5rem);
}

#index-page .index-life-outside__gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-flow: dense;
    gap: clamp(0.4rem, 1vw, 0.75rem);
    width: 100%;
    max-width: 1920px;
    padding: 0 5vw;
    margin: 0 auto;
    box-sizing: border-box;
}

#index-page .index-life-outside__tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#index-page .index-life-outside__tile--feature {
    grid-column: span 2;
    grid-row: span 2;
}

#index-page .index-life-outside__tile--feature-wide {
    grid-column: 3 / -1;
    grid-row: span 2;
    aspect-ratio: 3 / 2;
}

@media (max-width: 991px) {
    #index-page .index-life-outside__gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    #index-page .index-life-outside__tile--feature-wide {
        grid-column: 2 / -1;
    }
}

@media (max-width: 769px) {
    #index-page .index-life-outside__gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    #index-page .index-life-outside__tile--feature-wide {
        grid-column: 1 / -1;
    }
}

#index-page .index-life-outside__tile:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

#index-page .index-life-outside__tile picture {
    display: block;
    width: 100%;
    height: 100%;
}

#index-page .index-life-outside__tile img,
#index-page .index-life-outside__tile video,
#index-page .index-life-outside__tile iframe {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

#index-page .index-life-outside__tile--feature-wide iframe {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 118.6%;
    transform: none;
}

#index-page .index-life-outside__tile-badge {
    position: absolute;
    left: 0.6rem;
    bottom: 0.6rem;
    margin: 0;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.72rem, 1.4vw, 0.88rem);
}

#index-page .index-life-outside__tile:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

#index-page .index-life-outside__copy {
    max-width: 56rem;
    width: 100%;
    margin: clamp(1.5rem, 5vw, 2.5rem) auto 0;
    text-align: center;
    padding: clamp(3.5rem, 11vw, 6.5rem) clamp(1.25rem, 5vw, 2.5rem) clamp(3.75rem, 12vw, 7rem);
    min-height: clamp(440px, 54vh, 680px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#index-page .index-life-outside__deck {
    font-weight: 400;
    margin: 0 0 0.5rem;
    max-width: 36rem;
    padding: 0 clamp(1rem, 4vw, 1.5rem);
}

#index-page .index-life-outside__title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.95rem, 9vw, 5.35rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--text-dark);
    margin: 0 0 1.25rem;
    text-transform: none;
}

#index-page .index-life-outside__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 0.35rem;
    font-size: 1.2rem;
}

#index-page .index-life-outside__contact .footer-text-link {
    font-size: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
    #index-page .index-life-outside__tile {
        transition: none;
    }

    #index-page .index-life-outside__tile:hover {
        transform: none;
    }
}

#index-page .index-page-footer-wrap {
    position: relative;
    z-index: 1;
    margin-top: 0;
    background: transparent;
    overflow: visible;
}

#index-page .index-page-footer {
    text-align: center;
    background: transparent;
    box-shadow: none;
}

#index-page .index-page-footer__line,
body.site-detail .index-page-footer__line {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-grey);
    line-height: 1.6;
}

#index-page .index-portfolio-peek {
    position: relative;
    z-index: 2;
    margin-top: -80px;
    padding-top: 0;
    scroll-margin-top: 5.5rem;
}

#index-page .index-connect-end-anchor {
    height: 1px;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
    scroll-margin-top: 0;
}

#index-page > .container {
    overflow: visible;
}

/* Easter egg: hover "product designer" → strikethrough + joke above */
#index-page .header-role-easter {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    cursor: default;
}

#index-page .header-role-easter__joke {
    position: absolute;
    left: 0;
    bottom: 100%;
    margin-bottom: 0.15em;
    font-weight: var(--font-bold);
    line-height: 1.2;
    white-space: nowrap;
    color: var(--text-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

#index-page .header-role-easter:hover .header-role-easter__joke {
    opacity: 1;
}

#index-page .header-role-easter:hover .header-role-easter__role {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.header-body {
    line-height: 2em;
}

span-color {
    color: var(--primary-color);
}

.text-color-bold {
    color: var(--primary-color);
    font-weight: var(--font-bold);
}

.grid {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: 1fr;
}

.grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#proj-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2em;
}

/* Lock row order on home: cards 1–2 top row, 3–4 second row */
#index-page #proj-gallery > .proj-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

#index-page #proj-gallery > .proj-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

#index-page #proj-gallery > .proj-card:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

#index-page #proj-gallery > .proj-card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

#art-gallery {
    grid-template-columns: repeat(4, 1fr);
}

#art-gallery img:hover {
    opacity: 0.75;
    -webkit-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
}

.proj-label {
    background-color: rgba(0, 184, 148, 0.05);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: .5em .8em;
    font-weight: 400;
    margin-bottom: .5em;
}

.proj-shipped {
    color: var(--text-grey);
}

.card {
    border: none;
    box-shadow: 0 2px 40px 0 #E6E6E6;
    background-color: #FFFFFF;
    overflow: hidden;
    transition: box-shadow .3s ease-out, transform .3s ease-out, opacity .2s ease-out;
    transform: translateY(0);
    border-radius: 1em;
}

.proj-card:hover {
    box-shadow: 0 2px 40px 0 var(--text-light);
    transform: translateY(-.8em);
}

.footer-contact {
    font-size: 1rem;
}

.footer-text-link {
    color: var(--text-dark);
    font-weight: var(--font-bold);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    line-height: inherit;
    transition: color 0.2s ease;
}

.footer-text-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
    opacity: 1;
}

/* No ring after mouse click; keyboard users still get a clear focus indicator */
.footer-text-link:focus {
    outline: none;
}

.footer-text-link:focus-visible {
    outline: 2px solid var(--text-dark);
    outline-offset: 3px;
}

.footer-contact-sep {
    color: var(--text-dark);
    padding: 0 0.45rem;
    user-select: none;
}

.card-body {
    padding: 1.5rem 2rem;
}

.cover-img {
    width: 500px;
}

/*/////////////////////
Project
///////////////////////*/

.bg-grey {
    background-color: #F2F2F2;
}

.text-small {
    font-size: 80%;
}

.text-regular {
    font-weight: 400;
}

strong {
    color: var(--text-dark);
    font-weight: var(--font-bold);
}

.text-highlight-green {
    padding: 10px;
    background-color: #c7f1d4;
}

.text-highlight-red {
    padding: 10px;
    background-color: #ffe8e8;
}

.proj-body {
    line-height: 2em;
    padding-bottom: 12px;
    color: var(--text-grey);
}

/* Lists sit tight under the preceding line of copy */
p.proj-body:has(+ ul.proj-body),
p.proj-body:has(+ ol.proj-body) {
    padding-bottom: 2px;
}

ul.proj-body,
ol.proj-body {
    margin-top: 0;
    margin-bottom: 0;
}

.row + ul.proj-body,
.row + ol.proj-body {
    margin-top: 0;
}

/* Metric tile row → list (Dolphi Impact): trim default heading/body margins */
div.row[role="region"] + ul.proj-body,
div.row[role="region"] + ol.proj-body {
    margin-top: -0.5rem;
}

/* Case study header meta (timeline, links, highlight, etc.) */
body.site-detail .proj-meta {
    --proj-meta-gap: clamp(1.5rem, 4vw, 2.75rem);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--proj-meta-gap);
    row-gap: var(--proj-meta-gap);
    margin-left: 0;
    margin-right: 0;
}

body.site-detail .proj-meta > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

body.site-detail .proj-meta > .col-md-3 {
    grid-column: span 3;
}

body.site-detail .proj-meta > .col-md-6 {
    grid-column: span 6;
}

body.site-detail .proj-meta .text-small {
    display: block;
    margin-bottom: 0.5rem;
}

body.site-detail .proj-meta > [class*="col-"] > p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.55;
}

body.site-detail .proj-meta > [class*="col-"] > p + p {
    margin-top: 0.4rem;
}

@media (max-width: 767.98px) {
    body.site-detail .proj-meta > .col-md-3,
    body.site-detail .proj-meta > .col-md-6 {
        grid-column: span 12;
    }
}

/* Case study metric tiles (stat + caption) */
body.site-detail .row[role="region"],
body.site-detail .proj-metrics {
    column-gap: clamp(1.25rem, 3vw, 2.25rem);
    row-gap: clamp(1.25rem, 3vw, 1.75rem);
}

body.site-detail .row[role="region"] h2,
body.site-detail .proj-metrics h2,
body.site-detail h2:has(+ p.text-small) {
    margin-bottom: 0.75rem;
}

.row[role="region"] .text-small,
body.site-detail .proj-metrics .text-small,
body.site-detail h2 + p.text-small {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.55;
}

.proj-body-box {
    border: 3px solid var(--primary-color);
    padding: 1.1em;
    border-radius: 10px;
    color: var(--primary-color);
    margin: 3em 0;
}

/* Quote-style callout: accent line + body-weight text in body grey (no boxed border) */
.callout-quote {
    margin: 1.25em 0 1.75em;
    padding: 0.35em 0 0.35em 1.25rem;
    border: 0;
    border-left: 4px solid var(--primary-color);
    color: var(--text-grey);
    font-weight: normal;
    font-style: normal;
    line-height: 1.55;
}

/* Customer spotlight: same accent as quote, regular body copy */
.callout-customers {
    margin: 1.25rem 0 1.5rem;
    padding: 0.75rem 0 0.75rem 1.25rem;
    border-left: 4px solid var(--primary-color);
}

.callout-customers-label {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-grey);
    font-weight: 600;
    margin: 0 0 0.65rem;
}

.callout-customers-brand {
    color: var(--text-dark);
    font-weight: var(--font-bold);
}

.proj-caption {
    padding: 1.5em 0;
    text-align: center;
    color: var(--text-grey);
}

.proj-body li {
    margin: 1.1em 0;
}

.proj-body li:first-child {
    margin-top: 0;
}

/* If .space-top is kept on a list, do not add 2rem above first bullet */
ul.proj-body.space-top,
ol.proj-body.space-top {
    padding-top: 0;
}

.proj-link {
    color: var(--primary-color);
}

.proj-link:hover {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

video {
    width: 100%;
}

.proj-phone-vid video,
.proj-phone-vid .img-placeholder {
    width: 100%;
}

.proj-phone {
    position: relative;
    padding-bottom: 177%;
    padding-top: 35px;
    height: 0;
    overflow: hidden;
}

.proj-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.proj-phone iframe, .proj-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.iframe-container {
    overflow: hidden;
    padding-top: 100%;
    position: relative;
}

.iframe-container iframe {
    border: 0;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%
}

.proj-border {
    border: 2px solid #f2f2f2;
}

.proj-btn {
    background-color: var(--text-dark);
    border: none;
    color: white;
    padding: 16px 32px;
    text-align: center;
    margin: 4px 2px;
    opacity: 1;
    transition: 0.3s;
    border-radius: 50px;
}

.proj-btn:hover {
    opacity: 0.8;
}

/* Outline pill — same radius/padding rhythm as .proj-btn; brand green */
.proj-btn-outline__inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.proj-btn-outline__icon {
    font-size: 1.05rem;
    line-height: 1;
}

.proj-btn-outline {
    display: inline-block;
    box-sizing: border-box;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 28px;
    text-align: center;
    margin: 4px 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.3s;
    border-radius: 50px;
    font-weight: var(--font-bold);
    font-size: 1rem;
    line-height: 1.25;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
}

.proj-btn-outline:hover,
.proj-btn-outline:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    opacity: 1;
}

.proj-btn-outline:focus {
    outline: 2px solid var(--text-dark);
    outline-offset: 3px;
}

.icon-sm {
    font-size: 1.3rem;
    margin-right: 10px;
}

.tabs li {
    display: inline-block;
    margin-right: 1em;
}

.tabs li:last-child {
    margin-right: 0
}

.tabs li a {
    font-size: 18px;
    font-weight: 500;
    position: relative;
    line-height: 2.5em;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.tabs li a::after {
    content: '';
    width: 0;
    height: 3px;
    position: absolute;
    bottom: -6px;
    left: 0;
    background: var(--primary-color);
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.tabs li a:hover, .tabs li a.active {
    color: var(--primary-color);
    cursor: pointer;
}

.tabs li a:hover::after, .tabs li a.active::after {
    width: 100%
}

.filter-tab {
    padding: 0 0.5em;
}

/*/////////////////////
Media queries
///////////////////////*/

@media only screen and (max-width: 1200px) {
    .cover-img {
        width: 400px;
    }
}

@media only screen and (max-width: 992px) {
    .navbar-light .navbar-toggler {
        border: 0;
    }
    .nav-item {
        padding-left: 0px;
    }
    .sidebar {
        display: none;
    }
    #art-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .cover-img {
        width: 400px;
    }
    .headline-big {
        font-size: 2.7rem;
    }
    .subtitle {
        font-size: 2.4rem;
    }
    .iframe-container {
        padding-top: 230%
    }
    .header-text {
        width: auto;
    }
}

@media only screen and (max-width: 769px) {
    body {
        font-size: 17px;
    }
    #proj-gallery {
        grid-template-columns: repeat(1, 1fr);
    }

    #index-page .index-portfolio-peek {
        margin-top: -80px;
        padding-top: 0;
    }

    #index-page .index-landing .index-hero__name-part {
        display: block;
        width: 100%;
        white-space: nowrap;
    }

    #index-page .index-landing .index-hero__name-part + .index-hero__name-part::before {
        content: none;
    }

    #index-page .index-landing .index-hero__blurb {
        margin-bottom: clamp(1.5rem, 6vw, 2.25rem);
        font-size: 17px;
    }

    #index-page .index-landing .index-hero__name {
        font-size: clamp(3.75rem, 26cqw, 10rem);
        line-height: 0.9;
        margin-bottom: clamp(1.5rem, 6vw, 2.25rem);
    }

    #index-page .index-about__lede,
    #index-page .index-about__body,
    #index-page .index-life-outside__deck {
        font-size: 17px;
    }

    :is(#index-page, body.site-detail) .index-pill-nav__inner {
        max-width: calc(100vw - 2rem);
        padding: 0.4rem 0.4rem;
    }

    :is(#index-page, body.site-detail) .index-pill-nav__link {
        padding: 0.4rem 0.75rem;
        font-size: 0.82rem;
    }

    :is(#index-page, body.site-detail) .index-pill-nav__link--home {
        padding: 0.42rem 0.95rem;
    }

    #index-page .index-life-outside__copy {
        min-height: clamp(380px, 56vh, 560px);
        padding: clamp(2.75rem, 10vw, 4.5rem) clamp(1.15rem, 4vw, 1.75rem) clamp(3.25rem, 12vw, 5.5rem);
    }

    #index-page #proj-gallery > .proj-card:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    #art-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .cover-img {
        width: 300px;
    }
    .proj-phone-vid {
        width: 100%;
    }

    /* Mobile footer: index centered; case studies left-aligned */
    #index-page .index-page-footer-wrap {
        margin-top: clamp(1.75rem, 6vw, 2.75rem);
    }

    #index-page .index-page-footer {
        padding-top: 0;
        text-align: center;
    }

    #index-page .index-life-outside__contact {
        justify-content: center;
        width: 100%;
    }

    body.site-detail footer.container {
        text-align: left;
    }

    body.site-detail footer.container .row {
        flex-direction: column;
        align-items: flex-start;
        row-gap: clamp(1.75rem, 6vw, 2.75rem);
    }

    body.site-detail footer.container .col-sm-8,
    body.site-detail footer.container .col-sm-4 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        text-align: left;
    }

    body.site-detail footer.container .text-md-right {
        text-align: left !important;
    }

    body.site-detail footer.container .footer-contact {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }
}

@media only screen and (max-width: 440px) {
    :is(#index-page, body.site-detail) .index-pill-nav-wrap {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    :is(#index-page, body.site-detail) .index-pill-nav {
        width: 100%;
    }

    :is(#index-page, body.site-detail) .index-pill-nav__inner {
        display: flex;
        width: 100%;
        max-width: none;
        justify-content: space-between;
        gap: 0.15rem;
        padding: 0.35rem 0.4rem;
    }

    :is(#index-page, body.site-detail) .index-pill-nav__link {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.42rem 0.35rem;
        font-size: 0.8rem;
        text-align: center;
    }

    :is(#index-page, body.site-detail) .index-pill-nav__link--home {
        flex: 0 0 auto;
        padding: 0.42rem 0.85rem;
    }
}