/* Custom Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

body {
    background:
        radial-gradient(circle at 18% 12%, rgba(52, 211, 153, 0.10), transparent 28rem),
        radial-gradient(circle at 82% 8%, rgba(59, 130, 246, 0.12), transparent 32rem),
        linear-gradient(180deg, #02040a 0%, #050505 44%, #08090d 100%);
    font-family: 'Inter', sans-serif;
}

body.custom-cursor-active,
body.custom-cursor-active * {
    cursor: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9fe7d7;
}

/* Glassmorphism Utilities */
.bg-glass-white {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Text Selection */
::selection {
    background-color: #9fe7d7;
    color: #02040a;
}

.cinema-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(159, 231, 215, 0.06) 28%, transparent 68%);
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 0.35s ease;
    z-index: 9998;
}

.cinema-cursor.is-visible {
    opacity: 1;
}

.cinema-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(159, 231, 215, 0.72);
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.08),
        0 0 18px rgba(159, 231, 215, 0.72),
        0 0 38px rgba(138, 180, 255, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    z-index: 9999;
}

.cinema-cursor-dot.is-visible {
    opacity: 1;
}

.cinema-cursor-dot.is-interactive {
    width: 0.5rem;
    height: 0.5rem;
    background: #9fe7d7;
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 0 0 9px rgba(159, 231, 215, 0.12),
        0 0 28px rgba(159, 231, 215, 0.9);
}

.blog-stream {
    isolation: isolate;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(159, 231, 215, 0.08), transparent 34rem),
        radial-gradient(ellipse at 12% 42%, rgba(138, 180, 255, 0.06), transparent 28rem),
        linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.018) 44%, transparent 100%);
}

.blog-stream::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, transparent, #000 14%, #000 82%, transparent);
    opacity: 0.45;
}

.blog-article-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022) 48%, rgba(159, 231, 215, 0.035)),
        rgba(5, 8, 13, 0.58);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.035);
}

.blog-article-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.12), transparent 22rem),
        linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, 0.055), transparent 58% 100%);
    opacity: 0.7;
}

.cinema-grain {
    position: fixed;
    inset: 0;
    z-index: 55;
    pointer-events: none;
    opacity: 0.16;
    mix-blend-mode: soft-light;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
    animation: film-grain 0.7s steps(2) infinite;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    z-index: 70;
    background: linear-gradient(90deg, #ffffff, #9fe7d7, #8ab4ff);
    box-shadow: 0 0 20px rgba(159, 231, 215, 0.7);
}

.hero-cinema {
    isolation: isolate;
    background:
        linear-gradient(115deg, rgba(0, 0, 0, 0.96), rgba(8, 12, 18, 0.72) 48%, rgba(0, 0, 0, 0.96)),
        url("../images/davide-cinematic-chair.png") center 18% / cover no-repeat;
}

.hero-rift {
    position: absolute;
    inset: -18% -10%;
    z-index: 0;
    background:
        conic-gradient(from 210deg at 50% 45%, transparent 0deg, rgba(255, 255, 255, 0.18) 18deg, transparent 32deg, transparent 140deg, rgba(159, 231, 215, 0.2) 165deg, transparent 188deg, transparent 360deg),
        radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.15), transparent 34%),
        linear-gradient(100deg, transparent 0 39%, rgba(255, 255, 255, 0.12) 47%, transparent 57% 100%);
    filter: blur(1px);
    opacity: 0.72;
    transform: rotate(-6deg);
    animation: light-rift 9s ease-in-out infinite alternate;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, transparent 0 42%, rgba(0, 0, 0, 0.58) 72%, rgba(0, 0, 0, 0.92) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.64));
    pointer-events: none;
}

.hero-frame {
    position: absolute;
    left: 0;
    width: 100%;
    height: clamp(42px, 7vw, 92px);
    z-index: 5;
    background: #020203;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.75);
}

.hero-frame-top { top: 0; }
.hero-frame-bottom { bottom: 0; }

.hero-orbit {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(229, 228, 226, 0.16);
    border-radius: 50%;
    pointer-events: none;
    transform: rotateX(64deg) rotateZ(-18deg);
}

.hero-orbit-one {
    width: min(82vw, 900px);
    height: min(82vw, 900px);
    animation: orbit-drift 18s linear infinite;
}

.hero-orbit-two {
    width: min(58vw, 620px);
    height: min(58vw, 620px);
    border-color: rgba(159, 231, 215, 0.18);
    animation: orbit-drift 26s linear infinite reverse;
}

.cinema-kicker {
    text-shadow: 0 0 24px rgba(159, 231, 215, 0.42);
}

.hero-copy {
    transform: translateY(-82px);
}

.hero-title {
    text-shadow: 0 14px 55px rgba(0, 0, 0, 0.95), 0 0 42px rgba(255, 255, 255, 0.12);
}

