:root {
    --jstudio-ink: #111111;
    --jstudio-ink-soft: #2a2a28;
    --jstudio-paper: #f7f4ef;
    --jstudio-paper-deep: #eee7dc;
    --jstudio-white: #ffffff;
    --jstudio-muted: #706c64;
    --jstudio-line: rgba(17, 17, 17, 0.14);
    --jstudio-line-strong: rgba(17, 17, 17, 0.28);
    --jstudio-clay: #b35c37;
    --jstudio-sage: #87937e;
    --jstudio-blue: #2e4656;
    --jstudio-charcoal: #171614;
    --jstudio-service-marketing: #271512;
    --jstudio-service-presentation: #1b1b1a;
    --jstudio-service-photo: #241c17;
    --jstudio-radius: 6px;
    --jstudio-radius-button: 6px;
    --jstudio-radius-field: 6px;
    --jstudio-radius-card: 8px;
    --jstudio-shell: 1180px;
    --jstudio-space: clamp(72px, 11vw, 152px);
    --jstudio-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Homepage design tokens and scoped reset. */
.jstudio-home {
    overflow: hidden;
    background: var(--jstudio-paper);
    color: var(--jstudio-ink);
    font-family: inherit;
    text-rendering: geometricPrecision;
}

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

.jstudio-home img {
    display: block;
    max-width: 100%;
    height: auto;
}

.jstudio-shell {
    width: min(calc(100% - 40px), var(--jstudio-shell));
    margin-inline: auto;
}

.jstudio-kicker {
    margin: 0;
    color: var(--jstudio-clay);
    font-size: 0.74rem;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Reusable CTA buttons in a sharper editorial studio style. */
.jstudio-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--jstudio-radius-button);
    font-size: 0.94rem;
    font-weight: 760;
    line-height: 1;
    text-decoration: none;
    transition:
        border-color 220ms var(--jstudio-ease),
        background-color 220ms var(--jstudio-ease),
        color 220ms var(--jstudio-ease);
}

.jstudio-button::after {
    content: "->";
    margin-left: 10px;
}

.jstudio-button:hover,
.jstudio-button:focus-visible {
    text-decoration: none;
}

.jstudio-button--dark {
    background: var(--jstudio-ink);
    color: var(--jstudio-white);
}

.jstudio-button--dark:hover,
.jstudio-button--dark:focus-visible {
    border-color: var(--jstudio-charcoal);
    background: var(--jstudio-charcoal);
    color: var(--jstudio-white);
}

.jstudio-button--light {
    border-color: var(--jstudio-line);
    background: rgba(255, 255, 255, 0.5);
    color: var(--jstudio-ink);
}

.jstudio-button--light:hover,
.jstudio-button--light:focus-visible {
    border-color: var(--jstudio-ink);
    background: var(--jstudio-white);
    color: var(--jstudio-ink);
}

.jstudio-button--cream {
    border-color: transparent;
    background: var(--jstudio-paper);
    color: var(--jstudio-ink);
}

.jstudio-button--cream:hover,
.jstudio-button--cream:focus-visible {
    border-color: var(--jstudio-line-strong);
    background: var(--jstudio-white);
    color: var(--jstudio-ink);
}

/* Editorial hero: oversized type, asymmetry and the supplied brand imagery. */
.jstudio-hero {
    position: relative;
    padding: clamp(68px, 8vw, 112px) 0 clamp(76px, 10vw, 142px);
    background:
        linear-gradient(90deg, rgba(17, 17, 17, 0.05) 1px, transparent 1px),
        var(--jstudio-paper);
    background-size: clamp(72px, 12vw, 148px) 100%;
}

.jstudio-hero__layout {
    display: grid;
    gap: clamp(34px, 7vw, 88px);
    align-items: end;
}

.jstudio-hero__copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 980px;
}

.jstudio-hero__title {
    max-width: min(100%, 980px);
    margin: 18px 0 0;
    font-size: clamp(3.375rem, 6vw, 6rem);
    font-weight: 820;
    letter-spacing: 0;
    line-height: 0.94;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-wrap: balance;
}

.jstudio-hero__intro {
    display: grid;
    gap: 20px;
    max-width: 620px;
    margin-top: 28px;
    margin-left: auto;
    padding-left: clamp(0px, 8vw, 90px);
    border-left: 1px solid var(--jstudio-line-strong);
}

.jstudio-hero__intro p,
.jstudio-service p,
.jstudio-point p,
.jstudio-contact__box p {
    margin: 0;
    color: var(--jstudio-muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.72;
}

.jstudio-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.jstudio-hero__media {
    position: relative;
    min-width: 0;
    min-height: 460px;
    background: transparent;
    isolation: isolate;
}

.jstudio-hero__media img {
    width: min(100%, 620px);
    height: clamp(460px, 70vw, 720px);
    margin-left: auto;
    background: transparent;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 34px 44px rgba(17, 17, 17, 0.16));
}

