/* Ambi Design System */

/* --- Fonts --- */

@font-face {
    font-family: "Involve";
    src: url("fonts/involve-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Involve";
    src: url("fonts/involve-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Involve";
    src: url("fonts/involve-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Involve";
    src: url("fonts/involve-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "KazimirText";
    src: url("fonts/kazimirtext-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Martian Mono — variable font, cyrillic-ext */
@font-face {
    font-family: "Martian Mono";
    src: url("fonts/martianmono-cyrillic-ext.woff2") format("woff2");
    font-weight: 300 400;
    font-style: normal;
    font-display: swap;
    unicode-range:
        U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

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

/* Martian Mono — variable font, latin-ext */
@font-face {
    font-family: "Martian Mono";
    src: url("fonts/martianmono-latin-ext.woff2") format("woff2");
    font-weight: 300 400;
    font-style: normal;
    font-display: swap;
    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;
}

/* Martian Mono — variable font, latin */
@font-face {
    font-family: "Martian Mono";
    src: url("fonts/martianmono-latin.woff2") format("woff2");
    font-weight: 300 400;
    font-style: normal;
    font-display: swap;
    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;
}

/* --- Reset --- */

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

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #f4f3f0;
    color: #666;
    font-family: "KazimirText", Georgia, serif;
    font-weight: 400;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* --- Layout --- */

.page {
    max-width: 1280px;
    margin: 0 auto;
}

.section {
    padding: 64px 80px;
}

.section--hero {
    min-height: calc(100vh - 82px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 160px;
    padding-bottom: 80px;
    gap: 32px;
}

/* --- Typography --- */

h1 {
    font-family: "Involve", system-ui, sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #111;
}

h2 {
    font-family: "Involve", system-ui, sans-serif;
    font-weight: 600;
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: -0.3px;
    color: #1a1a1a;
}

h3 {
    font-family: "Involve", system-ui, sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.15;
    color: #1a1a1a;
}

h4 {
    font-family: "Involve", system-ui, sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.2;
    color: #1a1a1a;
}

p {
    max-width: 680px;
    line-height: 1.6;
}

.body-text {
    color: #666;
    font-family: "KazimirText", Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
    max-width: 680px;
}

/* --- Caption --- */

.caption {
    font-family: "Martian Mono", ui-monospace, monospace;
    font-weight: 300;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
}

.caption--update {
    color: #777;
}
.caption--relaunch {
    color: #bbb;
}

/* --- Navigation --- */

.nav {
    display: flex;
    gap: 32px;
    padding: 32px 80px;
    align-items: center;
    min-height: 82px;
}

.nav--home {
    justify-content: flex-end;
}

.nav__logo {
    font-family: "Involve", system-ui, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #111;
    margin-right: auto;
}

.nav__link {
    font-family: "Martian Mono", ui-monospace, monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.nav__link:hover {
    border-bottom-color: #ccc;
}

.nav__link--active {
    border-bottom-color: #1a1a1a;
}

/* --- Hero --- */

.hero-links {
    display: flex;
    gap: 24px;
}

.hero-link {
    font-family: "Martian Mono", ui-monospace, monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
}

.hero-link:hover {
    color: #666;
}

.scroll-hint {
    font-family: "Martian Mono", ui-monospace, monospace;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border: 0;
    background: none;
    cursor: pointer;
    width: fit-content;
    transition: color 0.2s ease;
}

.scroll-hint:hover {
    color: #666;
}

.scroll-hint:focus-visible {
    outline: 1px solid #1a1a1a;
    outline-offset: 4px;
}

.scroll-hint__arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-hint__arrow {
        animation: scroll-hint-bob 2.6s ease-in-out infinite;
    }
    .scroll-hint:hover .scroll-hint__arrow {
        animation-play-state: paused;
        transform: translateY(3px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .page--home .scroll-hint__arrow {
        animation-delay: 0s;
    }
    .page--employees .scroll-hint__arrow {
        animation-delay: -0.3s;
    }
    .page--partners .scroll-hint__arrow {
        animation-delay: -0.6s;
    }
}

@keyframes scroll-hint-bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

/* --- Repeated list grids --- */

.products-list,
.values-list,
.formats-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 64px;
    margin-top: 48px;
}

.product,
.value,
.format {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product__title {
    font-family: "Involve", system-ui, sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.15;
    color: #1a1a1a;
}

.product__title a {
    color: inherit;
    text-decoration: none;
}

.product__title a:hover {
    color: #666;
}

.product__arrow {
    color: #999;
    font-size: 18px;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.product__title a:hover .product__arrow {
    transform: translate(3px, -2px);
}

/* --- Text blocks --- */

.text-blocks {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
}

/* --- Media mentions --- */

.media-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.media-item {
    font-family: "Martian Mono", ui-monospace, monospace;
    font-weight: 300;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    color: #999;
}

.media-item a {
    color: inherit;
    text-decoration: none;
}

.media-item a:hover {
    color: #1a1a1a;
}

/* Arrow hover effect */
.arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* ↗ — вправо-вверх */
a:hover .arrow {
    transform: translate(3px, -2px);
}

/* → — только вправо */
a:hover .arrow--right {
    transform: translate(4px, 0);
}

/* --- Contact --- */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 32px;
}

.contact-name {
    font-family: "KazimirText", Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
    color: #666;
}

.contact-links {
    font-family: "Martian Mono", ui-monospace, monospace;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #999;
}

.contact-links a {
    color: inherit;
    text-decoration: none;
}

.contact-links a:hover {
    color: #1a1a1a;
}

/* --- Vacancy --- */

.vacancy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Colophon --- */

.colophon-sep {
    padding: 0 80px;
}

.colophon-sep__line {
    height: 1px;
    background: #ccc;
}

.colophon {
    padding: 64px 80px 48px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.colophon__row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.colophon__text {
    font-family: "Martian Mono", ui-monospace, monospace;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #999;
}

.colophon__spacer {
    height: 20px;
}

.colophon a {
    color: inherit;
    text-decoration: none;
}

.colophon a:hover {
    color: #ccc;
}

.pictogram {
    width: 20px;
    height: 18px;
    flex-shrink: 0;
    overflow: visible;
}

.pictogram path {
    stroke: #bbb;
    stroke-width: 1.2;
    stroke-linecap: square;
    stroke-linejoin: miter;
    fill: none;
}

/* --- Ornaments --- */

.ornament {
    width: 100%;
    max-width: none;
    height: 48px;
    pointer-events: none;
    overflow: hidden;
}

.ornament--lead {
    margin: 16px 0 16px;
}

.ornament[data-ornament-motion="fugue"] {
    height: 64px;
}

.ornament[data-ornament-motion="fugue"] path {
    stroke-width: 1.1;
}

.ornament svg {
    display: block;
}

.ornament path {
    stroke: #bbb;
    stroke-width: 1;
    stroke-linecap: square;
    stroke-linejoin: miter;
    fill: none;
    will-change: stroke-dashoffset, opacity;
}

.ornament__base {
    opacity: 0.22;
}

.ornament__ink {
    opacity: 0;
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .section {
        padding: 48px 24px;
    }
    .section--hero {
        min-height: calc(100svh - 66px);
        padding: 80px 24px 48px;
    }
    .nav {
        padding: 20px 24px;
        gap: 16px;
    }
    h1 {
        font-size: 36px;
    }
    h2 {
        font-size: 28px;
    }
    h3 {
        font-size: 22px;
    }
    h4 {
        font-size: 18px;
    }
    p,
    .body-text {
        max-width: 100%;
    }
    .products-list,
    .values-list,
    .formats-list {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .colophon-sep {
        padding: 0 24px;
    }
    .colophon {
        padding: 48px 24px 32px;
        position: relative;
    }
    .pictogram {
        position: absolute;
        top: 48px;
        right: 24px;
    }
    .colophon__row1 {
        padding-right: 32px;
    }
    .hero-links {
        flex-direction: column;
        gap: 12px;
    }
    .scroll-hint {
        font-size: 12px;
    }
    .ornament {
        height: 36px;
    }
    .ornament--lead {
        margin: 12px 0 12px;
    }
    .ornament[data-ornament-motion="fugue"] {
        height: 52px;
    }
}
