/* Desktop 1200–1920 px is handled by the zoom script (design width 1920).
   Below 1200 px the layout is fluid and these breakpoints take over. */

@media only screen and (max-width: 1199px) {
    :root {
        --side: 40px;
        --content: 40px;
    }

    .section {
        padding: 110px 0;
    }

    .header {
        padding: 22px 0;
    }

    .header.header-scrolled {
        padding: 12px 0;
    }

    .logo {
        font-size: 32px;
    }

    .header_right {
        gap: 28px;
    }

    .scroll_badge,
    .side_tags {
        display: none;
    }

    .cta_circle {
        right: 24px;
        bottom: 24px;
        width: 92px;
        height: 92px;
    }

    .cta_circle_core {
        width: 58px;
        height: 58px;
    }

    .main_nav_list a {
        font-size: 72px;
    }

    .main_nav_list a span {
        padding-top: 18px;
    }

    /* Intro */
    .section.intro_section {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 150px 0 300px;
    }

    .intro_letter {
        left: 10px;
        top: 90px;
        font-size: 340px;
    }

    .intro_photo {
        left: auto;
        right: 0;
        top: 130px;
        width: 420px;
    }

    .intro_glow {
        width: 460px;
        height: 460px;
    }

    .intro_straps .strap_light {
        display: none;
    }

    .intro_straps .strap_dark {
        left: 50%;
        bottom: 200px;
    }

    .intro_bottom {
        gap: 50px;
    }

    .strap {
        height: 84px;
        margin-top: -42px;
    }

    .strap_track > span,
    .strap_track > a {
        font-size: 26px;
    }

    .strap_track > span::after,
    .strap_track > a::after {
        width: 14px;
        height: 14px;
        margin: 0 36px;
    }

    /* Sections */
    .section_title {
        margin-bottom: 64px;
        font-size: 32px;
    }

    .section_head {
        margin-bottom: 64px;
    }

    .section_grid {
        position: relative;
        grid-template-columns: minmax(0, 1fr);
    }

    .section_grid > .outline_letter {
        position: absolute;
        right: 0;
        top: -150px;
        z-index: -1;
        font-size: 300px;
        opacity: .7;
    }

    .about_grid {
        grid-template-columns: 340px minmax(0, 1fr);
        gap: 40px;
    }

    .about_photo {
        width: 320px;
        height: 320px;
        --ring-r: 160px;
    }

    .about_photo_inner {
        inset: 18px;
    }

    .about_lead {
        font-size: 30px;
        margin-bottom: 28px;
    }

    .about_text {
        font-size: 21px;
        line-height: 1.8;
    }

    .link_accent,
    .link_download {
        font-size: 21px;
    }

    .about_numbers {
        gap: 48px;
        margin-top: 60px;
    }

    .about_numbers p {
        font-size: 40px;
    }

    .services_flex {
        gap: 32px;
    }

    .service_item h3 {
        font-size: 26px;
    }

    .service_item p {
        font-size: 16px;
    }

    .tech_groups {
        margin-top: 80px;
    }

    .tech_label {
        width: 160px;
    }

    .outline_marquee_track span {
        font-size: 130px;
    }

    .exp_item {
        grid-template-columns: 180px minmax(0, 1fr) auto;
    }

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

    .integrations_lead {
        font-size: 19px;
    }

    .integration_card h3 {
        font-size: 26px;
    }

    .integration_card > p:not(.integration_num) {
        font-size: 16px;
    }

    .exp_item h3 {
        font-size: 26px;
    }

    .contact_letter {
        left: auto;
        right: 0;
        font-size: 320px;
    }

    .contact_title {
        margin-bottom: 70px;
    }

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

    .contact_list a,
    .contact_list span {
        font-size: 24px;
    }

    .contact_straps {
        height: 300px;
        margin-top: 80px;
    }
}

