/* ============================================
   PORTALES — Visual Craft
   Design System & Styles
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --gray-950: #0a0a0a;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Splash Screen --- */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}

.splash-screen.fading {
    opacity: 0;
    transition: opacity 1s ease;
}

.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    transition: var(--transition);
    background: transparent;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-svg {
    height: 22px;
    width: auto;
    color: var(--white);
    transition: var(--transition);
}

.nav-logo:hover .nav-logo-svg {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 24px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
}

.lang-btn:hover, .lang-btn.active {
    color: var(--white);
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-400);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    color: var(--black);
    background: var(--white);
    padding: 8px 20px;
    border-radius: 2px;
    font-weight: 500;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    color: var(--black);
    background: var(--gray-200);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: var(--transition);
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-slow);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--white);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-link:hover {
    color: var(--gray-400);
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.4);
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.hero-title br {
    display: none;
}

.hero-title > span {
    display: block;
}

body.ready .hero-title {
    animation: title-scale 2s cubic-bezier(0.075, 0.82, 0.165, 1) forwards 0s;
}

.hero-title {
    opacity: 0;
}

@keyframes title-scale {
    0% { transform: scale(0); opacity: 0; filter: brightness(0); }
    20% { opacity: 1; }
    100% { transform: scale(1); opacity: 1; filter: brightness(1); }
}

.hero-title-accent {
    color: var(--gray-400);
    font-weight: 300;
    font-style: italic;
    font-size: 1.34em;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0;
    -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 50%, transparent 100%);
    -webkit-mask-size: 300% 100%;
    mask-size: 300% 100%;
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
}
body.ready .hero-subtitle {
    animation: revealLTR 2s ease forwards 0.6s;
}

@keyframes revealLTR {
    0% {
        opacity: 1;
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
    99% {
        opacity: 1;
        -webkit-mask-position: 0% 0;
        mask-position: 0% 0;
    }
    100% {
        opacity: 1;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--white), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn--primary {
    background: var(--white);
    color: var(--black);
}

.btn--primary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-600);
}

.btn--outline:hover {
    border-color: var(--white);
    transform: translateY(-1px);
}

.btn--lg {
    padding: 18px 40px;
    font-size: 14px;
}

/* --- Sections --- */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 64px;
}

.section-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* --- Services --- */
.section--services {
    background: var(--gray-950);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: var(--black);
    cursor: default;
}

.service-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
    transition: all 0.6s ease;
}

.service-card:hover .service-card-img img {
    filter: grayscale(100%) brightness(0.3);
    transform: scale(1.05);
}

.service-card-content {
    padding: 28px 24px;
}

.service-number {
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-600);
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 8px;
}

.service-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    transition: var(--transition);
}

.service-card:hover .service-name {
    color: var(--white);
}

.service-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--gray-500);
    line-height: 1.7;
}

/* --- Work / Reel --- */
.section--work {
    background: var(--black);
}

.reel-container {
    margin-bottom: 80px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.reel-video {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    cursor: pointer;
}

.reel-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: 1;
}

.reel-video video,
.reel-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) brightness(0.65);
    transform: scale(1.05);
    transition: all 0.6s ease;
}

.reel-video:hover video,
.reel-video:hover img {
    filter: blur(8px) brightness(0.75);
    transform: scale(1.08);
}

.reel-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.reel-play svg {
    transition: var(--transition);
}

.reel-video:hover .reel-play .btn {
    transform: translateY(-2px);
    background: var(--gray-200);
}

/* --- Reel Overlay --- */
.reel-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.reel-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.reel-overlay video {
    width: 90%;
    max-height: 90vh;
    outline: none;
}

.reel-close {
    position: absolute;
    top: 32px;
    right: 48px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
}

.reel-close:hover {
    color: var(--gray-400);
}

/* Gallery */
.gallery {
    padding: 0 24px;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 16px;
    animation: galleryScroll 40s linear infinite;
    width: max-content;
}

@keyframes galleryScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gallery-item {
    flex: 0 0 auto;
    height: 320px;
    border-radius: 6px;
    overflow: hidden;
}

.gallery-item img,
.gallery-item video {
    height: 100%;
    width: auto;
    display: block;
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.6s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    filter: grayscale(0%) brightness(1);
}

/* --- About --- */
.section--about {
    background: var(--gray-950);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.about-paragraph {
    font-size: 16px;
    font-weight: 300;
    color: var(--gray-400);
    line-height: 1.8;
    margin-top: 20px;
}

.about-image {
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) brightness(0.7);
    aspect-ratio: 2 / 3;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 335.57 503.36'%3E%3Cpath fill='%23fff' d='M167.79,0h0C75.12,0,0,75.12,0,167.79v335.57h335.57V167.79C335.57,75.12,260.45,0,167.79,0Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 335.57 503.36'%3E%3Cpath fill='%23fff' d='M167.79,0h0C75.12,0,0,75.12,0,167.79v335.57h335.57V167.79C335.57,75.12,260.45,0,167.79,0Z'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

/* Stats */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 48px 0;
    border-top: 1px solid var(--gray-800);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    display: inline;
}

.stat-suffix {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--gray-500);
}

.stat-label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-500);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--gray-800);
}

/* --- Extras --- */
.section--extras {
    background: var(--black);
}

.extras-wrapper {
    position: relative;
    width: 100%;
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.extra-card {
    padding: 40px 32px;
    border: 1px solid var(--gray-800);
    border-radius: 8px;
    transition: var(--transition);
}

.extra-card:hover {
    border-color: var(--gray-600);
    background: rgba(255, 255, 255, 0.02);
}

.extra-icon {
    color: var(--gray-500);
    margin-bottom: 24px;
    transition: var(--transition);
}

.extra-card:hover .extra-icon {
    color: var(--white);
}

.extra-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.extra-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--gray-500);
    line-height: 1.7;
}