.jstudio-hero__media--logo {
    display: grid;
    align-content: center;
    gap: clamp(26px, 4vw, 44px);
    min-height: clamp(360px, 42vw, 560px);
    padding: clamp(28px, 5vw, 64px);
    border-left: 1px solid var(--jstudio-line);
}

.jstudio-hero__media--logo img {
    justify-self: center;
    width: min(100%, clamp(250px, 27vw, 430px));
    height: auto;
    margin: 0;
    object-fit: contain;
    object-position: center;
    filter: none;
}

/* Main content sections and reusable headings. */
.jstudio-services,
.jstudio-projects,
.jstudio-why,
.jstudio-contact {
    padding: var(--jstudio-space) 0;
}

.jstudio-services {
    background: var(--jstudio-white);
}

.jstudio-section-head {
    max-width: 920px;
}

.jstudio-section-head--split {
    display: grid;
    gap: 18px;
}

.jstudio-section-head h2,
.jstudio-cta h2,
.jstudio-contact h2 {
    margin: 16px 0 0;
    font-size: clamp(2.35rem, 7vw, 6.1rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.98;
}

.jstudio-contact h2 {
    max-width: 760px;
    font-size: clamp(2.75rem, 5vw, 5.4rem);
    line-height: 1;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.jstudio-services__grid {
    display: grid;
    gap: 12px;
    margin-top: clamp(38px, 7vw, 78px);
}

.jstudio-service {
    position: relative;
    display: block;
    min-height: 300px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jstudio-radius-card);
    background: var(--jstudio-ink);
    color: var(--jstudio-white);
    text-decoration: none;
    transition:
        border-color 260ms var(--jstudio-ease),
        background-color 260ms var(--jstudio-ease),
        color 260ms var(--jstudio-ease);
}

.jstudio-service:hover,
.jstudio-service:focus-visible {
    border-color: rgba(255, 255, 255, 0.24);
    background: var(--jstudio-service-hover, var(--jstudio-ink-soft));
    color: var(--jstudio-white);
    text-decoration: none;
    outline: 0;
}

.jstudio-service:focus-visible {
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.18);
}

.jstudio-service--marketing {
    --jstudio-service-hover: var(--jstudio-service-marketing);
}

.jstudio-service--presentation {
    --jstudio-service-hover: var(--jstudio-service-presentation);
}

.jstudio-service--photo {
    --jstudio-service-hover: var(--jstudio-service-photo);
}

.jstudio-service__body {
    display: grid;
    min-height: 100%;
}

.jstudio-service p,
.jstudio-service__index {
    color: rgba(255, 255, 255, 0.7);
}

.jstudio-service__index {
    display: block;
    margin-bottom: clamp(54px, 9vw, 112px);
    font-size: 0.82rem;
    font-weight: 800;
}

.jstudio-service h3,
.jstudio-point h3 {
    margin: 0 0 16px;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.05;
}

.jstudio-service h3 {
    color: var(--jstudio-white);
}

.jstudio-service__arrow {
    align-self: end;
    justify-self: start;
    margin-top: 32px;
    color: var(--jstudio-white);
    font-size: 1.25rem;
    font-weight: 760;
    line-height: 1;
    transition: transform 280ms var(--jstudio-ease);
}

.jstudio-service:hover .jstudio-service__arrow,
.jstudio-service:focus-visible .jstudio-service__arrow {
    transform: translateX(5px);
}

/* Project rows are intentionally sparse to feel closer to a studio index. */
.jstudio-projects {
    background: var(--jstudio-paper-deep);
}

.jstudio-project-list {
    margin-top: clamp(34px, 6vw, 70px);
    border-top: 1px solid var(--jstudio-line-strong);
}

.jstudio-project {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: clamp(24px, 4vw, 46px) 0;
    border-bottom: 1px solid var(--jstudio-line-strong);
    color: var(--jstudio-ink);
    text-decoration: none;
    transition:
        color 220ms var(--jstudio-ease),
        padding-left 220ms var(--jstudio-ease);
}

.jstudio-project:hover,
.jstudio-project:focus-visible {
    padding-left: 12px;
    color: var(--jstudio-clay);
}

.jstudio-project__name {
    font-size: clamp(2rem, 7vw, 5.8rem);
    font-weight: 810;
    letter-spacing: 0;
    line-height: 0.98;
}

.jstudio-project__type {
    color: var(--jstudio-muted);
    font-size: 0.95rem;
    font-weight: 680;
}

