@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-latin.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --night: #14040B;
    --night-2: #24070F;
    --cassis: #721727;
    --cassis-hi: #A3304A;
    --coral: #FF7F50;
    --dawn: #FFC99A;
    --teal: #1DB9C3;
    --rose: #E0607E;

    --ink: #F7E9EC;
    --ink-muted: rgba(247, 233, 236, 0.7);
    --ink-faint: rgba(247, 233, 236, 0.16);
    --ink-dark: #2A0712;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Instrument Sans", system-ui, sans-serif;
    --display-axes: "SOFT" 100, "WONK" 1, "opsz" 144;

    --gutter: clamp(1rem, 4vw, 3rem);
    --max-width: 1200px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background: var(--night);
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    background: var(--night);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 4px;
    border-radius: 4px;
}

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

ul {
    list-style: none;
}

[hidden] {
    display: none !important;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-block;
    font: 600 0.95rem/1 var(--font-body);
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.btn--accent {
    background: var(--coral);
    color: var(--ink-dark);
}

.btn--accent:hover {
    background: var(--dawn);
}

.btn--ghost {
    background: transparent;
    color: var(--ink-muted);
    border-color: var(--ink-faint);
}

.btn--ghost:hover {
    color: var(--ink);
    border-color: var(--ink-muted);
}

/* ==================== LANGUAGE SWITCHER ==================== */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.lang-switcher__btn {
    background: none;
    border: none;
    color: var(--ink-muted);
    font: 500 0.85rem/1 var(--font-body);
    padding: 0.4rem;
    cursor: pointer;
}

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

.lang-switcher__btn.active {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-underline-offset: 0.35em;
}

.lang-switcher__sep {
    color: var(--ink-faint);
}

/* ==================== COOKIE BANNER ==================== */

.cookie-banner {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: var(--gutter);
    z-index: 100;
    max-width: 680px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    background: rgba(20, 4, 11, 0.92);
    border: 1px solid var(--ink-faint);
    border-radius: 14px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(calc(100% + 3rem));
    animation: cookie-slide-up 0.6s var(--ease-out) 1s forwards;
}

@keyframes cookie-slide-up {
    to { transform: translateY(0); }
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner__content p {
    flex: 1;
    min-width: 220px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
}

.cookie-banner .btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
}

/* ==================== HOME: STARS + MASTHEAD ==================== */

#particles-js {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.masthead {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem var(--gutter);
}

.masthead__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.masthead__logo {
    width: 34px;
    height: 34px;
}

.masthead__name {
    font-family: var(--font-display);
    font-variation-settings: var(--display-axes);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ==================== HERO ==================== */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 0 clamp(3rem, 9vh, 6rem);
    background:
        radial-gradient(ellipse 60% 50% at 85% 10%, rgba(141, 78, 133, 0.28), transparent 70%),
        var(--night);
}

.hero__inner {
    width: 100%;
    will-change: transform;
}

.hero__claim {
    font-family: var(--font-display);
    font-variation-settings: var(--display-axes);
    font-weight: 380;
    font-size: clamp(2.75rem, 7.6vw, 7.5rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
    max-width: 14ch;
    text-wrap: balance;
}

.hero__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: clamp(2.5rem, 6vh, 4.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--ink-faint);
}

.hero__sub {
    color: var(--ink-muted);
    font-size: 1.05rem;
}

@media (prefers-reduced-motion: no-preference) {
    .hero__claim {
        animation: rise-in 1.4s var(--ease-out) both;
    }
    .hero__foot {
        animation: rise-in 1.4s var(--ease-out) 0.35s both;
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(0.6em);
        filter: blur(8px);
    }
}

/* ==================== BANDS ==================== */

.band {
    padding: clamp(6rem, 13vw, 10rem) 0;
}

.band--about {
    background: linear-gradient(var(--night), var(--night-2));
}

