:root {
    --color-red: #e31e24;
    --color-green: #66b337;
    --color-purple: #393185;
    --accent-color: var(--color-green);
    --accent-danger: var(--color-red);
    --accent-secondary: var(--color-purple);
    --circle-size: 150px;
    --item-size: 95px;
    --radius: 190px;
    --orbit-size: 36px;
    --orbit-radius: 68px;
}

body.page-home {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Nunito", sans-serif;
}

.home-hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.home-screen--cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 96px 72px 32px 64px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
}

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: min(520px, 100%);
    margin: auto;
}

.home-screen--cta .hero-container {
    position: static;
    width: 100%;
    max-width: none;
    transform: none;
    pointer-events: auto;
}

.cta-form {
    width: 100%;
}

body.page-home header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo-img {
    display: none;
    width: 100px;
    height: auto;
}

.logo-img--dark {
    display: block;
}

html[data-theme="light"] .logo-img--dark {
    display: none;
}

html[data-theme="light"] .logo-img--light {
    display: block;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    appearance: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--link-underline);
    border-radius: 999px;
    background: transparent;
    color: var(--text-color);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.translate-toggle {
    appearance: none;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--link-underline);
    border-radius: 999px;
    background: transparent;
    color: var(--text-color);
    font: 700 0.72rem/1 "Nunito", sans-serif;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.translate-toggle:disabled,
.translate-toggle.is-preparing {
    cursor: progress;
}

.translate-toggle.is-preparing::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: translate-spin 0.7s linear infinite;
}

@keyframes translate-spin {
    to {
        transform: rotate(360deg);
    }
}

.translate-toggle:hover,
.translate-toggle:focus-visible {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.theme-icon {
    width: 18px;
    height: 18px;
    display: block;
}

html[data-theme="dark"] .theme-icon-moon,
html[data-theme="light"] .theme-icon-sun {
    display: none;
}

.contacts a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 16px;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
    border-bottom: 1px dashed var(--link-underline);
}

.contacts a:first-child {
    margin-left: 0;
}

.contacts a:hover {
    opacity: 1;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.hero-container {
    position: absolute;
    text-align: center;
    width: 90%;
    max-width: 800px;
    pointer-events: none;
    z-index: 1;
    transition: all 0.4s ease;
}

.home-hero .hero-container {
    top: 88px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    transform: none;
}

.hero-menu {
    display: contents;
}

.last-resolved:not([hidden]) {
    display: contents;
}

@media (min-width: 768px) and (min-height: 521px) {
    .home-hero {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 96px 48px 0;
        box-sizing: border-box;
    }

    .home-hero .hero-container {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        z-index: 1;
        padding: 0 8px 28px;
        background: var(--bg-color);
    }

    .home-hero .hero-menu {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 0;
        margin-bottom: 78px;
        z-index: 20;
    }

    .home-hero .radial-menu-wrapper {
        margin-top: 0;
    }

    .home-hero .slogan-main {
        min-height: 6rem;
    }

    .home-hero .slogan-sub {
        min-height: 3.2rem;
        line-height: 1.45;
    }
}

.slogan-main {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.slogan-accent {
    color: var(--accent-color);
}

.slogan-accent--blue {
    color: var(--color-purple);
}

.slogan-accent--green {
    color: var(--color-green);
}

.slogan-accent--red {
    color: var(--color-red);
}

.slogan-sub {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--muted-color);
}

.slogan-sub .slogan-accent {
    color: var(--accent-color);
}

.slogan-sub .slogan-accent--red {
    color: var(--color-red);
}

.radial-menu-wrapper {
    position: relative;
    width: var(--circle-size);
    height: var(--circle-size);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    margin-top: 100px;
}

.radial-menu-wrapper::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--radius) * 2 + var(--item-size) + var(--orbit-radius) + var(--orbit-size));
    height: calc(var(--radius) * 2 + var(--item-size) + var(--orbit-radius) + var(--orbit-size));
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

@media (hover: hover) and (pointer: fine) {
    .radial-menu-wrapper.active::before {
        pointer-events: auto;
    }
}

.main-trigger {
    appearance: none;
    -webkit-appearance: none;
    width: var(--circle-size);
    height: var(--circle-size);
    aspect-ratio: 1;
    flex-shrink: 0;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 20;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, color 0.3s, box-shadow 0.3s;
    animation: pulse-glow 1.67s infinite;
}

.main-trigger::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.main-trigger:focus {
    outline: none;
}