.jstudio-project__arrow {
    align-self: center;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.jstudio-why {
    background: var(--jstudio-ink);
    color: var(--jstudio-white);
}

.jstudio-why .jstudio-kicker {
    color: #d79a73;
}

.jstudio-why .jstudio-section-head h2 {
    color: var(--jstudio-white);
}

.jstudio-why__layout {
    display: grid;
    gap: clamp(42px, 8vw, 110px);
}

.jstudio-why__points {
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.jstudio-point {
    padding: clamp(24px, 4vw, 40px) 0;
    background: var(--jstudio-ink);
}

.jstudio-point h3 {
    color: var(--jstudio-white);
}

.jstudio-point p {
    color: rgba(255, 255, 255, 0.66);
}

.jstudio-cta {
    padding: clamp(82px, 13vw, 176px) 0;
    background: var(--jstudio-charcoal);
    color: var(--jstudio-white);
}

.jstudio-cta__inner {
    display: grid;
    gap: 28px;
    justify-items: start;
}

.jstudio-cta .jstudio-kicker {
    color: #d7c4b8;
}

.jstudio-cta h2 {
    max-width: 1040px;
    color: var(--jstudio-white);
}

.jstudio-contact {
    background: var(--jstudio-paper);
}

.jstudio-contact__layout {
    display: grid;
    gap: clamp(32px, 7vw, 88px);
}

.jstudio-contact__layout > * {
    min-width: 0;
}

.jstudio-contact__box {
    align-self: end;
    padding-top: 22px;
    border-top: 1px solid var(--jstudio-line-strong);
}

.jstudio-contact__link {
    display: inline-flex;
    max-width: 100%;
    margin-top: 26px;
    color: var(--jstudio-ink);
    font-size: clamp(2.25rem, 3vw, 3.25rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    overflow-wrap: normal;
}

.jstudio-contact__link:hover,
.jstudio-contact__link:focus-visible {
    color: var(--jstudio-clay);
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    .jstudio-hero__copy,
    .jstudio-hero__media,
    .jstudio-section-head,
    .jstudio-service,
    .jstudio-project,
    .jstudio-point,
    .jstudio-cta__inner,
    .jstudio-contact__layout {
        animation: jstudio-rise 700ms var(--jstudio-ease) both;
    }

    .jstudio-hero__media {
        animation-delay: 120ms;
    }

    .jstudio-service:nth-child(2),
    .jstudio-project:nth-child(2),
    .jstudio-point:nth-child(2) {
        animation-delay: 80ms;
    }

    .jstudio-service:nth-child(3),
    .jstudio-project:nth-child(3),
    .jstudio-point:nth-child(3) {
        animation-delay: 160ms;
    }
}

@keyframes jstudio-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Larger screens introduce the asymmetric desktop composition. */
@media (min-width: 760px) {
    .jstudio-shell {
        width: min(calc(100% - 64px), var(--jstudio-shell));
    }

    .jstudio-services__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

    .jstudio-service:nth-child(2) {
        margin-top: 54px;
    }

    .jstudio-service:nth-child(3) {
        margin-top: 108px;
    }

    .jstudio-project {
        grid-template-columns: minmax(0, 1fr) minmax(190px, 0.28fr) 44px;
        align-items: center;
    }

    .jstudio-project__type {
        justify-self: start;
    }

    .jstudio-project__arrow {
        justify-self: end;
    }

    .jstudio-why__layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.62fr);
        align-items: start;
    }
}

@media (min-width: 900px) {
    .jstudio-hero__layout {
        grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
        gap: clamp(36px, 6vw, 78px);
    }

    .jstudio-hero__copy {
        padding-bottom: clamp(20px, 5vw, 64px);
    }

    .jstudio-hero__media {
        margin-top: clamp(26px, 4vw, 72px);
    }

    .jstudio-contact__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: clamp(36px, 4.5vw, 56px);
    }
}

@media (min-width: 1100px) {
    .jstudio-section-head--split {
        grid-template-columns: 220px minmax(0, 1fr);
        max-width: none;
        align-items: start;
    }

    .jstudio-section-head--split h2 {
        margin-top: 0;
    }
}

/* Compact mobile tuning. */
@media (max-width: 640px) {
    .jstudio-shell {
        width: min(calc(100% - 28px), var(--jstudio-shell));
    }

    .jstudio-hero {
        padding-top: 52px;
    }

    .jstudio-hero__title {
        font-size: clamp(2.75rem, 12vw, 3.4rem);
        line-height: 0.96;
    }

    .jstudio-hero__intro {
        padding-left: 18px;
    }

    .jstudio-hero__actions {
        display: grid;
    }

    .jstudio-button {
        width: 100%;
    }

    .jstudio-hero__media img {
        width: 100%;
        height: 470px;
    }

    .jstudio-hero__media--logo {
        min-height: auto;
        padding: 30px 0 0;
        border-left: 0;
    }

    .jstudio-hero__media--logo img {
        width: min(78vw, 300px);
        height: auto;
    }

    .jstudio-service {
        min-height: 270px;
    }
}