/* --- Contact --- */
.section--contact {
    background: var(--gray-950);
    text-align: center;
}

.contact-block {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.contact-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-socials {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gray-700);
    color: var(--gray-400);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--gray-900);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo-svg {
    height: 24px;
    width: auto;
    opacity: 0.6;
}

.footer-copy p {
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 300;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .extras-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav {
        padding: 0 16px;
    }

    .nav-inner {
        height: 60px;
    }

    .nav-logo-svg {
        height: 18px;
    }

    .lang-switcher {
        gap: 4px;
        margin-left: 0;
    }

    .lang-btn {
        font-size: 11px;
        padding: 4px 6px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        min-height: 100svh;
        padding: 60px 0;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-title {
        font-size: clamp(30px, 8vw, 48px);
        margin-bottom: 16px;
    }

    .hero-title-accent {
        font-size: 1.25em;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 28px;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
        text-wrap: balance;
    }

    .hero-subtitle br {
        display: none;
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: clamp(26px, 6.5vw, 36px);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        padding: 28px 20px;
    }

    .service-card:hover {
        transform: none;
    }

    .reel-container {
        border-radius: 8px;
    }

    .reel-video {
        height: 48vw;
        min-height: 240px;
        max-height: 380px;
    }

    .gallery-track {
        gap: 12px;
    }

    .gallery-item {
        height: 190px;
        border-radius: 6px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-image {
        order: -1;
        max-width: 260px;
        margin: 0 auto;
        width: 100%;
    }

    .about-image img {
        aspect-ratio: 2 / 3;
        width: 100%;
        height: auto;
    }

    .about-paragraph {
        font-size: 14px;
        line-height: 1.65;
    }

    .extras-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .extra-card {
        padding: 28px 22px;
    }

    .extra-icon {
        margin-bottom: 16px;
    }

    .extra-title {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .extra-desc {
        font-size: 13px;
        line-height: 1.55;
    }

    .section--cta .container {
        padding: 40px 20px !important;
    }

    #bottom-contact-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 28px;
        font-size: 15px;
        border-radius: 999px;
    }

    .footer {
        padding: 32px 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .contact-module-white {
        padding: 44px 24px 24px 24px;
        max-width: 320px;
        width: 86%;
    }

    .contact-title-minimal {
        font-size: 28px;
        line-height: 1.1;
    }

    .contact-links-minimal {
        gap: 12px;
        margin-bottom: 24px;
    }

    .contact-links-minimal a {
        font-size: 14px;
    }

    .contact-close {
        top: 16px;
        right: 20px;
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: clamp(26px, 7.8vw, 36px);
    }

    .hero-subtitle {
        font-size: 13.5px;
        line-height: 1.55;
        max-width: 320px;
    }

    .gallery-item {
        height: 170px;
    }

    .about-image {
        max-width: 220px;
    }

    .contact-module-white {
        max-width: 290px;
        padding: 40px 20px 20px 20px;
    }

    .contact-title-minimal {
        font-size: 24px;
    }
}

/* --- Contact Modal (White, Small, Flashing) --- */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.contact-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.contact-module-white {
    background-color: var(--white);
    color: var(--black);
    padding: 64px 40px 40px 40px;
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    text-align: left;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease;
    aspect-ratio: 2 / 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 335.57 503.36'%3E%3Cpath fill='%23fff' d='M167.79,0h0C75.12,0,0,75.12,0,167.79v335.57h335.57V167.79C335.57,75.12,260.45,0,167.79,0Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 335.57 503.36'%3E%3Cpath fill='%23fff' d='M167.79,0h0C75.12,0,0,75.12,0,167.79v335.57h335.57V167.79C335.57,75.12,260.45,0,167.79,0Z'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

/* Rapid white flash strobe on open */
@keyframes contact-flash {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    20%  { opacity: 0.2; }
    30%  { opacity: 1; }
    40%  { opacity: 0.3; }
    50%  { opacity: 1; }
}

@keyframes contact-card-flash {
    0%   { opacity: 0; transform: scale(0.97); box-shadow: 0 0 0 rgba(255,255,255,0); }
    10%  { opacity: 1; transform: scale(1); box-shadow: 0 0 80px rgba(255,255,255,0.8); }
    20%  { opacity: 0.15; transform: scale(1); box-shadow: 0 0 0 rgba(255,255,255,0); }
    30%  { opacity: 1; transform: scale(1); box-shadow: 0 0 40px rgba(255,255,255,0.5); }
    40%  { opacity: 0.4; transform: scale(1); box-shadow: 0 0 0 rgba(255,255,255,0); }
    50%  { opacity: 1; transform: scale(1); box-shadow: 0 0 20px rgba(255,255,255,0.2); }
    100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 rgba(255,255,255,0); }
}

.contact-modal.is-flashing {
    animation: contact-flash 0.5s linear forwards;
}

.contact-modal.is-flashing .contact-module-white {
    animation: contact-card-flash 0.5s linear forwards;
}

.contact-close {
    position: absolute;
    top: 32px;
    right: 48px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.contact-close:hover {
    color: var(--gray-400);
}

.contact-title-minimal {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 0;
    color: var(--black);
}

.contact-links-minimal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.contact-links-minimal a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.contact-links-minimal a:hover {
    color: var(--black);
    border-bottom-color: var(--black);
}
