/*
 * The site's frame since the pivot of 2026-11-24, on every page: the skip link, the eyebrow, the buttons,
 * the header and its navigation, the phone menu and the footer.
 * Spec: Design/pivot-2026-11-24/DESIGN.md, sections 3, 4 and 6.
 */

/* ---------- Skip link: the first stop for a keyboard ---------- */

.skip-link {
    position: absolute;
    left: var(--space-4);
    top: -100px;
    z-index: 100;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-small);
    background: var(--color-text);
    color: var(--color-ink);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: var(--space-4);
}

/* ---------- Eyebrow: the plain label above every expressive heading ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--text-label);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.eyebrow-hue {
    color: var(--service-hue, var(--color-text-muted));
}

.eyebrow-rule {
    width: 28px;
    height: 1px;
    background: var(--service-hue, var(--color-line-strong));
}

/* ---------- Buttons: white for every action, pills for every button ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    min-height: 52px;
    padding: 0 var(--space-6);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    transition: background-color var(--duration-standard) var(--ease-out),
        border-color var(--duration-standard) var(--ease-out),
        box-shadow var(--duration-gentle) var(--ease-out),
        transform var(--duration-standard) var(--ease-out);
}

.button-primary {
    background: var(--color-text);
    color: var(--color-ink);
    box-shadow: 0 0 0 0 rgba(208, 123, 255, 0);
}

.button-primary:hover {
    background: #FFFFFF;
    color: var(--color-ink);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 10px 40px -8px rgba(208, 123, 255, 0.55);
}

.button-primary:active {
    transform: translateY(1px);
}

.button-secondary {
    background: rgba(242, 239, 250, 0.04);
    border-color: var(--color-line-strong);
    color: var(--color-text);
}

.button-secondary:hover {
    background: rgba(242, 239, 250, 0.08);
    border-color: rgba(242, 239, 250, 0.4);
    color: var(--color-text);
}

.button-icon {
    flex: none;
    width: 18px;
    height: 18px;
    transition: transform var(--duration-standard) var(--ease-out);
}

.button:hover .button-icon-down {
    transform: translateY(2px);
}

.button:hover .button-icon-right {
    transform: translateX(3px);
}

/* ---------- Header: transparent over the opening, glass once the page moves ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    background: transparent;
    transition: background-color var(--duration-gentle) var(--ease-out),
        border-color var(--duration-gentle) var(--ease-out),
        backdrop-filter var(--duration-gentle) var(--ease-out);
}

.site-header.is-solid {
    background: rgba(7, 6, 11, 0.72);
    border-bottom-color: var(--color-line);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    height: 100%;
    max-width: calc(var(--content-width) + 2 * var(--page-gutter));
    margin: 0 auto;
    padding: 0 var(--page-gutter);
}

.brand-wordmark {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text);
    font-family: var(--font-display);
    font-stretch: 108%;
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.brand-wordmark img {
    width: auto;
    height: 26px;
}

.site-navigation-list {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation-link {
    position: relative;
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-pill);
    color: var(--color-text-muted);
    font-size: var(--text-small);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--duration-quick) var(--ease-out), background-color var(--duration-quick) var(--ease-out);
}

.site-navigation-link:hover {
    color: var(--color-text);
    background: rgba(242, 239, 250, 0.06);
}

.site-navigation-link[aria-current="page"] {
    color: var(--color-text);
}

/* The current page's link is underlined in its service's hue */
.site-navigation-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: var(--space-3);
    right: var(--space-3);
    bottom: 2px;
    height: 1px;
    background: var(--service-hue, var(--color-text));
}

.site-navigation-contact {
    min-height: 40px;
    margin-left: var(--space-3);
    padding: 0 var(--space-5);
    font-size: var(--text-small);
}

.menu-button {
    display: none;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: 0 var(--space-4);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-pill);
    background: rgba(7, 6, 11, 0.5);
    color: var(--color-text);
    font: 600 var(--text-small) var(--font-body);
    cursor: pointer;
}

.menu-button svg {
    width: 18px;
    height: 18px;
}

/* ---------- Phone menu: a full-screen sheet on ink ---------- */

.phone-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding: 0 var(--page-gutter) var(--space-7);
    background: var(--color-ink);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* The Close button sits exactly where the Menu button was */
.phone-menu-top {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    height: var(--header-height);
}

.phone-menu .menu-button {
    display: inline-flex;
}

.phone-menu-list {
    display: grid;
    margin: var(--space-6) 0 0;
    padding: 0;
    list-style: none;
}

.phone-menu-link {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-text);
    font-family: var(--font-display);
    font-stretch: 108%;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

/* Each service is led by a dot in its hue */
.phone-menu-link::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--service-hue, var(--color-text));
}

.phone-menu-contact {
    width: 100%;
    margin-top: var(--space-7);
}

/* While the menu is open, the page behind it stays still */
html.is-scroll-locked,
html.is-scroll-locked body {
    overflow: hidden;
}

@media (max-width: 1023px) {
    .site-navigation {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }
}

/*
 * On the narrowest phones the wordmark and the menu button only just fit side by side. Neither may shrink
 * (pages that still load site.css hold the wordmark at its full width), so the gap, the mark and the
 * button's padding give way instead, and the button stays inside the window.
 */
@media (max-width: 359px) {
    .site-header-inner {
        gap: var(--space-3);
    }

    .brand-wordmark,
    .menu-button {
        flex-shrink: 0;
    }

    .brand-wordmark img {
        height: 22px;
    }

    .menu-button {
        padding: 0 var(--space-3);
    }
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--color-line);
    background: var(--color-ink-deep);
    color: var(--color-text);
}

/* Top band: the closing statement and one action */
.site-footer-statement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5) var(--space-7);
    padding-top: var(--space-9);
    padding-bottom: var(--space-8);
}

.site-footer-statement-text {
    margin: 0;
    font-family: var(--font-display);
    font-stretch: 108%;
    font-weight: 620;
    font-size: var(--text-heading-2);
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* Middle: the wordmark and one row of links */
.site-footer-middle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5) var(--space-7);
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
    border-top: 1px solid var(--color-line);
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-6);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-links a {
    display: inline-block;
    padding: var(--space-2) 0;
    color: var(--color-text-muted);
    font-size: var(--text-small);
    text-decoration: none;
}

.site-footer-links a:hover {
    color: var(--color-text);
}

/* Bottom line: the legal line, Terms and Privacy */
.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3) var(--space-5);
    padding-top: var(--space-5);
    padding-bottom: var(--space-6);
    color: var(--color-text-faint);
    font-size: var(--text-label);
}

.site-footer-legal-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3) var(--space-5);
    width: 100%;
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-line);
}

.site-footer-legal p {
    margin: 0;
}

.site-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-5);
}

.site-footer-legal a {
    color: var(--color-text-faint);
}

.site-footer-legal a:hover {
    color: var(--color-text);
}

@media (max-width: 1023px) {
    .site-footer-statement {
        display: grid;
        justify-items: start;
    }
}

@media (max-width: 767px) {
    .site-footer-statement {
        padding-top: var(--space-8);
        padding-bottom: var(--space-7);
    }

    .site-footer-statement .button {
        width: 100%;
    }

    .site-footer-middle {
        display: grid;
        justify-items: start;
    }

    /* On phones the links wrap into two columns */
    .site-footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-1) var(--space-5);
        width: 100%;
    }
}
