*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--graphite);
    background: var(--milk);
    line-height: 1.55;
    font-size: 17px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.wrap {
    width: min(calc(100% - 48px), var(--wrap));
    margin: 0 auto;
}

.wrap--narrow {
    width: min(calc(100% - 48px), 860px);
}

.eyebrow {
    margin: 0 0 18px;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.eyebrow--dark {
    color: var(--burgundy);
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--black);
}

.section-title--light {
    color: var(--milk);
}

.lede {
    margin-top: 22px;
    max-width: 38rem;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.lede--light {
    color: var(--milk-dim);
}

.section-note {
    margin-top: 56px;
    max-width: 36rem;
    font-size: 1.15rem;
    color: var(--graphite);
    border-left: 1px solid var(--gold);
    padding-left: 22px;
}

.section {
    position: relative;
    padding: 128px 0;
    overflow: hidden;
}

.section--light {
    background: var(--milk);
}

.section--dark {
    background: var(--black);
    color: var(--milk);
}

.section-head {
    max-width: 46rem;
    margin-bottom: 72px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 2px;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
    transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--light {
    background: var(--milk);
    color: var(--black);
}

.btn--ghost {
    background: transparent;
    color: var(--milk);
    border-color: var(--dark-line);
}

.btn--ghost:hover {
    border-color: var(--gold);
}

.btn--dark {
    background: var(--graphite);
    color: var(--milk);
    width: 100%;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    height: var(--header);
}

.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--milk);
}

.site-header__mark {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-header__link {
    font-size: 14px;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 2px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

[data-tg-stagger] {
    opacity: 0;
    transform: translateY(10px);
}

.tg-chat.is-alive [data-tg-stagger],
.tg-stack.is-alive [data-tg-stagger],
.tg-phone.is-alive [data-tg-stagger] {
    animation: rise-in 0.7s var(--ease) forwards;
}

.tg-chat.is-alive [data-tg-stagger]:nth-child(1),
.tg-stack.is-alive [data-tg-stagger]:nth-child(1),
.tg-phone.is-alive [data-tg-stagger]:nth-child(1) { animation-delay: 0.15s; }
.tg-chat.is-alive [data-tg-stagger]:nth-child(2),
.tg-stack.is-alive [data-tg-stagger]:nth-child(2),
.tg-phone.is-alive [data-tg-stagger]:nth-child(2) { animation-delay: 0.32s; }
.tg-chat.is-alive [data-tg-stagger]:nth-child(3),
.tg-stack.is-alive [data-tg-stagger]:nth-child(3),
.tg-phone.is-alive [data-tg-stagger]:nth-child(3) { animation-delay: 0.5s; }
.tg-chat.is-alive [data-tg-stagger]:nth-child(4),
.tg-phone.is-alive [data-tg-stagger]:nth-child(4) { animation-delay: 0.68s; }
.tg-chat.is-alive [data-tg-stagger]:nth-child(5),
.tg-phone.is-alive [data-tg-stagger]:nth-child(5) { animation-delay: 0.86s; }

@keyframes rise-in {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    [data-reveal],
    [data-tg-stagger] {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