.cinema-cta::after {
    content: "";
    position: absolute;
    inset: -70% -40%;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.42), transparent 70%);
    transform: translateX(-85%) rotate(10deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions {
    position: relative;
    z-index: 22;
    margin-top: 0.85rem !important;
}

.cinema-cta:hover::after {
    transform: translateX(85%) rotate(10deg);
}

.hero-metrics {
    position: absolute !important;
    left: 50%;
    bottom: clamp(42px, 6.5vh, 82px);
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.2vw, 1rem);
    width: min(920px, calc(100vw - 3rem));
    transform: translate3d(-50%, 0, 0);
    text-align: center;
}

.hero-metric-card {
    position: relative;
    display: flex;
    min-height: clamp(92px, 8vh, 112px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem clamp(1rem, 1.8vw, 1.45rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.35rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(2, 4, 10, 0.48);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-metric-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(159, 231, 215, 0.11), transparent 62%);
    opacity: 0.85;
    pointer-events: none;
}

.hero-metrics span,
.hero-metrics small {
    position: relative;
    z-index: 1;
    display: block;
}

.hero-metrics span {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    line-height: 1;
}

.hero-metrics small {
    margin-top: 0.45rem;
    color: rgba(229, 228, 226, 0.68);
    font-size: 0.72rem;
    text-transform: uppercase;
    line-height: 1.25;
    letter-spacing: 0.06em;
}

/* Smooth Scrolling is handled by html class="scroll-smooth" but can be enhanced with GSAP ScrollSmoother if needed (paid plugin, will stick to native + ScrollTrigger for now) */

/* Hero Text Masking */
/* Hero Text Masking */
/* .hero-elem visibility handled by opacity in Tailwind for now */

/* Timeline specific styles */
.timeline-line-container {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #E5E4E2, #71717A, #E5E4E2);
    /* Platinum to Zinc to Platinum */
    box-shadow: 0 0 15px rgba(229, 228, 226, 0.3);
}

/* Service Card 3D Effect */
.service-card {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Construction Reveal Utilities */
.mask-text {
    overflow: hidden;
    position: relative;
    display: inline-block;
}

.mask-text span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-revealed .mask-text span {
    transform: translateY(0);
}

.construction-card {
    opacity: 0;
    opacity: 0;
    transform: translateY(20px);
}

/* Spotlight Effect */
.spotlight-card {
    background: #1a1a1a;
    /* Fallback */
    position: relative;
}

.spotlight-overlay {
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: 1;
}

/* Magnetic Button - subtle transition for the transform */
.magnetic-button {
    transition: transform 0.1s linear, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.contact-status-neutral {
    color: #9CA3AF;
}

.contact-status-success {
    color: #6EE7B7;
}

.contact-status-error {
    color: #FCA5A5;
}

/* Nebula Border Effect */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 30;
    pointer-events: none;
    overflow: hidden;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Soft nebula look */
    opacity: 0.8;
    /* High visibility */
    will-change: transform, opacity;
    mix-blend-mode: screen;
}

/* Nebula Formations */
.aurora-blob-1 {
    top: -15%;
    left: -15%;
    width: 55vw;
    height: 55vw;
    /* Bright Silver Core */
    background: radial-gradient(circle, rgba(159, 231, 215, 0.22) 0%, rgba(192, 192, 192, 0.1) 60%, transparent 80%);
    animation: nebula-breathe 12s infinite ease-in-out;
}

.aurora-blob-2 {
    bottom: -15%;
    right: -15%;
    width: 65vw;
    height: 65vw;
    /* Platinum Vapor */
    background: radial-gradient(circle, rgba(138, 180, 255, 0.16) 0%, rgba(160, 160, 160, 0.1) 60%, transparent 80%);
    animation: nebula-breathe 15s infinite ease-in-out reverse;
}

.aurora-blob-3 {
    top: 25%;
    right: -25%;
    width: 45vw;
    height: 45vw;
    /* White Mist */
    background: radial-gradient(circle, rgba(255, 245, 197, 0.14) 0%, rgba(200, 200, 200, 0.08) 60%, transparent 80%);
    animation: nebula-breathe 14s infinite ease-in-out 2s;
}

.about-image-container > div:first-child,
.service-card,
.construction-card,
.spotlight-card {
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.personal-inline {
    position: relative;
    padding: clamp(1rem, 2.6vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.35rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at 18% 28%, rgba(159, 231, 215, 0.08), transparent 20rem);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.personal-inline::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 0 36%, rgba(255, 255, 255, 0.09), transparent 62% 100%);
    transform: translateX(-120%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.personal-inline:hover::before {
    transform: translateX(120%);
}

.personal-inline-image {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: #08090f;
}

.personal-inline-image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    filter: grayscale(0.25) saturate(0.8) contrast(1.08);
    transform: scale(1.02);
}

.personal-inline-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.62));
}

