html, body {
    margin: 0;
    padding: 0;
    background: #040408;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.pt-content {
    position: relative;
    z-index: 2;
    padding: 9em clamp(2em, 8vw, 10em) 0;
}

.contact-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4em;
    flex-wrap: wrap;
}

.contact-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(3.5em, 9vw, 7em);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    display: inline-block;
}

.contact-heading .letter-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.1;
}

.contact-heading .letter {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition:
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        opacity   0.6s ease-out;
    transition-delay: calc(var(--i) * 60ms);
}

.contact-heading.is-in .letter {
    transform: translateY(0);
    opacity: 1;
}

.contact-side {
    flex: 0 1 28em;
    text-align: right;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95em, 1.05vw, 1.05em);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.01em;
    margin: 0 0 0.6em;
}

/* Per-word stagger reveal, same pattern as .projects-side. */
.contact-side .reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i) * 0.045s);
}

.contact-side.is-in .reveal-word {
    opacity: 1;
    transform: translateY(0);
}

/* Form */

.contact-form {
    margin: clamp(6em, 12vh, 10em) auto 0;
    max-width: 46rem;
    padding: 0 0 clamp(6em, 14vh, 12em);
    display: flex;
    flex-direction: column;
    gap: 2.6em;
}

/* Staggered entry; indices come from JS (setupFormReveal).
   The base delay gives the heading and side text a head start so the form
   doesn't pop in before the page feels loaded. */
.contact-form > .contact-field,
.contact-form > .contact-form-row,
.contact-form > .contact-form-foot {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(0.85s + var(--i, 0) * 0.09s);
}

.contact-form.is-in > .contact-field,
.contact-form.is-in > .contact-form-row,
.contact-form.is-in > .contact-form-foot {
    opacity: 1;
    transform: translateY(0);
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.6em;
}

.contact-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55em;
}

.contact-field-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    display: inline-flex;
    align-items: baseline;
    gap: 0.4em;
}

.contact-required {
    color: #b89cff;
    font-weight: 500;
    letter-spacing: 0;
}

.contact-field input,
.contact-field textarea,
.contact-field select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.55em 0 0.75em;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 0.005em;
    caret-color: #b89cff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-field textarea {
    resize: none;
    min-height: 5.5em;
    line-height: 1.55;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Lilac accent line that scales 0 to 1 on focus */
.contact-field-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(184, 156, 255, 0.85) 0%,
        rgba(138, 103, 255, 0.6) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.contact-field:focus-within .contact-field-line,
.contact-field--select:has(.contact-dropdown.is-open) .contact-field-line {
    transform: scaleX(1);
}

/* Validation error floats below the field */
.contact-field-error {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.55em;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: #ff8e8e;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.contact-field.is-error .contact-field-error {
    opacity: 1;
    transform: translateY(0);
}

.contact-field.is-error .contact-field-line {
    transform: scaleX(1);
    background: linear-gradient(90deg,
        rgba(255, 142, 142, 0.9) 0%,
        rgba(255, 110, 110, 0.75) 100%);
}

.contact-field.is-error input,
.contact-field.is-error textarea {
    border-bottom-color: rgba(255, 142, 142, 0.22);
}

.contact-field.is-error .contact-field-label {
    color: rgba(255, 255, 255, 0.95);
}

.contact-field.is-shake {
    animation: contact-shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes contact-shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(3px); }
    30%, 50%, 70% { transform: translateX(-5px); }
    40%, 60% { transform: translateX(5px); }
}

/* Custom dropdown */
.contact-dropdown {
    position: relative;
    /* Lift above sibling fields when open so the panel doesn't clip behind them */
    z-index: 1;
}

.contact-field--select:has(.contact-dropdown.is-open) {
    z-index: 50;
}

.contact-dropdown.is-open {
    z-index: 50;
}