.radial-menu-wrapper.is-opening .main-trigger {
    pointer-events: none;
}

.main-trigger-label {
    display: inline-block;
    font-size: 1.4em;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(102, 179, 55, 0.44); }
    70% { box-shadow: 0 0 0 22px rgba(102, 179, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 179, 55, 0); }
}

@media (hover: hover) and (pointer: fine) {
    .main-trigger:hover {
        background: var(--accent-color);
        color: var(--bg-color);
        transform: scale(1.05);
        animation-play-state: paused;
        box-shadow: 0 0 30px rgba(102, 179, 55, 0.6);
    }
}

.radial-menu-wrapper.active .main-trigger,
.radial-menu-wrapper.active .main-trigger:hover {
    transform: scale(0.95) rotate(135deg);
    border-color: var(--accent-danger);
    color: var(--text-color);
    background: transparent;
    animation-play-state: paused;
    box-shadow: none;
}

.radial-menu-wrapper.active .main-trigger-label {
    transform: rotate(-135deg);
}

.menu-item {
    position: absolute;
    width: var(--item-size);
    height: var(--item-size);
    border-radius: 50%;
    background: var(--accent-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.15;
    padding: 8px;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: anywhere;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.4), opacity 0.32s ease;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.menu-item:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 25px rgba(102, 179, 55, 0.3);
}

@media (hover: hover) and (pointer: fine) {
    .menu-item:hover {
        transform: translate(var(--x), var(--y)) scale(1.15) !important;
    }
}

.radial-menu-wrapper.active .menu-item {
    opacity: 1;
    pointer-events: auto;
    transform: translate(var(--x), var(--y)) scale(1);
    z-index: 12;
}

html[data-theme="light"] .menu-item {
    border-color: rgba(18, 18, 24, 0.12);
    box-shadow: 0 10px 24px rgba(18, 18, 24, 0.12);
    color: #fff;
}

html[data-theme="light"] .orbit-item {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

html[data-theme="light"] .orbit-item svg {
    color: #fff;
    fill: currentColor;
}

html[data-theme="light"] .orbit-item--others {
    background: #121218;
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.menu-item.has-orbit {
    overflow: visible;
}

.menu-item:not(.has-orbit) {
    overflow: hidden;
}

.menu-item-label {
    position: relative;
    z-index: 2;
    max-width: 100%;
    overflow: hidden;
}

.menu-item.has-orbit::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--orbit-radius) * 2 + var(--orbit-size) + 12px);
    height: calc(var(--orbit-radius) * 2 + var(--orbit-size) + 12px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.radial-menu-wrapper.active .menu-item.has-orbit:hover,
.radial-menu-wrapper.active .menu-item.has-orbit.is-orbit-open {
    z-index: 16;
    transform: translate(var(--x), var(--y)) scale(1.08) !important;
}

.home-screens:has(.radial-menu-wrapper.active) .home-screens-track {
    position: relative;
    z-index: 31;
}

.radial-menu-wrapper.active .menu-item.has-orbit:hover::before,
.radial-menu-wrapper.active .menu-item.has-orbit.is-orbit-open::before {
    pointer-events: auto;
}

.orbit-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--orbit-size);
    height: var(--orbit-size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.2);
    transition: transform 0.224s cubic-bezier(0.68, -0.55, 0.265, 1.4), opacity 0.16s ease;
    z-index: 3;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.orbit-item svg {
    width: 56%;
    height: 56%;
    display: block;
    overflow: visible;
    flex-shrink: 0;
}

.orbit-item--telegram {
    background: #229ed9;
}

.orbit-item--whatsapp {
    background: #25d366;
}

.orbit-item--instagram {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 70%, #285aeb 100%);
}

.orbit-item--facebook {
    background: #1877f2;
}

.orbit-item--bitrix {
    background: #2fc6f6;
}

.orbit-item--wordpress {
    background: #21759b;
}

.orbit-item--laravel {
    background: #ff2d20;
}

.orbit-item--mysql {
    background: #00758f;
}

.orbit-item--others {
    width: 42px;
    height: 42px;
    background: var(--bg-color);
    border-color: rgba(255, 255, 255, 0.55);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: anywhere;
}

.radial-menu-wrapper.active.orbits-ready .menu-item.has-orbit:hover .orbit-item,
.radial-menu-wrapper.active.orbits-ready .menu-item.has-orbit.is-orbit-open .orbit-item {
    opacity: 1;
    pointer-events: auto;
    transform: translate(calc(-50% + var(--ox)), calc(-50% + var(--oy))) scale(1);
}

