/* abdubakiyev.uz — portfolio home (layout from the Claude Design handoff in design/) */

/* Onest variable, self-hosted (OFL), subsets from Google Fonts */
@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/onest-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/onest-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/onest-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/onest-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #f7f7f5;
    --surface: #ffffff;
    --ink: #111318;
    --ink-strong: #0b1220;
    --ink-2: #5e6470;
    --ink-from: #5a6576;
    --ink-3: #6b717d;
    --line: #e6e6e1;
    --accent: #3d56a6;
    --accent-hover: #314690;
    --live: #4c9a73;
    --live-ink: #3a7f5c;
    /* Screens hang like pictures: a hairline ring, a close contact shadow, a soft long drop */
    --hang: 0 0 0 1px rgb(17 19 24 / 0.07), 0 2px 4px rgb(17 19 24 / 0.05), 0 18px 36px -14px rgb(17 19 24 / 0.22), 0 40px 80px -36px rgb(17 19 24 / 0.2);
    --hang-up: 0 0 0 1px rgb(17 19 24 / 0.07), 0 3px 6px rgb(17 19 24 / 0.06), 0 26px 48px -16px rgb(17 19 24 / 0.26), 0 56px 100px -40px rgb(17 19 24 / 0.24);
    --building: #c9924f;
    --night: #0f1320;
    --night-line: #252b3b;
    --night-pill: #2a3042;
    --night-ink-2: #a9afbc;

    --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
    --max: 1248px;
    --pad: clamp(20px, 3.4vw, 24px);
    --section: clamp(40px, 6vw, 80px);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    caret-color: var(--accent);
}

::selection {
    background: #e2e6f1;
    color: var(--ink);
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: var(--ink-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #c9ccd2;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-color: var(--ink-strong);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

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

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
}

.skip:focus {
    top: 12px;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: var(--pad);
}

.only-m {
    display: none !important;
}

.icon {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    border-radius: 999px;
    font: 600 17px/1.2 var(--font);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s var(--ease-out);
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    padding: 17px 28px;
    background: var(--accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.btn--dark {
    padding: 9px 16px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
}

.btn--dark:hover {
    background: #262a33;
    color: #fff;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(247 247 245 / 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: 32px;
    height: 32px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.nav a {
    color: var(--ink-2);
    text-decoration: none;
}

.nav a:hover {
    color: var(--ink);
}

.lang {
    display: flex;
    padding: 3px;
    border-radius: 999px;
    background: #ededE9;
}

.lang button {
    min-width: 36px;
    min-height: 32px;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-2);
    font: 600 12px/1 var(--font);
    cursor: pointer;
}

.lang button:hover {
    color: var(--ink);
}

.lang button[aria-pressed="true"] {
    background: #fff;
    color: var(--ink);
}

/* ---------- Before ⟶ after (the page's one recurring device) ---------- */

.ba {
    font-size: 20px;
    line-height: 1.4;
    text-wrap: pretty;
}

.ba s {
    color: var(--ink-from);
    text-decoration-thickness: 1px;
}

.ba__arrow {
    display: inline-block;
    margin: 0 8px;
    color: var(--ink-from);
    white-space: nowrap;
    transform: translateY(-0.1em);
}

.ba b {
    color: var(--ink-strong);
    font-weight: 600;
}

.ba--xl {
    font-size: clamp(36px, 3.6vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.ba--xl s {
    text-decoration-thickness: 2px;
}

.ba--xl .ba__arrow {
    margin: 0 10px;
}

.ba--xl b {
    font-weight: 700;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
    background: var(--live);
}

.dot--building {
    background: var(--building);
}

/* ---------- Layers: one screen, one idea, one centered column ---------- */

.layer {
    display: flex;
    align-items: center;
    min-height: calc(100svh - 60px);
    padding: clamp(72px, 9vh, 112px) 20px;
    /* Screens slide in from the side on phones: never widen the page */
    overflow-x: clip;
}

.layer__inner {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.layer--white {
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.layer--paper {
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.layer--night {
    background: var(--night);
    color: #fff;
}

.h2 {
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 700;
    text-wrap: balance;
}

.lede {
    max-width: 560px;
    margin: 14px auto 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink-2);
    text-wrap: pretty;
}

/* Layer 1: who and what */

.who {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.who img {
    width: 112px;
    height: 112px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 18%;
}

.who b {
    display: block;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.who span {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    color: var(--ink-2);
}

.intro h1 {
    max-width: 17ch;
    margin: 32px auto 0;
    font-size: clamp(40px, 4.4vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 700;
    text-wrap: balance;
}

.intro .ba {
    margin-top: 22px;
}

.intro__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
}

.intro__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--ink-2);
}

/* Layer 2: one project per screen */

.duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
}

.case .layer__inner {
    max-width: 1040px;
}

.frame {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg);
    box-shadow: var(--hang);
    color: inherit;
    text-decoration: none;
    text-align: left;
}

a.frame {
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

a.frame:hover {
    transform: translateY(-4px);
    box-shadow: var(--hang-up);
}

.frame__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-3);
}

.frame__screen {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
}

.frame__screen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.frame__screen--app img {
    object-position: top left;
}

.case__text {
    margin-top: 44px;
}

.case h2 + .duo,
.case .h2 + .duo {
    margin-top: 28px;
}

.layer.case,
.layer.trust {
    padding-block: clamp(40px, 6vh, 96px);
}

.case h3 {
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 700;
    text-wrap: balance;
}

.case h3 .muted {
    color: var(--ink-3);
    font-weight: 500;
}

.case .ba {
    margin-top: 12px;
}

.meta {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-2);
}

.meta .sep {
    margin: 0 6px;
    color: var(--ink-3);
}

/* Layer 3: why trust — two equal, separate items */

.trust .h2 {
    margin-bottom: clamp(32px, 5vh, 56px);
}

.trust .layer__inner {
    max-width: 1100px;
}

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

.trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px clamp(24px, 4vw, 56px);
}

.trust__item + .trust__item {
    border-left: 1px solid var(--line);
}

.org {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.org img,
.org .org__icon {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
}

.org__icon {
    display: grid;
    place-items: center;
    background: var(--ink);
    color: #fff;
}

.org__icon svg {
    width: 22px;
    height: 22px;
}

.trust__desc {
    margin-top: 8px;
    font-size: 15px;
    color: var(--ink-2);
}

.trust__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
    margin-top: 24px;
}

/* Uzum: cancelled orders falling, drawn as a small chart */
.drop {
    flex-direction: column;
    align-items: stretch;
    max-width: 440px;
    margin-inline: auto;
    text-align: left;
}

.drop__from {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink-from);
}

.drop__chart {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 10px;
    overflow: visible;
}

.drop__grid {
    stroke: var(--line);
    stroke-width: 1;
    stroke-dasharray: 3 5;
}

.drop__foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    font-size: 14px;
    color: var(--ink-2);
}

