/*
 * VISUPHORIA — Experience Enhancements
 * Phases 3, 4, 5, and 6
 */

:root {
    --vis-focus: #f2b9a7;
    --vis-form-surface: #211d28;
    --vis-form-border: rgba(239,221,233,.2);
}

/* ==========================================
   LIGHTING-INSPIRED SECTION DETAILS
========================================== */

.vis-meet-section,
.vis-form-section,
.vis-related-projects {
    position: relative;
}

.vis-meet-section::before,
.vis-form-section::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    content: "";
    background: linear-gradient(
        90deg,
        transparent 5%,
        rgba(230,154,132,.85) 30%,
        rgba(172,85,180,.8) 65%,
        transparent 95%
    );
    background-size: 160% 100%;
    animation: vis-soft-light 12s ease-in-out infinite alternate;
}

@keyframes vis-soft-light {
    from {
        background-position: 0% 50%;
        opacity: .55;
    }
    to {
        background-position: 100% 50%;
        opacity: 1;
    }
}

/* ==========================================
   MEET DANIEL
========================================== */

.vis-meet-section {
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 16% 60%,
            rgba(136,61,122,.15),
            transparent 55%
        ),
        #17151d;
}

.vis-meet-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(40px,7vw,105px);
    align-items: center;
}

.vis-meet-visual {
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 4.6;
    overflow: hidden;
    border: 1px solid rgba(230,154,132,.24);
    background: #28202e;
}

.vis-meet-portrait {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.vis-meet-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        to top,
        rgba(10,8,16,.89),
        transparent 47%
    );
    pointer-events: none;
}