.radial-menu-wrapper.active.orbits-ready .menu-item.has-orbit:hover .orbit-item:hover,
.radial-menu-wrapper.active.orbits-ready .menu-item.has-orbit.is-orbit-open .orbit-item:hover {
    transform: translate(calc(-50% + var(--ox)), calc(-50% + var(--oy))) scale(1.12);
    border-color: #fff;
}

@media (max-width: 767px) {
    .home-hero {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 96px 16px 0;
        box-sizing: border-box;
    }

    .home-hero .hero-container {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }

    .home-hero .hero-menu {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 0;
        margin-bottom: var(--hero-ticker-space, 0px);
        z-index: 20;
    }

    .home-screen--cta {
        justify-content: center;
        justify-content: safe center;
        padding: 88px 16px 24px;
    }

    .home-screen--cta .hero-container {
        position: static;
        top: auto;
        left: auto;
        right: auto;
    }

    .slogan-main {
        font-size: 1.8rem;
    }

    .slogan-sub {
        font-size: 0.85rem;
    }

    .radial-menu-wrapper {
        margin-top: 0;
    }

    .radial-menu-wrapper.active .main-trigger,
    .radial-menu-wrapper.active .main-trigger:hover {
        transform: none;
    }

    .radial-menu-wrapper.active .main-trigger-label {
        transform: none;
    }

    :root {
        --radius: 140px;
        --item-size: 75px;
        --circle-size: 110px;
        --orbit-size: 32px;
        --orbit-radius: 56px;
    }

    .orbit-item--others {
        width: 38px;
        height: 38px;
        font-size: 0.48rem;
    }

    body.page-home header {
        padding: 18px 16px;
        background: var(--bg-color);
    }

    .header-tools {
        gap: 10px;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .translate-toggle {
        height: 32px;
        padding: 0 8px;
        font-size: 0.62rem;
    }

    .contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }

    .contacts a,
    .contacts a:first-child {
        margin-left: 0;
        font-size: 0.8rem;
    }
}