.personal-inline-copy {
    position: relative;
    z-index: 1;
    padding: clamp(0.5rem, 2vw, 2rem);
}

.personal-inline-copy span {
    display: block;
    margin-bottom: 1rem;
    color: #C0C0C0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.personal-inline-copy h3 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.02;
    margin-bottom: 1.35rem;
}

.personal-inline-copy p {
    max-width: 640px;
    color: rgba(209, 213, 219, 0.78);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.75;
}

.construction-card {
    min-height: 64vh;
}

.construction-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(100deg, transparent 0 22%, rgba(255, 255, 255, 0.10) 42%, transparent 58% 100%);
    transform: translateX(-120%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.construction-card:hover::before {
    transform: translateX(120%);
}

.blueprint-scene {
    position: absolute;
    inset: 0;
    opacity: 0.74;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.construction-card:hover .blueprint-scene {
    opacity: 0.95;
    transform: scale(1.06);
}

.blueprint-scene::before,
.blueprint-scene::after {
    content: "";
    position: absolute;
    inset: 0;
}

.blueprint-scene::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 52% 45%, black 0 44%, transparent 76%);
}

.blueprint-systems {
    background:
        radial-gradient(circle at 28% 42%, rgba(159, 231, 215, 0.34), transparent 17rem),
        conic-gradient(from 20deg at 58% 50%, transparent, rgba(255, 255, 255, 0.24), transparent 34%, rgba(159, 231, 215, 0.22), transparent 62%);
}

.blueprint-systems::after {
    border: 1px solid rgba(159, 231, 215, 0.26);
    width: 58%;
    height: 58%;
    top: 20%;
    left: 21%;
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.03), 0 0 70px rgba(159, 231, 215, 0.2);
}

.blueprint-data {
    background:
        radial-gradient(circle at 70% 28%, rgba(138, 180, 255, 0.32), transparent 18rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 28% 58%, rgba(138, 180, 255, 0.12));
}

.blueprint-data::after {
    background:
        linear-gradient(90deg, transparent 0 16%, rgba(159, 231, 215, 0.44) 16% 18%, transparent 18% 31%, rgba(255, 255, 255, 0.35) 31% 33%, transparent 33% 48%, rgba(138, 180, 255, 0.55) 48% 50%, transparent 50%),
        linear-gradient(0deg, transparent 0 36%, rgba(255, 255, 255, 0.16) 36% 38%, transparent 38%);
    clip-path: polygon(8% 74%, 18% 52%, 31% 64%, 49% 34%, 66% 47%, 84% 20%, 92% 26%, 70% 66%, 50% 54%, 32% 82%, 18% 72%);
}

.blueprint-leadership {
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 245, 197, 0.22), transparent 17rem),
        radial-gradient(circle at 36% 62%, rgba(159, 231, 215, 0.18), transparent 13rem);
}

.blueprint-leadership::after {
    width: 62%;
    height: 42%;
    top: 24%;
    left: 19%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    box-shadow:
        -120px 88px 0 -76px rgba(159, 231, 215, 0.18),
        0 88px 0 -76px rgba(255, 255, 255, 0.18),
        120px 88px 0 -76px rgba(138, 180, 255, 0.18);
}

.blueprint-operations {
    background:
        radial-gradient(circle at 35% 55%, rgba(159, 231, 215, 0.2), transparent 15rem),
        repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 18px);
}

.blueprint-operations::after {
    width: 46%;
    height: 46%;
    left: 27%;
    top: 27%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 18%;
    transform: rotate(45deg);
    box-shadow: 0 0 0 30px rgba(159, 231, 215, 0.06), 0 0 90px rgba(138, 180, 255, 0.18);
}

@keyframes light-rift {
    from {
        opacity: 0.48;
        transform: translate3d(-2%, 0, 0) rotate(-8deg) scale(1);
    }

    to {
        opacity: 0.82;
        transform: translate3d(2%, -2%, 0) rotate(-3deg) scale(1.06);
    }
}

@keyframes orbit-drift {
    to {
        transform: rotateX(64deg) rotateZ(342deg);
    }
}

@keyframes film-grain {
    0% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(-1%, 1%, 0); }
    50% { transform: translate3d(1%, -1%, 0); }
    75% { transform: translate3d(-1%, -1%, 0); }
    100% { transform: translate3d(1%, 1%, 0); }
}