@media only screen and (max-width: 991px) {
    :root {
        --side: 32px;
        --content: 32px;
    }

    .legal_section {
        padding-top: 150px;
    }

    .legal_content h1 {
        font-size: 48px;
    }

    .legal_toc ol {
        columns: 1;
    }

    .legal_content p,
    .legal_content li,
    .legal_toc li {
        font-size: 17px;
    }

    .legal_lead {
        font-size: 20px;
    }

    .legal_table {
        font-size: 15px;
    }

    .section {
        padding: 90px 0;
    }

    .main_nav {
        align-items: flex-start;
    }

    .main_nav_flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 48px;
        padding: 120px 0 48px;
    }

    .main_nav_list a {
        font-size: 56px;
        gap: 16px;
    }

    .main_nav_list a span {
        padding-top: 12px;
        font-size: 14px;
    }

    .main_nav_info {
        min-width: 0;
    }

    .main_nav_info a {
        font-size: 20px;
    }

    /* Intro: text on top, photo below */
    .section.intro_section {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        min-height: 0;
        padding: 140px 0 0;
    }

    .intro_letter {
        font-size: 280px;
        top: 70px;
    }

    .intro_bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .intro_text {
        font-size: 17px;
    }

    .intro_title,
    .intro_words,
    .intro_more {
        font-size: clamp(38px, 7.6vw, 72px);
        line-height: 1.45;
    }

    .intro_photo {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        width: min(460px, 82vw);
        margin: 30px auto 0;
    }

    .intro_glow {
        left: 50%;
        top: 4%;
        width: 120%;
        height: auto;
        aspect-ratio: 1;
        margin-left: -60%;
    }

    .intro_straps .strap_dark {
        bottom: 110px;
    }

    /* Sections */
    .about_grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
    }

    .about_photo {
        width: min(340px, 78vw);
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
        --ring-r: calc(min(340px, 78vw) / 2);
    }

    .about_lead {
        font-size: 26px;
    }

    .about_text {
        font-size: 19px;
    }

    .services_flex {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .service_item p {
        max-width: 620px;
        margin-bottom: 18px;
    }

    .tech_groups {
        gap: 26px;
    }

    .tech_group {
        flex-direction: column;
        align-items: flex-start;
    }

    .tech_label {
        width: auto;
    }

    .outline_marquee_track span {
        font-size: 96px;
    }

    .outline_marquee_track span::after {
        width: 24px;
        height: 24px;
        margin: 0 40px;
    }

    .exp_item {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 22px 0;
    }

    .exp_place {
        text-align: left;
    }

    .exp_item:hover h3 {
        transform: none;
    }

    .contact_list {
        gap: 28px 32px;
    }

    .contact_straps {
        height: 240px;
        margin-top: 60px;
    }

    .footer_flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media only screen and (max-width: 767px) {
    :root {
        --side: 20px;
        --content: 20px;
    }

    .legal_section {
        padding-top: 120px;
    }

    .legal_content h1 {
        font-size: 36px;
    }

    .legal_lead {
        font-size: 18px;
    }

    .legal_content h2 {
        margin-top: 44px;
        font-size: 24px;
    }

    .legal_content p,
    .legal_content li {
        font-size: 16px;
    }

    .legal_toc {
        padding: 22px;
    }

    .legal_table_wrap {
        overflow: visible;
    }

    .legal_table,
    .legal_table tbody,
    .legal_table tr,
    .legal_table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .legal_table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .legal_table tr {
        margin-bottom: 16px;
        padding: 6px 18px;
        border: 1px solid #262626;
        border-radius: 12px;
    }

    .legal_table td {
        padding: 10px 0;
    }

    .legal_table td:last-child {
        border-bottom: 0;
    }

    .legal_table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 12px;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--grey);
    }

    .legal_date {
        margin-bottom: 44px;
    }

    .legal_back span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .footer_legal {
        font-size: 12px;
    }

    .section {
        padding: 72px 0;
    }

    [data-animate="fade-up"] {
        transform: translateY(24px);
    }

    .header {
        padding: 16px 0;
    }

    .header.header-scrolled {
        padding: 10px 0;
    }

    .header_flex {
        grid-template-columns: auto 1fr auto;
    }

    .header_social {
        display: none;
    }

    .logo {
        grid-column: 1;
        font-size: 28px;
    }

    .header_right {
        grid-column: 3;
    }

    .open_nav_text {
        font-size: 13px;
    }

    .main_nav_list a {
        font-size: 42px;
        line-height: 1.35;
    }

    .main_nav_list:hover a {
        color: inherit;
    }

    .cta_circle {
        right: 14px;
        bottom: 14px;
        width: 78px;
        height: 78px;
    }

    .cta_circle_core {
        width: 50px;
        height: 50px;
    }

    .cta_circle_core svg {
        width: 20px;
        height: 20px;
    }

    .section.intro_section {
        padding-top: 110px;
    }

    .intro_letter {
        opacity: .55;
    }

    .intro_letter {
        font-size: 220px;
        left: -10px;
        top: 60px;
    }

    .intro_text br {
        display: none;
    }

    .strap {
        height: 64px;
        margin-top: -32px;
    }

    .strap_track > span,
    .strap_track > a {
        font-size: 19px;
    }

    .strap_track > span::after,
    .strap_track > a::after {
        width: 10px;
        height: 10px;
        margin: 0 24px;
    }

    .intro_straps .strap_dark {
        bottom: 70px;
    }

    .outline_letter {
        font-size: 220px;
    }

    .section_grid > .outline_letter {
        top: -110px;
        font-size: 200px;
    }

    .section_title {
        margin-bottom: 44px;
        padding-bottom: 16px;
        font-size: 26px;
    }

    .section_head {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        margin-bottom: 44px;
    }

    .about_photo {
        display: none;
    }

    .about_grid {
        gap: 0;
    }

    .about_lead {
        font-size: 22px;
        line-height: 1.45;
    }

    .about_text {
        font-size: 17px;
        line-height: 1.75;
    }

    .slash {
        width: 32px;
        height: 10px;
        margin-left: 12px;
    }

    .about_links {
        gap: 28px;
        margin-top: 28px;
    }

    .link_accent,
    .link_download {
        font-size: 19px;
    }

    .about_numbers {
        justify-content: space-between;
        gap: 16px;
        margin-top: 48px;
    }

    .about_numbers p {
        font-size: 32px;
    }

    .about_numbers li > span {
        display: block;
        font-size: 12px;
        line-height: 1.4;
    }

    .service_item h3 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .tech_pills li {
        padding: 5px 14px;
        font-size: 13px;
    }

    .outline_marquee {
        padding: 10px 0;
    }

    .outline_marquee_track span {
        font-size: 64px;
    }

    .outline_marquee_track span::after {
        width: 16px;
        height: 16px;
        margin: 0 26px;
    }

    .portfolio_controls {
        width: 100%;
    }

    .portfolio_counter {
        margin-right: auto;
    }

    .slider_btn {
        width: 50px;
        height: 50px;
    }

    .work_card h3 {
        margin-top: 24px;
        font-size: 21px;
    }

    .work_card_tag {
        font-size: 15px;
    }

    .work_card_view {
        display: none;
    }

    .portfolio_more {
        margin-top: 40px;
        font-size: 15px;
    }

    .exp_time {
        font-size: 14px;
    }

    .integrations_grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .integrations_lead {
        margin-bottom: 40px;
        font-size: 17px;
    }

    .integrations_count span {
        font-size: 36px;
    }

    .integration_card {
        padding: 26px 22px;
    }

    .integration_num {
        margin-bottom: 14px;
    }

    .integration_card h3 {
        font-size: 22px;
    }

    .integration_tags li {
        font-size: 12px;
        padding: 3px 12px;
    }

    .exp_item h3 {
        font-size: 22px;
    }

    .exp_place {
        font-size: 15px;
    }

    .contact_title {
        font-size: clamp(34px, 9.6vw, 56px);
        line-height: 1.35;
        margin-bottom: 50px;
    }

    .contact_letter {
        font-size: 220px;
        top: -20px;
    }

    .contact_list {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .contact_list a,
    .contact_list span {
        font-size: 19px;
    }

    .contact_straps {
        height: 180px;
        margin-top: 40px;
    }

    .footer {
        padding: 26px 0 110px;
        font-size: 14px;
    }

    .footer_links {
        gap: 22px;
    }
}

@media only screen and (max-width: 479px) {
    :root {
        --side: 16px;
        --content: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .logo {
        font-size: 26px;
    }

    .main_nav_list a {
        font-size: 36px;
    }

    .intro_title,
    .intro_words,
    .intro_more {
        font-size: clamp(30px, 9.4vw, 44px);
    }

    .about_numbers p {
        font-size: 28px;
    }

    .btn {
        padding: 18px 26px;
        font-size: 14px;
    }

    .btn.outline {
        padding: 14px 22px;
        font-size: 13px;
    }
}

/* Touch devices: no hover-only affordances */
@media (hover: none) {
    .work_card_view {
        display: none;
    }

    .main_nav_list:hover a {
        color: inherit;
    }
}