.drop__foot b {
    font-size: clamp(40px, 3.8vw, 56px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--live-ink);
}

.trust__text {
    max-width: 420px;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-2);
    text-wrap: pretty;
}

.video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: var(--night);
    box-shadow: var(--hang);
}

.video img,
.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.video img {
    transition: transform 0.6s var(--ease-out);
}

a.video:hover img {
    transform: scale(1.03);
}

.video__play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.95);
    color: var(--ink);
    box-shadow: 0 6px 20px rgb(17 19 24 / 0.25);
    transition: transform 0.25s var(--ease-out);
}

.video__play svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
    fill: currentColor;
}

a.video:hover .video__play {
    transform: scale(1.06);
}



/* Layer 4: start */

.start__offer {
    font-size: 15px;
    line-height: 1.7;
    color: var(--night-ink-2);
    text-wrap: balance;
}

.start__offer b {
    color: #fff;
    font-weight: 600;
}

.start__offer i {
    margin: 0 8px;
    font-style: normal;
    color: #8790a3;
}

.start__offer + .start__offer {
    margin-top: 6px;
}

.start h2 {
    max-width: 12ch;
    margin: 48px auto 0;
    font-size: clamp(44px, 6vw, 80px);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 700;
    text-wrap: balance;
}

.start .lede {
    color: var(--night-ink-2);
}

.start .btn--primary {
    margin-top: 36px;
}

.start__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-top: 20px;
    font-size: 16px;
}

.start__links a {
    color: #fff;
    text-decoration-color: #3a4156;
}

.start__links a:hover {
    text-decoration-color: #fff;
}

.layer--night ::selection {
    background: #2a3a5e;
    color: #fff;
}

/* Footer: one quiet block */

.site-footer {
    padding: 40px 20px 32px;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-2);
}

.site-footer p + p {
    margin-top: 6px;
}

.site-footer .sep {
    margin: 0 6px;
    color: var(--ink-3);
}

.social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    margin-top: 16px;
}

