/* ==========================================================================
   v2 layer: loaded after style.css. Overrides and additions for the polished
   redesign. Tokens come from style.css :root; no new hex values except where
   a contrast fix requires one (footer text).
   ========================================================================== */

/* --- Header ---------------------------------------------------------- */
.main-header {
    padding: 8px 1.5rem;
    background-color: rgba(22, 10, 40, 0.92);
    backdrop-filter: blur(10px);
}

.home-link-text {
    font-size: 1.15rem;
    white-space: nowrap;
}

.main-nav a {
    font-size: 1.05rem;
    padding: 0.5rem 0.25rem;
    display: inline-block;
}

.mobile-nav-toggle {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-nav-toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    background: var(--color-starry-white);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav-toggle span:nth-child(1) { top: 14px; }
.mobile-nav-toggle span:nth-child(2) { top: 21px; }
.mobile-nav-toggle span:nth-child(3) { top: 28px; }
.mobile-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero: fold-safe, wordmark cropped, starfield behind ---------------- */
.hero-section {
    min-height: calc(100svh - 74px);
    padding: 3rem 2rem 4rem;
    justify-content: center;
}

.hero-section::before {
    display: none;
    /* replaced by the pointer-reactive starfield canvas */
}

#starfield {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.kicker {
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    padding: 0.5rem 1.1rem;
    margin: 0;
}

.hero-logo {
    width: auto;
    height: clamp(170px, 32vh, 330px);
    margin: 0;
    filter: drop-shadow(0 0 30px rgba(158, 43, 163, 0.35));
}

.hero-tagline {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    margin: 0;
    max-width: 34ch;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.ghost-link {
    color: var(--color-bright-cyan);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
}

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

.hero-trust {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-pale-pink);
}

.hero-trust li::before {
    content: "\2726  ";
    color: var(--color-bright-cyan);
}

/* Drawn floating stars replace the icon-font glyphs */
.floating-element {
    font-size: 0;
    width: 28px;
    height: 28px;
}

.floating-element svg {
    width: 100%;
    height: 100%;
}

.planet-1 {
    width: 44px;
    height: 44px;
}

/* Buttons: magnetic inner span, no layout thrash */
.cta-button {
    transition: box-shadow 0.25s ease;
}

.cta-button > span {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-button:hover {
    transform: none;
}

/* --- Section rhythm ---------------------------------------------------- */
.section {
    padding: 6rem 2rem;
}

.section-title {
    margin-bottom: 2.5rem;
}

.about-text {
    max-width: 66ch;
}

.svc-body,
.svc-intro,
.svc-faq {
    max-width: 66ch;
}

/* --- Services: same five cards, drawn animated icons, aligned rows ------ */
.services-grid {
    gap: 1.25rem;
    align-items: stretch;
}

.service-card {
    aspect-ratio: auto;
    min-height: 330px;
    padding: 2rem 1.35rem 1.75rem;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.25s ease;
    will-change: transform;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 0, 127, 0.14), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-6px);
}

.svc-icon-wrap {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--color-bright-cyan);
}

.svc-icon {
    width: 60px;
    height: 60px;
    overflow: visible;
}

.svc-icon path,
.svc-icon circle,
.svc-icon rect,
.svc-icon polygon {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.1s ease-out;
}

.reveal.in .svc-icon path,
.reveal.in .svc-icon circle,
.reveal.in .svc-icon rect,
.reveal.in .svc-icon polygon {
    stroke-dashoffset: 0;
}

.reveal.in .svc-icon .d2 { transition-delay: 0.15s; }
.reveal.in .svc-icon .d3 { transition-delay: 0.3s; }
.reveal.in .svc-icon .d4 { transition-delay: 0.45s; }

.service-card h3 {
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.98rem;
}