.contact-dropdown-trigger {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.55em 2em 0.75em 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 0.005em;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-dropdown-value {
    flex: 1;
    color: #fff;
    transition: color 0.25s ease;
}

.contact-dropdown-value:empty::before,
.contact-dropdown[data-empty="true"] .contact-dropdown-value {
    color: rgba(255, 255, 255, 0.32);
}

.contact-dropdown-caret {
    color: rgba(184, 156, 255, 0.85);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-dropdown.is-open .contact-dropdown-caret {
    transform: rotate(180deg);
}

/* Animated panel: slide and fade, with staggered option reveal */
.contact-dropdown-panel {
    position: absolute;
    top: calc(100% + 0.6em);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.45em;
    list-style: none;
    background: #0c0a14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9em;
    box-shadow:
        0 20px 50px -20px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    z-index: 10;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    transition:
        opacity 0.16s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-dropdown.is-open .contact-dropdown-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.contact-dropdown-option {
    padding: 0.75em 1em;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 0.55em;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.16s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.09s ease-out,
        color 0.09s ease-out,
        padding-left 0.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-dropdown.is-open .contact-dropdown-option {
    opacity: 1;
    transform: translateY(0);
    transition-delay:
        calc(var(--i, 0) * 14ms + 20ms),
        calc(var(--i, 0) * 14ms + 20ms),
        0s,
        0s,
        0s;
}

.contact-dropdown-option:hover,
.contact-dropdown-option.is-active {
    background: rgba(184, 156, 255, 0.1);
    color: #fff;
    padding-left: 1.25em;
}

.contact-dropdown-option[aria-selected="true"] {
    color: #b89cff;
}

/* Honeypot field: hidden visually and from assistive tech, stays in DOM to catch bots */
.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Submit row: lilac pill on the right, status text on the left */
.contact-form-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5em;
    margin-top: -0.8em;
}

.contact-status {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.2s ease;
    flex: 1 1 auto;
    min-width: 0;
}

.contact-status[data-kind="success"],
.contact-status[data-kind="error"] {
    opacity: 1;
    transform: translateY(0);
}

.contact-status[data-kind="success"] { color: #9affc7; }
.contact-status[data-kind="error"]   { color: #ff8e8e; }

/* DSGVO/GDPR privacy notice, small and unobtrusive */
.contact-privacy {
    margin: 1.6em 0 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.45);
    text-align: right;
    letter-spacing: 0.01em;
}

.contact-privacy a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-decoration-color: rgba(138, 103, 255, 0.5);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-privacy a:hover {
    color: #fff;
    text-decoration-color: #8a67ff;
}

@media (max-width: 640px) {
    .contact-privacy { text-align: left; }
}

.contact-submit {
    --submit-x: 140px;
    --submit-scale: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.9em 1.7em;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1em;
    color: #fff;
    background: #8a67ff;
    border: 1px solid #8a67ff;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    transform: translateX(var(--submit-x)) scale(var(--submit-scale));
    transform-origin: right center;
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s,
        transform 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.35s,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.contact-form.is-in .contact-submit {
    --submit-x: 0px;
    opacity: 1;
}

.contact-submit:hover {
    --submit-scale: 1.08;
    background: #0a0a0f;
    border-color: rgba(255, 255, 255, 0.28);
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.contact-submit svg {
    transition: transform 0.25s ease;
}

.contact-submit:hover svg {
    transform: translate(2px, -2px);
}

/* Rolling-text hover: original rolls up, clone follows from below.
   Same pattern as the "View more" and CTA buttons. */
.contact-submit-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.2;
}
.contact-submit-text-row {
    display: block;
    white-space: nowrap;
}
.contact-submit-text-row--clone {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}
.contact-submit-char {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
    transform: translateY(0);
}
.contact-submit:hover .contact-submit-char {
    transform: translateY(-100%);
}

.contact-submit:disabled,
.contact-submit.is-busy {
    cursor: progress;
    opacity: 0.65;
    background: #6a4fd1;
    border-color: #6a4fd1;
}

.contact-submit:disabled:hover,
.contact-submit.is-busy:hover {
    --submit-scale: 1;
    background: #6a4fd1;
    border-color: #6a4fd1;
}

@media (max-width: 640px) {
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 2.2em;
    }
    .contact-form {
        gap: 2.2em;
    }
}

/* Keep "Get in touch." on one line on mobile. */
@media (max-width: 768px) {
    .contact-heading {
        font-size: clamp(2.6em, 12vw, 4.4em);
        white-space: nowrap;
    }
}

/* Space between the form and the footer. */
#footer {
    margin-top: clamp(2em, 6vh, 5em);
}

/**
 * @INFO
 * Made by Cevio | https://www.cevio.at
 * @INFO
 */