.vis-meet-visual-label {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 26px;
    left: 28px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vis-meet-visual-label span:first-child {
    color: #fff;
    font: 600 30px/1.1 var(--display);
    letter-spacing: .065em;
}

.vis-meet-visual-label span:last-child {
    color: var(--coral-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .19em;
}

.vis-meet-art {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 63% 38%,
            rgba(226,113,155,.33),
            transparent 45%
        ),
        linear-gradient(135deg,#4c294c,#1a1726 75%);
}

.vis-meet-monogram {
    position: relative;
    z-index: 1;
    font: 300 clamp(100px,16vw,195px)/1 var(--display);
    letter-spacing: -.13em;
    color: rgba(246,181,173,.8);
    text-shadow: 0 0 60px rgba(231,122,163,.23);
}

.vis-meet-ring {
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    border: 1px solid rgba(236,171,178,.5);
    border-radius: 50%;
    transform: rotateX(65deg) rotate(-25deg);
    box-shadow:
        0 0 35px rgba(224,113,157,.16),
        0 0 0 55px rgba(230,154,132,.025);
}

.vis-meet-beam {
    position: absolute;
    width: 2px;
    height: 110%;
    top: -5%;
    left: 46%;
    transform: rotate(-39deg);
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(250,171,161,.8),
        transparent
    );
    box-shadow: 0 0 34px 8px rgba(209,80,154,.22);
}

.vis-meet-content .section-title {
    font-size: clamp(40px,4.7vw,64px);
}

.vis-meet-lead {
    max-width: 570px;
    margin: 28px 0 17px;
    color: #e9dde9;
    font: 400 clamp(20px,2.1vw,27px)/1.5 var(--display);
}

.vis-meet-body {
    max-width: 570px;
    color: #bdb2c0;
    font-size: 15px;
    line-height: 1.9;
}

.vis-meet-signature {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 27px 0 19px;
    padding-left: 20px;
    border-left: 2px solid var(--coral);
}

.vis-meet-signature strong {
    color: #f6eaf1;
    font: 500 24px/1.2 var(--display);
}

.vis-meet-signature span {
    max-width: 420px;
    color: #b5a9bb;
    font-size: 12px;
}

/* ==========================================
   FEATURED PROJECTS
========================================== */

.vis-featured-item,
.vis-related-item {
    min-width: 0;
}

.vis-featured-item .portfolio-card {
    display: block;
    height: 100%;
}

.vis-featured-item .portfolio-card-image {
    height: 100%;
}

.vis-video-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin-top: 23px;
    padding: 30px 35px;
    border: 1px solid rgba(230,154,132,.25);
    background:
        radial-gradient(
            ellipse at 90% 20%,
            rgba(149,69,163,.24),
            transparent 55%
        ),
        linear-gradient(110deg, #292030, #1d1a25);
}

.vis-small-label {
    color: var(--coral-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
}

.vis-video-teaser h3 {
    margin: 7px 0;
    font: 500 clamp(24px,3vw,36px)/1.2 var(--display);
}

.vis-video-teaser p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.vis-video-teaser-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.vis-video-teaser-link span {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid var(--coral);
    border-radius: 50%;
    color: var(--coral-light);
    font-size: 17px;
    transition: background .2s, transform .2s;
}

.vis-video-teaser-link:hover span {
    transform: scale(1.06);
    background: rgba(230,154,132,.15);
}

.vis-video-anchor {
    scroll-margin-top: 130px;
}

/* ==========================================
   INQUIRY FORM
========================================== */

.vis-contact-upgraded {
    padding-bottom: 100px;
}

.vis-form-section {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: clamp(30px,5vw,75px);
    margin-top: 80px;
    padding-top: 65px;
    align-items: start;
}

.vis-form-intro {
    position: sticky;
    top: 130px;
}

.vis-form-intro h3 {
    margin: 0;
    font: 500 clamp(35px,4vw,52px)/1.1 var(--display);
    letter-spacing: -.035em;
}

.vis-form-intro h3 em {
    display: block;
    color: var(--coral);
    font-style: normal;
    font-weight: 400;
}

.vis-form-intro > p:last-child {
    margin-top: 20px;
    max-width: 320px;
    color: var(--muted);
}

.vis-inquiry-wrap {
    min-width: 0;
}

.vis-inquiry-form {
    display: grid;
    gap: 20px;
    padding: clamp(22px,3vw,38px);
    border: 1px solid var(--vis-form-border);
    background: linear-gradient(150deg, #29232f, #1f1c27);
}

.vis-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 17px;
}

.vis-form-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.vis-form-field label {
    color: #eadce9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .025em;
}

.vis-form-field label span {
    color: var(--coral-light);
}

.vis-form-field input,
.vis-form-field select,
.vis-form-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 47px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(239,221,233,.25);
    border-radius: 0;
    background: #19161f;
    color: #f3edf2;
    font: 400 14px/1.5 var(--body);
    appearance: auto;
    transition:
        border-color .2s,
        box-shadow .2s;
}

.vis-form-field textarea {
    min-height: 155px;
    resize: vertical;
}

.vis-form-field input::placeholder,
.vis-form-field textarea::placeholder {
    color: #9e91a5;
    opacity: 1;
}

.vis-form-field input:focus,
.vis-form-field select:focus,
.vis-form-field textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 2px rgba(230,154,132,.17);
}

.vis-form-field input[type="date"] {
    color-scheme: dark;
}

.vis-form-field select option {
    color: #f3edf2;
    background: #19161f;
}

.vis-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.vis-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #bbb0bf;
    font-size: 12px;
    line-height: 1.6;
    cursor: pointer;
}

.vis-consent input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--coral);
}

.vis-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.vis-form-footer button {
    cursor: pointer;
    border: 0;
    font-family: var(--body);
}

.vis-form-footer button:disabled {
    cursor: wait;
    opacity: .65;
}

.vis-form-footer p {
    max-width: 230px;
    margin: 0;
    color: #aea2b4;
    font-size: 11px;
}