/* Per-icon hover motion */
@keyframes rock { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(8deg); } }
@keyframes juggle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes flicker { 0%, 100% { transform: scale(1) skewX(0); } 35% { transform: scale(1.06) skewX(-3deg); } 70% { transform: scale(0.97) skewX(3deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.14); } 60% { transform: scale(1); } 80% { transform: scale(1.08); } }
@keyframes floatUp { 0% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-8px) translateX(3px); } 100% { transform: translateY(0) translateX(0); } }

.service-card:hover .icon-smile { animation: rock 0.9s ease-in-out infinite; transform-origin: 50% 80%; }
.service-card:hover .icon-shapes > * { animation: juggle 0.8s ease-in-out infinite; }
.service-card:hover .icon-shapes > :nth-child(2) { animation-delay: 0.15s; }
.service-card:hover .icon-shapes > :nth-child(3) { animation-delay: 0.3s; }
.service-card:hover .icon-flame { animation: flicker 0.6s ease-in-out infinite; transform-origin: 50% 100%; }
.service-card:hover .icon-heart { animation: beat 1s ease-in-out infinite; transform-origin: 50% 55%; }
.service-card:hover .icon-bubble { animation: floatUp 1.6s ease-in-out infinite; }

/* --- Gallery: Instagram grid, fallback tiles ---------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto 2rem;
}

.gallery-grid--full {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1100px;
    margin-top: 1rem;
}

.gallery-tile {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-cosmic-blue);
    border: 1px solid rgba(255, 0, 127, 0.25);
    display: block;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-tile img,
.gallery-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-tile:hover {
    transform: translateY(-4px);
    border-color: var(--color-hot-pink);
}

.gallery-tile:hover img {
    transform: scale(1.04);
}

.gallery-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    background: rgba(22, 10, 40, 0.8);
    color: var(--color-bright-cyan);
    font-family: var(--font-heading);
    font-size: 0.8rem;
}

.gallery-note {
    font-size: 0.9rem;
    color: var(--color-pale-pink);
    margin-bottom: 1.5rem;
}

.gallery-note a {
    color: var(--color-bright-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Contact: instructions, trust line, prefilled email ----------------- */
.contact-section {
    padding-top: 6rem;
    padding-bottom: 5rem;
    min-height: 560px;
}

.contact-lead {
    max-width: 52ch;
    margin: 0 auto 1.5rem;
    font-size: 1.15rem;
}

.contact-tell {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.contact-tell li {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(216, 162, 209, 0.4);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--color-pale-pink);
}

.contact-email {
    font-size: 1.1rem;
    padding: 1.1rem 2.2rem;
}

.contact-trust {
    margin: 1.5rem auto 0;
    font-family: var(--font-heading);
    color: var(--color-starry-white);
    font-size: 1rem;
}

.contact-trust span {
    color: var(--color-bright-cyan);
    margin: 0 0.5rem;
}

.contact-grid {
    margin-top: 2rem;
    gap: 2rem;
}

.social-links {
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    padding: 0.5rem 0.25rem;
    min-height: 44px;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.pop-count {
    margin-top: 3rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* --- Footer: contrast fix ---------------------------------------------- */
.main-footer {
    color: #9a92a8;
    background-color: #0d0618;
    border-top: 1px solid rgba(255, 0, 127, 0.25);
}

.main-footer .footer-links a {
    color: #9a92a8;
}

/* --- Reveal ------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .svc-icon * { stroke-dashoffset: 0 !important; transition: none !important; }
    .service-card:hover, .gallery-tile:hover { transform: none; }
}

/* --- Mobile ------------------------------------------------------------- */
@media (max-width: 768px) {
    .mobile-nav-toggle { display: flex; }
    .main-nav a { padding: 0.75rem 0.5rem; font-size: 1.15rem; }
    .home-link-text { display: none; }
    .hero-section { min-height: 0; padding: 2.5rem 1.25rem 3.5rem; }
    .hero-logo { height: clamp(150px, 26vh, 240px); }
    .section { padding: 4rem 1.25rem; }
    .service-card { min-height: 0; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .contact-section { min-height: 520px; }
    .about-text { text-align: left; }
}