@media (max-width: 767px) {
    body {
        cursor: auto;
    }

    .hero-cinema {
        min-height: auto;
        justify-content: flex-start;
        padding-top: 8.5rem;
        padding-bottom: 4.5rem;
    }

    .cinema-cursor {
        display: none;
    }

    .cinema-cursor-dot {
        display: none;
    }

    .hero-metrics {
        position: relative !important;
        left: auto;
        bottom: auto;
        grid-template-columns: 1fr;
        gap: 0.55rem;
        width: min(420px, calc(100vw - 2rem));
        margin: 2rem auto 0;
        transform: none;
        text-align: center;
    }

    .hero-copy {
        width: 100%;
        transform: none;
    }

    .hero-copy p {
        max-width: min(34rem, calc(100vw - 2.4rem));
        margin-top: 1.75rem;
        font-size: clamp(1.12rem, 5.5vw, 1.55rem);
        line-height: 1.55;
    }

    .hero-metric-card {
        min-height: 70px;
        padding: 0.7rem 0.9rem;
        border-radius: 1rem;
    }

    .hero-frame {
        height: 34px;
    }

    .hero-orbit {
        opacity: 0.35;
    }

    .personal-inline {
        padding: 0.85rem;
        border-radius: 1.35rem;
    }

    .personal-inline-image,
    .personal-inline-image img {
        min-height: 420px;
    }

    .personal-inline-image {
        border-radius: 1rem;
    }

    #entrepreneurs {
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 4rem 0 2rem;
    }

    #entrepreneurs .horizontal-wrapper {
        display: block;
        height: auto;
    }

    #entrepreneurs .horizontal-container {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        transform: none !important;
    }

    #entrepreneurs .horizontal-container > * {
        width: 100% !important;
        min-width: 0 !important;
    }

    .construction-card {
        min-height: auto;
        padding: 1.35rem;
        opacity: 1;
        transform: none;
    }

    #horizontal-contact {
        height: auto !important;
        min-height: 0;
        padding: 1rem 0 0;
        scroll-margin-top: 5.5rem;
    }

    #horizontal-contact > .flex-grow {
        display: block;
        flex-grow: 0;
    }

    #horizontal-contact .spotlight-card {
        max-height: none;
        overflow: visible;
        padding: 1rem;
        border-radius: 1.35rem;
    }

    #horizontal-contact .spotlight-card > .relative {
        gap: 1rem;
    }

    #horizontal-contact h2 {
        margin-top: 0.75rem;
        margin-bottom: 0.8rem;
        font-size: 2rem;
        line-height: 1.05;
    }

    #horizontal-contact p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    #horizontal-contact a[href*="linkedin.com"] {
        margin-top: 1rem;
        min-height: 44px;
        padding: 0.65rem 1rem;
    }

    #contact-form {
        display: grid;
        gap: 0.75rem;
    }

    #contact-form.space-y-4 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    #contact-form .grid {
        gap: 0.75rem !important;
    }

    #contact-form label > span:first-child {
        margin-bottom: 0.4rem;
        font-size: 0.68rem;
        line-height: 1.2;
    }

    #contact-form input:not([type="checkbox"]),
    #contact-form textarea {
        min-height: 44px;
        border-radius: 1rem;
        padding: 0.72rem 0.9rem;
        font-size: 1rem;
        line-height: 1.35;
    }

    #contact-form textarea {
        min-height: 7.25rem;
    }

    #contact-form label.flex {
        gap: 0.65rem;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    #contact-form button[type="submit"] {
        width: 100%;
        min-height: 48px;
        padding: 0.82rem 1rem;
    }

    #contact-form [data-contact-status] {
        min-height: 1.2rem;
        font-size: 0.82rem;
        line-height: 1.35;
        text-align: center;
    }

    #horizontal-contact > .w-full:last-child {
        margin-top: 1rem;
        padding-bottom: 1rem;
        font-size: 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

@keyframes nebula-breathe {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.5) translate(20px, -20px);
        /* Significant Expansion */
        opacity: 0.4;
        /* Fade slightly as it expands */
    }

    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.6;
    }
}

/* --- Blog Post Typography (.post-content) --- */
.post-content {
    color: #D1D5DB; /* Tailwind text-gray-300 */
    font-size: 1.125rem;
    line-height: 1.75;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    color: #E5E4E2; /* Platinum */
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
}

.post-content h1 { font-size: 2.25rem; }
.post-content h2 { font-size: 1.875rem; }
.post-content h3 { font-size: 1.5rem; }

.post-content p {
    margin-bottom: 1.25em;
    font-weight: 300;
}

.post-content strong {
    color: white;
    font-weight: 600;
}

.post-content em {
    font-style: italic;
    color: #C0C0C0; /* Clean-silver */
}

.post-content ul,
.post-content ol {
    margin-top: 1em;
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content a {
    color: #0D9488; /* Clinical Teal */
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: white;
}

.post-content blockquote {
    border-left: 4px solid #C0C0C0;
    padding-left: 1rem;
    font-style: italic;
    color: #9CA3AF;
    margin-left: 0;
    margin-right: 0;
}

.post-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875em;
}