.social a {
    color: var(--ink-2);
    text-decoration: none;
}

.social a:hover {
    color: var(--ink);
}

.copy {
    margin-top: 10px;
    font-size: 13px;
    color: var(--ink-3);
}

/* Layer rail (desktop): where am I, 1 to 4 */

.rail {
    position: fixed;
    right: 24px;
    top: 50%;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateY(-50%);
}

.rail a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 28px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-3);
    text-decoration: none;
}

.rail a span {
    opacity: 0;
    transition: opacity 0.2s;
}

.rail a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.45;
    transition: height 0.3s var(--ease-out), opacity 0.2s;
}

.rail a:hover span,
.rail a[aria-current="true"] span {
    opacity: 1;
}

.rail a[aria-current="true"] {
    color: var(--ink);
}

.rail a[aria-current="true"]::after {
    height: 22px;
    opacity: 1;
}

.rail.on-dark a {
    color: var(--night-ink-2);
}

.rail.on-dark a[aria-current="true"] {
    color: #fff;
}

/* ---------- Sticky Telegram button (phones) ---------- */

.sticky-bar,
.sticky-cta {
    display: none;
}

/* ---------- Load ---------- */

@media (prefers-reduced-motion: no-preference) {
    .js [data-enter] {
        animation: enter 0.8s var(--ease-out) both;
        animation-delay: calc(var(--i, 0) * 70ms + 40ms);
    }
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* ---------- Motion ----------
   Every move shows a result: the old way gets crossed out, the screens
   hang one by one, the cancellation chart falls to 0.5%. Off without JS
   and for people who ask for less motion. */

@media (prefers-reduced-motion: no-preference) {
    /* Blocks rise into place once they are on screen */
    .js [data-reveal]:not(.is-in) {
        opacity: 0;
    }

    .js [data-reveal].is-in {
        animation: rise 0.9s var(--ease-out) backwards;
        animation-delay: calc(var(--i, 0) * 90ms);
    }

    /* Screenshots hang one after another */
    .js [data-hang]:not(.is-in) > .frame {
        opacity: 0;
    }

    .js [data-hang].is-in > .frame {
        animation: hang 1s var(--ease-out) backwards;
    }

    .js [data-hang].is-in > .frame:last-child {
        animation-delay: 0.15s;
    }

    /* Before -> after: the old way is crossed out, then the new one appears */
    .js .ba s {
        color: var(--ink);
        text-decoration: none;
        background: linear-gradient(currentColor, currentColor) no-repeat 0 56% / 0 1px;
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
        transition: background-size 0.6s cubic-bezier(0.65, 0, 0.35, 1) var(--t-strike, 0.25s), color 0.6s ease var(--t-strike, 0.25s);
    }

    .js .ba .ba__arrow {
        opacity: 0;
        transform: translate(-10px, -0.1em);
        transition: opacity 0.4s ease var(--t-after, 0.8s), transform 0.5s var(--ease-out) var(--t-after, 0.8s);
    }

    .js .ba b {
        opacity: 0;
        filter: blur(4px);
        transition: opacity 0.6s ease calc(var(--t-after, 0.8s) + 0.1s), filter 0.6s ease calc(var(--t-after, 0.8s) + 0.1s);
    }

    .js .is-in .ba s,
    .js .ba.is-in s {
        color: var(--ink-from);
        background-size: 100% 1px;
    }

    .js .is-in .ba .ba__arrow,
    .js .ba.is-in .ba__arrow {
        opacity: 1;
        transform: translateY(-0.1em);
    }

    .js .is-in .ba b,
    .js .ba.is-in b {
        opacity: 1;
        filter: none;
    }

    .intro .ba {
        --t-strike: 0.75s;
        --t-after: 1.3s;
    }

    /* "Available" dot breathes */
    .intro__note .dot {
        position: relative;
    }

    .intro__note .dot::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: var(--live);
        animation: breathe 2.8s ease-out 2s infinite;
    }

    /* Uzum chart: the line falls, the number counts down */
    .js .drop__line {
        stroke-dasharray: 1 1;
        stroke-dashoffset: 1;
        transition: stroke-dashoffset 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.3s;
    }

    .js .drop__area {
        opacity: 0;
        transition: opacity 1.2s ease 1.1s;
    }

    .js .drop__dot,
    .js .drop__halo {
        opacity: 0;
        transform: scale(0.2);
        transform-box: fill-box;
        transform-origin: center;
        transition: opacity 0.3s ease 1.8s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s;
    }

    .drop__pulse {
        opacity: 0;
        transform-box: fill-box;
        transform-origin: center;
    }

    .js .drop.is-in .drop__line {
        stroke-dashoffset: 0;
    }

    .js .drop.is-in .drop__area,
    .js .drop.is-in .drop__dot,
    .js .drop.is-in .drop__halo {
        opacity: 1;
        transform: none;
    }

    .js .drop.is-in .drop__pulse {
        animation: pulse 2s ease-out 2.4s 2;
    }

    /* Buttons: the arrow leans forward */
    .btn .icon {
        transition: transform 0.25s var(--ease-out);
    }

    .btn:hover .icon {
        transform: translateX(3px);
    }

    /* Desktop: a screen tilts slightly toward the cursor */
    @media (hover: hover) and (pointer: fine) {
        .js .duo > .frame {
            transition: transform 0.4s var(--ease-out), box-shadow 0.35s var(--ease-out);
        }

        .js .duo > .frame.is-tilting {
            transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
            box-shadow: var(--hang-up);
        }
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
}

@keyframes hang {
    from {
        opacity: 0;
        transform: translateY(48px) scale(0.96);
    }
}

@keyframes hang-side {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
}

@keyframes breathe {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    70%,
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(2.6);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media (max-width: 1100px) {
    .rail {
        display: none;
    }
}

@media (max-width: 1060px) {
    .nav {
        display: none;
    }
}

/* ---------- Phones ---------- */

@media (max-width: 759px) {
    .header-right .btn--dark {
        display: none;
    }

    .site-header__inner {
        padding-inline: 16px;
    }

    .layer {
        padding: 56px 20px;
    }

    .who {
        gap: 16px;
    }

    .who img {
        width: 84px;
        height: 84px;
    }

    .who b {
        font-size: 22px;
    }

    .who span {
        font-size: 16px;
    }

    .intro h1 {
        margin-top: 28px;
        font-size: 44px;
        line-height: 1.02;
    }

    .ba {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 17px;
    }

    .ba__arrow {
        margin: 0 8px 0 0;
    }

    .intro .ba {
        margin-top: 20px;
    }

    .intro__actions {
        margin-top: 32px;
    }

    .intro__actions .btn--primary,
    .start .btn--primary {
        display: flex;
        width: 100%;
        padding: 16px;
    }

    .case .h2 + .duo {
        margin-top: 28px;
    }

    /* Phones: the two screenshots overlap, like the approved mobile layout */
    .duo {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .duo > .frame {
        grid-area: 1 / 1;
        width: 85%;
        border-radius: 12px;
    }

    .duo > .frame:first-child {
        justify-self: start;
        align-self: start;
    }

    .js [data-hang].is-in > .frame:last-child {
        animation-name: hang-side;
        animation-delay: 0.25s;
    }

    .duo > .frame:last-child {
        justify-self: end;
        position: relative;
        margin-top: 36%;
        outline: 6px solid var(--surface);
    }

    .frame__bar {
        justify-content: flex-start;
        height: 26px;
        padding: 0 10px;
    }

    .case__text {
        margin-top: 28px;
    }

    .trust .h2 {
        margin-bottom: 28px;
    }

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

    .trust__item {
        padding: 0;
    }

    .trust__item + .trust__item {
        margin-top: 40px;
        padding-top: 40px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .trust__visual {
        min-height: 0;
        margin-top: 18px;
    }

    .drop__from {
        font-size: 20px;
    }

    .drop__foot b {
        font-size: 44px;
    }

    .video {
        border-radius: 14px;
    }

    .video__play {
        width: 52px;
        height: 52px;
        margin: -26px 0 0 -26px;
    }

    .start__offer i {
        margin: 0 4px;
    }

    .start h2 {
        margin-top: 36px;
        font-size: 40px;
    }

    .site-footer {
        padding-bottom: 104px;
    }

    /* White bar so iOS Safari tints its toolbar white, not accent blue */
    .sticky-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        display: block;
        padding: 10px 12px max(10px, env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--line);
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
    }

    .sticky-bar.is-visible {
        transform: none;
        visibility: visible;
        transition: transform 0.3s var(--ease-out), visibility 0s;
    }

    .sticky-cta {
        display: flex;
        width: 100%;
        padding: 16px;
    }
}

@media (max-width: 380px) {
    .lang button {
        min-width: 32px;
        padding: 0 6px;
    }

    .intro h1 {
        font-size: 40px;
    }
}