.vis-form-footer p a {
    color: var(--coral-light);
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.vis-form-notice {
    margin-bottom: 17px;
    padding: 16px 19px;
    border: 1px solid rgba(255,255,255,.24);
    font-size: 14px;
    line-height: 1.6;
}

.vis-form-success {
    border-color: rgba(164,205,184,.6);
    background: rgba(72,124,96,.15);
}

.vis-form-error {
    border-color: rgba(230,154,132,.6);
    background: rgba(170,65,80,.13);
}

/* ==========================================
   RELATED PROJECTS
========================================== */

.vis-related-projects {
    margin-top: 95px;
    margin-bottom: 80px;
}

.vis-related-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin: 21px 0 30px;
}

.vis-related-heading h2 {
    margin: 0;
    font: 500 clamp(32px,4.5vw,55px)/1.1 var(--display);
    letter-spacing: -.035em;
}

.vis-related-heading h2 em {
    display: block;
    color: var(--coral);
    font-style: normal;
    font-weight: 400;
}

.vis-related-heading .text-link {
    flex-shrink: 0;
}

.vis-related-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 17px;
}

.vis-related-item .portfolio-card {
    height: 100%;
    min-height: 300px;
}

.vis-related-item .portfolio-card-image {
    height: 100%;
    min-height: 300px;
}

.vis-related-item .portfolio-card-caption h3 {
    font-size: 23px;
}

/* ==========================================
   SUBTLE REVEAL EFFECTS
========================================== */

@media (prefers-reduced-motion: no-preference) {

    .vis-motion-ready .vis-reveal {
        opacity: 0;
        transform: translateY(18px);
        transition:
            opacity .65s ease,
            transform .65s cubic-bezier(.2,.75,.25,1);
    }

    .vis-motion-ready .vis-reveal.vis-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .vis-motion-ready .services-grid .vis-reveal:nth-child(2) {
        transition-delay: .07s;
    }

    .vis-motion-ready .services-grid .vis-reveal:nth-child(3) {
        transition-delay: .14s;
    }

    .vis-motion-ready .services-grid .vis-reveal:nth-child(4) {
        transition-delay: .21s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vis-meet-section::before,
    .vis-form-section::before {
        animation: none !important;
    }

    .vis-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================
   TABLET LAYOUT
========================================== */

@media (max-width: 1000px) {

    .vis-meet-layout {
        grid-template-columns: .85fr 1.15fr;
        gap: 35px;
    }

    .vis-form-section {
        grid-template-columns: 1fr 1.5fr;
        gap: 30px;
    }

    .vis-related-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

/* ==========================================
   MOBILE LAYOUT
========================================== */

@media (max-width: 760px) {

    .vis-meet-layout,
    .vis-form-section {
        grid-template-columns: 1fr;
    }

    .vis-meet-visual {
        width: 100%;
        max-width: 520px;
        aspect-ratio: 4 / 4;
        margin-inline: auto;
    }

    .vis-meet-content .section-title {
        font-size: clamp(38px,8vw,52px);
    }

    .vis-form-section {
        margin-top: 55px;
        padding-top: 48px;
    }

    .vis-form-intro {
        position: static;
    }

    .vis-form-intro h3 {
        font-size: clamp(34px,8vw,49px);
    }

    .vis-form-intro > p:last-child {
        max-width: 540px;
    }

    .vis-form-row {
        grid-template-columns: 1fr;
    }

    .vis-video-teaser {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }

    .vis-related-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .vis-related-grid {
        grid-template-columns: 1fr;
    }

    .vis-related-projects {
        margin-top: 55px;
    }
}

@media (max-width: 480px) {

    .vis-meet-visual {
        aspect-ratio: 4 / 4.2;
    }

    .vis-meet-monogram {
        font-size: 125px;
    }

    .vis-meet-visual-label {
        left: 19px;
        right: 19px;
        bottom: 20px;
    }

    .vis-meet-visual-label span:first-child {
        font-size: 25px;
    }

    .vis-inquiry-form {
        padding: 20px 16px;
    }

    .vis-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .vis-form-footer button {
        width: 100%;
    }

    .vis-form-footer p {
        max-width: 100%;
    }

    .vis-video-teaser-link span {
        width: 50px;
        height: 50px;
    }
}
