/* ============================================================
   /contact

   Borrows the landing page's language (mono eyebrows, HUD corners,
   the wordmark gradient) without borrowing marketing.css, which
   carries a global reset and a body background that would fight the
   app chrome this page actually sits inside. Everything below is
   scoped under .vems-contact, tokens included.
   ============================================================ */

.vems-contact {
    --c-red: #e6273e;
    --c-magenta: #c0257f;
    --c-purple: #8d2ba6;
    --c-grad: linear-gradient(93deg, var(--c-red) 0%, var(--c-magenta) 50%, var(--c-purple) 100%);
    --c-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --c-display: "Archivo", system-ui, sans-serif;

    /* Dark defaults; the light block below overrides. Both keyed off data-theme, which
       theme.js resolves to an explicit 'light' or 'dark' on every page. */
    --c-bg: #05060b;
    --c-card: rgba(22, 26, 44, .96);
    --c-card-2: rgba(10, 12, 24, .96);
    --c-stroke: rgba(160, 175, 220, .16);
    --c-text: #f2f4fb;
    --c-dim: #8f9ab4;
    --c-ghost: rgba(210, 218, 245, .045);
    --c-hud: rgba(190, 200, 235, .28);
    --c-shadow: none;
    --c-field: rgba(4, 6, 14, .6);

    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--c-display);
    min-height: 100%;
    padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 3rem) 4rem;
    position: relative;
    overflow: hidden;
}

html[data-theme="light"] .vems-contact {
    --c-bg: #f1f2f8;
    --c-card: #ffffff;
    --c-card-2: #f2f4fb;
    --c-stroke: rgba(24, 32, 64, .15);
    --c-text: #1a1e2e;
    --c-dim: #5c6479;
    --c-ghost: rgba(24, 32, 64, .06);
    --c-hud: rgba(24, 32, 64, .32);
    --c-shadow: 0 22px 60px rgba(20, 30, 60, .1);
    --c-field: #ffffff;
}

/* Soft gradient wash behind the header, the one flourish that reads in both themes. */
.vems-contact::before {
    content: "";
    position: absolute;
    top: -30%;
    left: 50%;
    width: min(1100px, 120%);
    height: 70%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(192, 37, 127, .16), transparent 62%);
    pointer-events: none;
}

.vems-contact__inner {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
}

/* ================= HEADER ================= */

.vems-contact__eyebrow {
    font-family: var(--c-mono);
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--c-dim);
    display: flex;
    align-items: center;
    gap: .75rem;
}

.vems-contact__eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--c-stroke);
}

.vems-contact__title {
    font-size: clamp(2.6rem, 7vw, 4.75rem);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.02em;
    margin: 1.25rem 0 0;
}

.vems-contact__title em {
    font-style: normal;
    background: var(--c-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vems-contact__lede {
    margin-top: 1.1rem;
    max-width: 46ch;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.6;
    color: var(--c-dim);
}

/* ================= PRIMARY CARD ================= */

.vems-contact__primary {
    position: relative;
    margin-top: clamp(2.5rem, 5vw, 3.75rem);
    padding: clamp(1.75rem, 4vw, 3rem);
    background: linear-gradient(160deg, var(--c-card), var(--c-card-2));
    border: 1px solid var(--c-stroke);
    border-radius: 18px;
    box-shadow: var(--c-shadow);
}

/* HUD corner ticks, the landing page's signature framing device. */
.vems-contact__primary::before,
.vems-contact__primary::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    border: 1px solid var(--c-hud);
    pointer-events: none;
}

.vems-contact__primary::before {
    top: 12px;
    left: 12px;
    border-right: 0;
    border-bottom: 0;
}

.vems-contact__primary::after {
    bottom: 12px;
    right: 12px;
    border-left: 0;
    border-top: 0;
}

.vems-contact__label {
    font-family: var(--c-mono);
    font-size: .68rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--c-magenta);
}

html[data-theme="light"] .vems-contact__label {
    color: var(--c-purple);
}

.vems-contact__primary h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    margin: .6rem 0 .55rem;
    letter-spacing: -.01em;
}

.vems-contact__primary p {
    color: var(--c-dim);
    max-width: 54ch;
    line-height: 1.65;
}

/* ================= FORM ================= */

.vems-contact__form {
    margin-top: 1.75rem;
}

.vems-contact__field {
    margin-top: 1.1rem;
    flex: 1;
    min-width: 220px;
}

.vems-contact__field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
}

.vems-contact__field-label {
    display: block;
    font-family: var(--c-mono);
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--c-dim);
    margin-bottom: .55rem;
}

.vems-contact__input {
    width: 100%;
    padding: .95rem 1.1rem;
    font-family: var(--c-display);
    font-size: 1rem;
    color: var(--c-text);
    background: var(--c-field);
    border: 1px solid var(--c-stroke);
    border-radius: 10px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.vems-contact__input::placeholder {
    color: var(--c-dim);
}

.vems-contact__input:focus {
    outline: none;
    border-color: var(--c-magenta);
    box-shadow: 0 0 0 3px rgba(192, 37, 127, .18);
}

.vems-contact__textarea {
    resize: vertical;
    min-height: 8rem;
}

select.vems-contact__input {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Hidden from people, irresistible to form-filling bots. Off-screen rather than
   display:none, which some bots skip. */
.vems-contact__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* The submitted panel leads with a glyph instead of a form, so the outcome reads
   before the prose does. */
.vems-contact__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    font-size: 1.15rem;
    background: var(--c-ghost);
    border: 1px solid var(--c-stroke);
    color: var(--c-magenta);
    margin-bottom: 1.1rem;
}

.vems-contact__foot {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* ================= ACTIONS ================= */

.vems-contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.75rem;
}

.vems-contact__btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.6rem;
    font-family: var(--c-mono);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.vems-contact__btn:hover {
    transform: translateY(-2px);
}

.vems-contact__btn:focus-visible {
    outline: 2px solid var(--c-magenta);
    outline-offset: 3px;
}

.vems-contact__btn--primary {
    background: var(--c-grad);
    color: #fff;
    box-shadow: 0 10px 30px rgba(192, 37, 127, .28);
}

.vems-contact__btn--ghost {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-stroke);
}

.vems-contact__btn--ghost:hover {
    border-color: var(--c-hud);
}

.vems-contact__note {
    margin-top: 1.1rem;
    font-family: var(--c-mono);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--c-dim);
}

/* ================= SECONDARY GRID ================= */

.vems-contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.vems-contact__card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.5rem;
    background: var(--c-ghost);
    border: 1px solid var(--c-stroke);
    border-radius: 14px;
    transition: border-color .18s ease, transform .18s ease;
}

.vems-contact__card:hover {
    border-color: var(--c-hud);
    transform: translateY(-2px);
}

.vems-contact__card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.vems-contact__card p {
    color: var(--c-dim);
    font-size: .92rem;
    line-height: 1.6;
    flex: 1;
}

.vems-contact__link {
    align-self: flex-start;
    font-family: var(--c-mono);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--c-text);
    text-decoration: none;
    border-bottom: 1px solid var(--c-magenta);
    padding-bottom: 2px;
    cursor: pointer;
}

.vems-contact__link:hover {
    color: var(--c-magenta);
}

.vems-contact__link:focus-visible {
    outline: 2px solid var(--c-magenta);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .vems-contact__btn,
    .vems-contact__card {
        transition: none;
    }

    .vems-contact__btn:hover,
    .vems-contact__card:hover {
        transform: none;
    }
}
