/* ============================================
   1. VARIABLES / HERO IMAGE
   Replace with: url("../img/hero-background.webp")
   Recommended composition is documented in SITE_UNIQUENESS.md.
============================================ */
:root {
    --hero-image: url("../img/hero-background.webp");
    --ink: #111827;
    --paper: #f5f2ea;
    --white: #fffdf8;
    --pink: #ec4899;
    --apricot: #ffb36b;
    --ice: #a9e5f2;
    --violet: #7c6cf2;
    --line: rgba(17, 24, 39, 0.22);
    --gutter: clamp(1.25rem, 4vw, 5rem);
    --section-space: clamp(5rem, 10vw, 10rem);
}
/* ============================================
   2. RESET / BASE
============================================ */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
}
button,
input,
textarea {
    font: inherit;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
a {
    color: inherit;
}
img {
    display: block;
    max-width: 100%;
}
[hidden] {
    display: none !important;
}
:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 4px;
}
.skip-link {
    position: fixed;
    z-index: 100;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    transform: translateY(-180%);
    color: var(--white);
    background: var(--ink);
}
.skip-link:focus {
    transform: translateY(0);
}
/* ============================================
   3. TYPOGRAPHY / CONTROLS
============================================ */
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1,
h2 {
    letter-spacing: -0.055em;
    line-height: 0.94;
}
h1 {
    margin-bottom: 2rem;
    font-size: clamp(3.8rem, 9.4vw, 11rem);
    font-weight: 500;
}
h2 {
    font-size: clamp(2.6rem, 6vw, 6.8rem);
    font-weight: 500;
}
.text-cta,
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-width: 15rem;
    padding: 0.8rem 0;
    border: 0;
    border-bottom: 2px solid currentColor;
    color: inherit;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms ease, gap 180ms ease;
}
.text-cta:hover,
.submit-button:hover {
    gap: 3rem;
    color: var(--pink);
}
/* ============================================
   4. HEADER / BOTTOM NAVIGATION
============================================ */
.site-header {
    position: absolute;
    z-index: 20;
    inset: 0 0 auto;
    padding: 1.5rem var(--gutter);
}
.site-logo {
    display: inline-block;
    width: min(13.25rem, 48vw);
}
.site-nav {
    position: fixed;
    z-index: 20;
    right: var(--gutter);
    bottom: 1.5rem;
    left: var(--gutter);
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 3rem);
    padding: 1rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(12px);
}
.site-nav a {
    text-decoration: none;
}
.site-nav a:hover {
    color: var(--ice);
}
.site-nav .nav-email {
    margin-left: auto;
}
.language-switcher {
    position: absolute;
    top: 2rem;
    right: var(--gutter);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.language-switcher span {
    display: none;
}

.language-switcher button {
    min-width: 2.8rem;
    padding: 0.45rem 0.75rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.language-switcher button[aria-pressed="true"] {
    color: #111827;
    background: var(--pink);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.language-switcher button[aria-pressed="false"] {
    opacity: 1;
}

.language-switcher button[aria-pressed="false"]:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.language-switcher button:focus-visible {
    outline: 2px solid var(--ice);
    outline-offset: 2px;
}
.menu-toggle {
    display: none;
}
/* ============================================
   5. HERO / HINGED FAN
============================================ */
.hero {
    position: relative;
    min-height: 100svh;
    padding: clamp(8rem, 14vh, 11rem) var(--gutter) 8rem;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
}
.hero__image-layer {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(17, 24, 39, 0.66), rgba(17, 24, 39, 0.8)), var(--hero-image);
    background-position: center;
    background-size: cover;
}
.hero__copy {
    position: relative;
    z-index: 2;
    max-width: 92rem;
}
.hero__intro,
.hero__aside {
    font-family: "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero__intro {
    margin-bottom: clamp(2rem, 5vh, 4.5rem);
}
.hero h1 span {
    display: block;
}
.hero__accent {
    margin-left: clamp(0rem, 8vw, 9rem);
    color: var(--pink);
}
.hero__summary {
    max-width: 32rem;
    margin-left: clamp(0rem, 42vw, 42rem);
    font-size: clamp(1.1rem, 1.5vw, 1.45rem);
}
.hero .text-cta {
    margin-left: clamp(0rem, 42vw, 42rem);
}
.hero__aside {
    position: absolute;
    right: var(--gutter);
    bottom: 7rem;
    z-index: 2;
    writing-mode: vertical-rl;
    font-size: 0.72rem;
}
.hero-fan {
    position: absolute;
    z-index: 1;
    bottom: -5rem;
    left: clamp(-4rem, 4vw, 5rem);
    width: clamp(17rem, 31vw, 35rem);
    aspect-ratio: 1;
}
.hero-fan__blade {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 48%;
    height: 18%;
    border-radius: 999px 999px 0 999px;
    transform-origin: left bottom;
}
.hero-fan__blade--one {
    background: var(--pink);
    transform: rotate(-75deg);
}
.hero-fan__blade--two {
    background: var(--apricot);
    transform: rotate(-44deg);
}
.hero-fan__blade--three {
    background: var(--ice);
    transform: rotate(-13deg);
}
.hero-fan__blade--four {
    background: var(--violet);
    transform: rotate(18deg);
}
.hero-fan__pivot {
    position: absolute;
    top: 46%;
    left: 46%;
    width: 8%;
    aspect-ratio: 1;
    border: 5px solid var(--white);
    border-radius: 50%;
    background: var(--ink);
}
/* ============================================
   6. WORKING VIEW
============================================ */
.working-view {
    padding: var(--section-space) var(--gutter);
}
.working-view__lead {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: clamp(2rem, 8vw, 9rem);
    align-items: end;
    margin-bottom: clamp(4rem, 9vw, 8rem);
}
.working-view__lead h2 {
    max-width: 13ch;
    margin-bottom: 0;
}
.working-view__lead p {
    max-width: 31rem;
    font-size: 1.2rem;
}
.decision-stack {
    max-width: 68rem;
    margin-left: auto;
}
.decision-stack article {
    display: grid;
    grid-template-columns: 0.65fr 1.4fr 1fr;
    gap: 2rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--line);
}
.decision-stack article > span {
    color: var(--pink);
    font-family: "SFMono-Regular", Consolas, monospace;
}
.decision-stack h3 {
    margin-bottom: 0;
    font-size: clamp(1.35rem, 2.4vw, 2.5rem);
    font-weight: 500;
}
/* ============================================
   7. CAPABILITIES SWITCHBOARD
============================================ */
.capabilities {
    padding: var(--section-space) var(--gutter);
    color: var(--white);
    background: var(--violet);
}
.capabilities__header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: 5rem;
}
.capabilities__header h2 {
    margin-bottom: 0;
}
.capabilities__header p {
    max-width: 28rem;
}
.switchboard {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}
.switchboard article {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.switchboard button {
    display: grid;
    grid-template-columns: 4rem 1fr auto;
    width: 100%;
    padding: 1.3rem 0;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.switchboard button span {
    font-size: clamp(1.8rem, 4vw, 4.5rem);
    letter-spacing: -0.04em;
}
.switchboard button b,
.switchboard button i {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-style: normal;
    font-weight: 400;
}
.switchboard__panel {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(14rem, 0.7fr);
    gap: 2.5rem;
    padding: 0 0 2.2rem 4rem;
    align-items: start;
}
.switchboard__panel p {
    max-width: 42rem;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.6;
}

.switchboard__panel > span {
    margin: 0;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    text-transform: uppercase;
}
/* ============================================
   8. HANDOFF
============================================ */
.handoff {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    min-height: 78vh;
}
.handoff > h2 {
    display: flex;
    align-items: flex-end;
    margin: 0;
    padding: var(--section-space) var(--gutter);
    background: var(--apricot);
}
.handoff > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--section-space) var(--gutter);
    background: var(--ice);
}
.handoff p {
    padding: 1.5rem 0;
    border-top: 1px solid var(--ink);
    font-size: 1.15rem;
}
/* ============================================
   9. CONTACT
============================================ */
.contact {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(4rem, 10vw, 10rem);
    padding: var(--section-space) var(--gutter);
    color: var(--white);
    background: var(--ink);
}
.contact__intro {
    position: sticky;
    top: 3rem;
    align-self: start;
}
.contact__intro h2 {
    margin: 2rem 0;
}
.contact__intro > p {
    max-width: 32rem;
}
.contact__intro > a {
    display: inline-block;
    margin-top: 2rem;
}
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.contact-form label {
    display: grid;
    gap: 0.5rem;
}
.contact-form label:nth-of-type(3),
.contact-form label:nth-of-type(4),
.contact-form .consent,
.contact-form .submit-button,
.contact-form .form-status {
    grid-column: 1 / -1;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0;
    color: var(--white);
    background: transparent;
}
.contact-form textarea {
    resize: vertical;
}
.consent {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: start;
}
.consent input {
    width: auto;
    margin-top: 0.35rem;
}
.submit-button {
    color: var(--white);
}
.form-honeypot {
    position: absolute;
    left: -10000px;
}
.form-status {
    min-height: 1.5rem;
}
.form-status.is-success {
    color: var(--ice);
}
.form-status.is-error {
    color: #ff9acb;
}
/* ============================================
   10. FOOTER
============================================ */
.site-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem var(--gutter) 7rem;
    border-top: 1px solid var(--line);
    background: var(--paper);
}
.site-footer p {
    margin-bottom: 0.25rem;
}
/* ============================================
   11. PRIVACY / ERROR PAGES
============================================ */
.legal-page {
    padding: 9rem var(--gutter) 6rem;
}
.legal-page header {
    max-width: 65rem;
    margin-bottom: 5rem;
}
.legal-page article {
    max-width: 52rem;
    margin-left: auto;
}
.legal-page h2 {
    margin-top: 4rem;
    font-size: clamp(2rem, 4vw, 4rem);
}
.legal-lang[hidden] {
    display: none;
}
.error-page {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: var(--gutter);
    text-align: center;
}
/* ============================================
   12. RESPONSIVE / MOTION
============================================ */
@media (max-width: 800px) {
    .site-header {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .site-logo {
        width: 10.5rem;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.5rem;
        border: 0;
        color: var(--white);
        background: transparent;
    }
    .menu-toggle__mark {
        width: 0.7rem;
        height: 0.7rem;
        border-radius: 50%;
        background: var(--pink);
    }
    .site-nav {
        position: absolute;
        inset: 5rem var(--gutter) auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }
    .site-nav.is-open {
        display: flex;
    }
    .site-nav .nav-email {
        margin-left: 0;
    }
    .language-switcher {
        position: fixed;
        z-index: 30;
        top: auto;
        right: 1rem;
        bottom: 1rem;
        padding: 0.45rem 0.65rem;
        color: var(--white);
        background: var(--ink);
    }
    .hero {
        min-height: 780px;
        padding-top: 8rem;
    }
    .hero__accent,
    .hero__summary,
    .hero .text-cta {
        margin-left: 0;
    }
    .hero-fan {
        bottom: -1rem;
        left: -3rem;
        width: 22rem;
    }
    .hero__aside {
        display: none;
    }
    .working-view__lead,
    .capabilities__header,
    .handoff,
    .contact {
        grid-template-columns: 1fr;
    }
    .decision-stack article {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .switchboard__panel {
        grid-template-columns: 1fr;
        padding-left: 4rem;
    }
    .handoff {
        min-height: 0;
    }
    .contact__intro {
        position: static;
    }
    .site-footer {
        grid-template-columns: 1fr;
        padding-bottom: 6rem;
    }
}
@media (max-width: 520px) {
    h1 {
        font-size: clamp(3.2rem, 16vw, 5rem);
    }
    .hero {
        min-height: 720px;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
    .contact-form label {
        grid-column: 1 / -1;
    }
    .switchboard button {
        grid-template-columns: 2rem 1fr auto;
    }
}
@keyframes fan-breathe {
    50% {
        transform: rotate(4deg);
    }
}
.hero-fan {
    animation: fan-breathe 7s ease-in-out infinite;
    transform-origin: 50% 50%;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