/* Short laptops and tablet landscape: the contact slide is the one that scrolls. */
@media (min-width: 768px) and (max-height: 850px) {
    .home-screen--cta {
        padding: 56px 48px 12px 40px;
    }

    .cta {
        gap: 10px;
    }

    .home-screen--cta .slogan-main {
        font-size: 1.65rem;
        margin-bottom: 2px;
    }

    .home-screen--cta .slogan-sub {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .home-screen--cta .contact-form,
    .home-screen--cta .contact-form-fields {
        gap: 8px;
    }

    .home-screen--cta .contact-field {
        gap: 3px;
    }

    .home-screen--cta .contact-field input:not([type="radio"]),
    .home-screen--cta .contact-field textarea {
        padding: 6px 10px;
    }

    .home-screen--cta .contact-message {
        height: 68px;
        min-height: 0;
        resize: none;
    }

    .home-screen--cta .contact-submit {
        padding: 8px 14px;
    }
}

/* Phones around 844–900px tall: FAQ and the contact slide stick out by a little. */
@media (max-width: 767px) and (max-height: 920px) and (min-height: 821px) {
    .home-screen--faq,
    .home-screen--cta {
        padding-top: 88px;
        padding-bottom: 10px;
    }

    .cta {
        gap: 12px;
    }

    .home-screen--cta .slogan-main {
        font-size: 1.5rem;
        margin-bottom: 2px;
    }

    .home-screen--cta .contact-form,
    .home-screen--cta .contact-form-fields {
        gap: 8px;
    }

    .home-screen--cta .contact-message {
        height: 78px;
        min-height: 0;
        resize: none;
    }

    .faq {
        gap: 8px;
    }

    .faq-item {
        padding: 8px 12px;
        gap: 4px;
    }
}

/* Short phones (SE, ~360×740–800): needs, about, FAQ and the contact slide. */
@media (max-width: 767px) and (max-height: 820px) and (min-height: 521px) {
    .home-screen--needs,
    .home-screen--about,
    .home-screen--faq,
    .home-screen--cta {
        padding: 88px 12px 8px;
    }

    .need-grid {
        gap: 4px;
    }

    .need-card {
        padding: 5px 6px;
        gap: 3px;
    }

    .need-card-title {
        font-size: 0.78rem;
        gap: 4px;
    }

    .need-card-text {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .need-card-action {
        padding: 3px 8px;
        font-size: 0.66rem;
    }

    .about {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
        align-items: center;
    }

    .about-heading {
        font-size: 1.25rem;
    }

    .about-lead {
        font-size: 0.95rem;
    }

    .about-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .about-copy {
        gap: 6px;
    }

    .team-card-photo {
        max-height: 96px;
    }

    .team-card-role,
    .team-card-name,
    .team-card-skills {
        padding-left: 8px;
        padding-right: 8px;
    }

    .team-card-name {
        font-size: 0.88rem;
    }

    .team-card-skills {
        padding-bottom: 8px;
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .faq {
        gap: 8px;
    }

    .faq-heading {
        font-size: 1.25rem;
    }

    .faq-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .faq-item {
        padding: 8px 8px;
        gap: 3px;
    }

    .faq-question {
        font-size: 0.74rem;
    }

    .faq-answer {
        font-size: 0.66rem;
        line-height: 1.25;
    }

    .cta {
        gap: 8px;
    }

    .home-screen--cta .slogan-main {
        font-size: 1.28rem;
        line-height: 1.15;
        margin-bottom: 2px;
    }

    .home-screen--cta .slogan-sub {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }

    .home-screen--cta .contact-form,
    .home-screen--cta .contact-form-fields {
        gap: 5px;
    }

    .home-screen--cta .contact-field {
        gap: 2px;
    }

    .home-screen--cta .contact-via {
        gap: 4px 6px;
    }

    .home-screen--cta .contact-field input:not([type="radio"]),
    .home-screen--cta .contact-field textarea {
        padding: 5px 8px;
    }

    .home-screen--cta .contact-message {
        height: 48px;
        min-height: 0;
        resize: none;
    }

    .home-screen--cta .contact-urgency-options {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.7fr) minmax(0, 0.75fr);
        gap: 4px;
    }

    .home-screen--cta .contact-urgency-option {
        min-height: 32px;
        padding: 4px 3px;
        font-size: 0.58rem;
    }

    .home-screen--cta .contact-submit {
        padding: 7px 12px;
    }
}

/* Very narrow phones (320×568): stats, needs and how still need a tighter scale. */
@media (max-width: 359px) and (max-height: 640px) {
    body.page-home header {
        padding: 8px 10px;
    }

    .logo-img {
        width: 64px;
    }

    .home-hero {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 52px 8px 68px;
        gap: 6px;
    }

    .home-hero .hero-container {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        transform: none;
    }

    .home-hero .slogan-main {
        font-size: 1.35rem;
        margin-bottom: 2px;
    }

    .home-hero .slogan-sub {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .radial-menu-wrapper {
        margin-top: 4px;
    }

    :root {
        --circle-size: 96px;
        --item-size: 64px;
        --radius: 112px;
    }

    .home-screen--stats,
    .home-screen--how,
    .home-screen--needs,
    .home-screen--faq,
    .home-screen--cta {
        padding: 56px 10px 4px;
    }

    .faq {
        gap: 6px;
    }

    .faq-item {
        padding: 6px 6px;
    }

    .cta {
        gap: 4px;
    }

    .home-screen--cta .contact-message {
        height: 40px;
    }

    .can-do-screen,
    .how-it-works {
        gap: 8px;
    }

    .can-do-heading,
    .how-it-works-heading {
        font-size: 1.15rem;
    }

    .can-do-groups {
        gap: 6px;
    }

    .can-do-group {
        padding: 6px 5px;
    }

    .can-do-title {
        margin-bottom: 3px;
        font-size: 0.72rem;
    }

    .can-do-list {
        gap: 1px;
    }

    .can-do-list li {
        font-size: 0.58rem;
        line-height: 1.15;
    }

    .week-stats {
        gap: 6px;
    }

    .week-stats-heading {
        font-size: 0.85rem;
    }

    .week-stats-items {
        gap: 4px;
    }

    .week-stats-card {
        padding: 5px 4px;
        gap: 2px;
    }

    .week-stats-label {
        font-size: 0.5rem;
        letter-spacing: 0;
    }

    .week-stats-value {
        font-size: 0.9rem;
        gap: 3px;
    }

    .how-it-works-steps {
        gap: 6px;
    }

    .how-it-works-step {
        padding: 6px 5px;
        gap: 3px;
    }

    .how-it-works-title {
        font-size: 0.75rem;
    }

    .how-it-works-text {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .need-grid {
        gap: 4px;
    }

    .need-card {
        padding: 5px 4px;
        gap: 2px;
    }

    .need-card-text {
        font-size: 0.58rem;
        line-height: 1.15;
    }
}

/* Phone landscape and other very short viewports. */
@media (max-height: 520px) {
    body.page-home header {
        padding: 6px 12px;
    }

    .logo-img {
        width: 68px;
    }

    .theme-toggle {
        width: 28px;
        height: 28px;
    }

    .translate-toggle {
        height: 28px;
        padding: 0 7px;
        font-size: 0.58rem;
    }

    .home-hero {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 48px 16px 4px;
        gap: 4px;
    }

    .home-hero .hero-container {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: min(100%, 640px);
        transform: none;
    }

    .home-hero .slogan-main {
        font-size: 1.2rem;
        line-height: 1.15;
        margin-bottom: 2px;
    }

    .home-hero .slogan-sub {
        font-size: 0.68rem;
        letter-spacing: 1px;
    }

    .radial-menu-wrapper {
        margin-top: 2px;
    }

    :root {
        --circle-size: 76px;
        --item-size: 54px;
        --radius: 96px;
        --orbit-size: 26px;
        --orbit-radius: 42px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr auto;
        grid-template-areas: none;
        gap: 4px 12px;
        padding: 6px 12px 8px;
    }

    .site-footer-mission,
    .site-footer-copy {
        grid-area: auto;
    }

    .site-footer-mission {
        font-size: 0.58rem;
        line-height: 1.25;
    }

    .site-footer-copy {
        font-size: 0.62rem;
    }

    .home-screen--stats,
    .home-screen--needs,
    .home-screen--how,
    .home-screen--why,
    .home-screen--cases,
    .home-screen--tech,
    .home-screen--about,
    .home-screen--faq,
    .home-screen--cta {
        padding: 50px 28px 6px 16px;
        justify-content: center;
    }

    .can-do-screen,
    .how-it-works,
    .why-we,
    .faq,
    .technologies,
    .about,
    .cases-slider-screen {
        gap: 6px;
        min-height: 0;
        justify-content: center;
    }

    .can-do-heading,
    .how-it-works-heading,
    .why-we-heading,
    .cases-heading,
    .technologies-heading,
    .about-heading,
    .faq-heading {
        font-size: 1.05rem;
    }

    .can-do-groups {
        gap: 6px;
    }

    .can-do-group {
        padding: 6px 8px;
    }

    .can-do-title {
        margin-bottom: 3px;
        font-size: 0.78rem;
    }

    .can-do-list {
        gap: 1px;
    }

    .can-do-list li {
        font-size: 0.62rem;
        line-height: 1.2;
    }

    .week-stats {
        gap: 4px;
    }

    .week-stats-heading {
        font-size: 0.85rem;
    }

    .week-stats-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .week-stats-card {
        padding: 5px 6px;
        gap: 2px;
    }

    .week-stats-label {
        font-size: 0.55rem;
    }

    .week-stats-value {
        font-size: 0.95rem;
        gap: 4px;
    }

    .week-stats-value .task-ticker-check,
    .week-stats-value .task-ticker-clock,
    .week-stats-value .week-stats-partners,
    .week-stats-value .task-ticker-check svg,
    .week-stats-value .task-ticker-clock svg,
    .week-stats-value .week-stats-partners svg {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }

    .need-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .need-card {
        padding: 6px 6px;
        gap: 3px;
    }

    .need-card-title {
        font-size: 0.68rem;
        gap: 3px;
    }

    .need-card-text {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .need-card-action {
        padding: 3px 7px;
        font-size: 0.58rem;
    }

    .how-it-works-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .how-it-works-step {
        padding: 6px 6px;
        gap: 3px;
    }

    .how-it-works-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .how-it-works-title {
        font-size: 0.72rem;
    }

    .how-it-works-text {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .why-we-lines {
        gap: 4px;
    }

    .why-we-reject {
        font-size: 0.68rem;
    }

    .why-we-claim {
        font-size: 0.88rem;
    }

    .cases-slider {
        gap: 4px;
    }

    .case-card-image {
        height: 64px;
    }

    .case-card {
        gap: 3px;
        padding-bottom: 6px;
    }

    .case-card-title {
        font-size: 0.72rem;
    }

    .case-card-text {
        font-size: 0.6rem;
        -webkit-line-clamp: 2;
    }

    .technologies {
        gap: 4px;
    }

    .technologies-group {
        gap: 2px;
    }

    .technologies-group-heading {
        font-size: 0.72rem;
    }

    .technologies-list {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .about {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 10px;
        align-items: center;
    }

    .about-copy {
        gap: 4px;
    }

    .about-lead {
        font-size: 0.85rem;
    }

    .about-text {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .team-slider {
        gap: 4px;
    }

    .team-card-photo,
    .about-photo img {
        max-height: 72px;
        aspect-ratio: 16 / 7;
    }

    .team-card-name {
        font-size: 0.78rem;
    }

    .team-card-skills {
        font-size: 0.6rem;
        line-height: 1.2;
        padding-bottom: 6px;
    }

    .faq-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .faq-item {
        padding: 5px 6px;
        gap: 2px;
    }

    .faq-question {
        font-size: 0.64rem;
    }

    .faq-answer {
        font-size: 0.58rem;
        line-height: 1.2;
    }

    .cta {
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        align-items: center;
        gap: 10px;
        width: min(860px, 100%);
        margin: 0;
    }

    .home-screen--cta .hero-container {
        width: 100%;
    }

    .home-screen--cta .slogan-main {
        font-size: 1.15rem;
        line-height: 1.15;
        margin-bottom: 2px;
    }

    .home-screen--cta .slogan-sub {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .home-screen--cta .contact-form,
    .home-screen--cta .contact-form-fields {
        gap: 3px;
    }

    .home-screen--cta .contact-field {
        gap: 1px;
        font-size: 0.68rem;
    }

    .home-screen--cta .contact-via {
        gap: 2px 6px;
        font-size: 0.68rem;
    }

    .home-screen--cta .contact-field input:not([type="radio"]),
    .home-screen--cta .contact-field textarea {
        padding: 3px 8px;
    }

    .home-screen--cta .contact-message {
        height: 36px;
        min-height: 0;
        resize: none;
    }

    .home-screen--cta .contact-urgency legend {
        margin-bottom: 2px;
    }

    .home-screen--cta .contact-urgency-options {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.7fr) minmax(0, 0.75fr);
        gap: 4px;
    }

    .home-screen--cta .contact-urgency-option {
        min-height: 26px;
        padding: 2px 3px;
        font-size: 0.55rem;
    }

    .home-screen--cta .contact-submit {
        padding: 5px 10px;
    }
}

/* Portrait, including a tall phone whose height is still under 820px. */
@media (orientation: portrait) {
    .about {
        grid-template-columns: 1fr;
    }
}

/* Without JavaScript the page is one document. The slide lock applies only after the inline script adds .home-paged. */
html:not(.home-paged) body.page-home {
    display: block;
    height: auto;
    min-height: 100%;
    overflow: visible;
    overscroll-behavior: auto;
}

html:not(.home-paged) .home-stage {
    display: block;
    overflow: visible;
    min-height: 0;
    flex: none;
    touch-action: auto;
}

html:not(.home-paged) body.page-home header {
    position: sticky;
    top: 0;
    background: var(--bg-color);
}

html:not(.home-paged) .home-screens,
html:not(.home-paged) .home-screens-track,
html:not(.home-paged) .home-screen {
    height: auto;
    min-height: 0;
    overflow: visible;
    transform: none;
    transition: none;
}

html:not(.home-paged) .home-screen-dots {
    display: none;
}

html:not(.home-paged) .home-hero {
    height: auto;
    min-height: 0;
    overflow: visible;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 36px 24px 28px;
    gap: 28px;
}

html:not(.home-paged) .home-hero .hero-container {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: min(90%, 800px);
    pointer-events: auto;
}

html:not(.home-paged) .home-hero .radial-menu-wrapper {
    margin-top: 8px;
}

html:not(.home-paged) body.page-home .site-footer-ticker {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    visibility: visible;
    width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html:not(.home-paged) body.page-home .site-footer-ticker-track {
        animation: site-footer-ticker-rtl var(--ticker-seconds, 58s) linear 3s infinite;
    }
}

html:not(.home-paged) .home-screen--stats,
html:not(.home-paged) .home-screen--needs,
html:not(.home-paged) .home-screen--how,
html:not(.home-paged) .home-screen--why,
html:not(.home-paged) .home-screen--cases,
html:not(.home-paged) .home-screen--tech,
html:not(.home-paged) .home-screen--about,
html:not(.home-paged) .home-screen--faq,
html:not(.home-paged) .home-screen--cta {
    height: auto;
    min-height: 0;
    overflow: visible;
    justify-content: flex-start;
    padding: 40px 24px;
}