.band--services {
    background: linear-gradient(var(--night-2), #4A0C1D);
}

.band--customers {
    background: linear-gradient(#4A0C1D, #7A1A2E);
}

.band__heading {
    font-family: var(--font-display);
    font-variation-settings: var(--display-axes);
    font-weight: 400;
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.split {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 2rem clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.about__text {
    font-size: clamp(1.2rem, 1.9vw, 1.5rem);
    line-height: 1.6;
    max-width: 38em;
}

/* ==================== SERVICES ==================== */

.services {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.service {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 1rem clamp(2rem, 6vw, 6rem);
    padding: clamp(1.75rem, 3vw, 2.75rem) 0;
    border-top: 1px solid var(--ink-faint);
}

.service:last-child {
    border-bottom: 1px solid var(--ink-faint);
}

.service h3 {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    font-family: var(--font-display);
    font-variation-settings: var(--display-axes);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.15;
}

.service h3::before {
    content: "";
    flex: none;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--star);
    box-shadow: 0 0 14px 3px var(--star);
    transform: translateY(-0.2em);
}

.service p {
    color: var(--ink-muted);
    max-width: 52ch;
    font-size: 1.1rem;
}

/* ==================== CUSTOMERS ==================== */

.logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.75rem 2rem;
    align-items: center;
}

.logos img {
    width: 100%;
    max-width: 170px;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
    opacity: 0.78;
    transition: opacity 0.25s;
}

.logos li:hover img {
    opacity: 1;
}

/* ==================== DAWN / CONTACT ==================== */

.finale {
    position: relative;
    overflow: hidden;
    background: linear-gradient(#7A1A2E 0%, #C2414A 38%, var(--coral) 68%, var(--dawn) 100%);
    color: var(--ink-dark);
}

.dawn {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(5rem, 16vh, 10rem);
}

.dawn__sun {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(120vw, 1100px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #FFF4E4 0%, #FFE2BE 30%, rgba(255, 196, 150, 0.55) 52%, rgba(255, 170, 120, 0) 70%);
    transform: translate(-50%, calc(55% + var(--sun-drop, 0%)));
    pointer-events: none;
}

.dawn__inner {
    position: relative;
    width: 100%;
    text-align: center;
}

.dawn__heading {
    font-family: var(--font-display);
    font-variation-settings: var(--display-axes);
    font-weight: 400;
    font-size: clamp(2rem, 4.6vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 18ch;
    margin: 0 auto 2.25rem;
    text-wrap: balance;
}

.dawn .btn--accent {
    background: var(--ink-dark);
    color: var(--dawn);
}

.dawn .btn--accent:hover {
    background: var(--cassis);
}

.dawn a:focus-visible {
    outline-color: var(--ink-dark);
}

/* ==================== FOOTER ==================== */

.footer {
    padding: 1.75rem 0;
    font-size: 0.88rem;
    color: var(--ink-muted);
    border-top: 1px solid var(--ink-faint);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__links {
    display: flex;
    gap: 1.75rem;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

.page--home .footer {
    position: relative;
    color: var(--ink-dark);
    border-top: none;
}

.page--home .footer a:focus-visible {
    outline-color: var(--ink-dark);
}

/* ==================== LEGAL PAGES ==================== */

.page--legal .lang-switcher {
    position: fixed;
    top: 1.25rem;
    right: var(--gutter);
    z-index: 10;
}

.legal-content {
    max-width: 780px;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.legal-content .back-link {
    display: inline-block;
    margin-bottom: 2.5rem;
    color: var(--ink-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.legal-content .back-link:hover {
    color: var(--ink);
}

.legal-content h1 {
    font-family: var(--font-display);
    font-variation-settings: var(--display-axes);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    line-height: 1.05;
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-variation-settings: var(--display-axes);
    font-weight: 450;
    font-size: 1.4rem;
    margin: 2.5rem 0 0.75rem;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content ul {
    color: var(--ink-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--teal);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 800px) {
    .split,
    .service {
        grid-template-columns: 1fr;
    }

    .logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.25rem 1.5rem;
    }

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

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

    .cookie-banner {
        animation: none;
        transform: none;
    }
}
