* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--cosmic-black);
    color: var(--moonlight);
    font-family: var(--font-main);
}

.site-header {
    width: 100%;
}

.navbar {
    min-height: 120px;
    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--moonlight);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-cta {
    color: var(--moonlight);
    text-decoration: none;
    border: 1px solid var(--cyan);
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.hero-logo {
    width: min(320px, 34vh);
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-bottom: 1rem;
}
.hero-eyebrow {
    margin-bottom: 0.5rem;
}
.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4.8vh, 2.6rem);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.hero-script {
    display: inline-block;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 0.9em;
    font-style: italic;
    background: linear-gradient(100deg, var(--magenta), #9d42df 48%, var(--cyan));
    color: var(--magenta);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-text {
    max-width: 750px;
    margin: 0 auto 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
}
.hero-cta {
    display: inline-block;
    color: var(--moonlight);
    text-decoration: none;
    border: 1px solid var(--cyan);
    padding: 0.85rem 1.6rem;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.hero {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.nav-cta:hover,
.hero-cta:hover {
    background: var(--magenta);
    color: var(--cosmic-black);
}
.hero {
    background:
        radial-gradient(
            circle at 50% 40%,
            var(--deep-indigo) 0%,
            var(--cosmic-black) 70%
        );
}
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 40%,
            var(--deep-indigo) 0%,
            var(--cosmic-black) 70%
        );
}

.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(123, 79, 211, 0.18) 0%,
        rgba(214, 74, 199, 0.08) 35%,
        transparent 70%
    );
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: -6%;
    width: 68%;
    height: 100%;
    background-image: url("../images/backgrounds/AA%20Background%20Nebula%20tp.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.56;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
    pointer-events: none;
    z-index: 0;
}

.hero-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-star {
    position: absolute;
    width: 32px;
    height: 32px;
    background: linear-gradient(140deg, #f6efff 0%, #bd35ca 34%, #6258e8 68%, var(--cyan) 100%);
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
    filter: drop-shadow(0 0 10px rgba(157, 66, 223, 0.75));
    opacity: 0.88;
}

.hero-star--primary {
    top: 18%;
    right: 16%;
    width: 24px;
    height: 24px;
    opacity: 0.42;
    filter: drop-shadow(0 0 5px rgba(157, 66, 223, 0.4));
}

.hero-star--secondary {
    bottom: 16%;
    left: 14%;
    width: 21px;
    height: 21px;
    opacity: 0.58;
}

.services-section {
    padding: 3.5rem 6% 4rem;
    background: var(--cosmic-black);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-heading h2 {
    color: var(--moonlight);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-align: center;
    text-transform: uppercase;
}

.section-rule {
    width: min(18vw, 190px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--magenta), var(--violet));
}

.section-rule:last-child {
    transform: rotate(180deg);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    max-width: 1180px;
    margin: 0 auto;
}

.service-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    min-height: 180px;
    padding: 1.5rem;
    border: 1px solid rgba(245, 241, 255, 0.18);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.service-icon {
    color: var(--cyan);
    fill: none;
    height: 42px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    width: 42px;
}

.service-card h3 {
    margin-bottom: 0.7rem;
    color: var(--moonlight);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-card p {
    margin-bottom: 1rem;
    color: rgba(245, 241, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.65;
}

.service-card a {
    color: var(--cyan);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.service-card a:hover {
    color: var(--magenta);
}

.work-section {
    padding: 3.5rem 6% 4rem;
    background: linear-gradient(180deg, #0b0817, var(--cosmic-black));
}

.work-intro {
    margin: -1rem auto 1.5rem;
    color: rgba(245, 241, 255, 0.78);
    font-size: 0.92rem;
    text-align: center;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
}

.work-card {
    min-width: 0;
}

.project-preview {
    aspect-ratio: 1.4;
    overflow: hidden;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(245, 241, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.project-preview--luna {
    --preview-accent: #d8a15f;
    --preview-ink: #fff2dd;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(189, 111, 47, 0.36), transparent 56%),
        linear-gradient(135deg, #100d0c, #302016 58%, #11100f);
}

.project-preview--craft {
    --preview-accent: #726b9d;
    --preview-ink: #322e36;
    background:
        radial-gradient(ellipse at 88% 16%, rgba(210, 190, 164, 0.55), transparent 40%),
        linear-gradient(135deg, #f5eadd, #e9d9cd 58%, #f4eee7);
}

.project-preview--beauty {
    --preview-accent: #a66f7e;
    --preview-ink: #392c2c;
    background:
        radial-gradient(ellipse at 90% 80%, rgba(174, 137, 111, 0.28), transparent 42%),
        linear-gradient(135deg, #f7eee8, #ead8cf 55%, #faf6f0);
}

.preview-browser {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 0.65rem 0.8rem 0.9rem;
    color: var(--preview-ink);
}

.preview-dots {
    display: flex;
    gap: 4px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--preview-ink) 20%, transparent);
}

.preview-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--preview-accent);
    opacity: 0.8;
}

.preview-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.preview-kicker {
    margin-bottom: 0.55rem;
    font-size: clamp(0.42rem, 0.7vw, 0.62rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.preview-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2.8vw, 2.3rem);
    line-height: 0.98;
}

.preview-button {
    margin-top: 0.75rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--preview-accent);
    color: var(--preview-ink);
    font-size: clamp(0.4rem, 0.65vw, 0.55rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-label {
    color: var(--magenta);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.work-card h3 {
    margin: 0.3rem 0;
    color: var(--moonlight);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.work-card > p {
    color: rgba(245, 241, 255, 0.76);
    font-size: 0.9rem;
}

.about-section {
    padding: 3.25rem 6%;
    background:
        radial-gradient(ellipse at 10% 50%, rgba(89, 44, 140, 0.2), transparent 38%),
        linear-gradient(180deg, #0a0713, #080611);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(210px, 0.82fr) minmax(280px, 1fr) minmax(300px, 1.12fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    max-width: 1320px;
    margin: 0 auto;
}

.about-visual {
    position: relative;
    display: grid;
    min-height: 340px;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: radial-gradient(ellipse at 50% 50%, rgba(123, 79, 211, 0.2), rgba(8, 6, 17, 0.25) 70%);
}

.about-glow {
    position: absolute;
    width: 76%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 74, 199, 0.18), rgba(72, 215, 232, 0.08) 48%, transparent 72%);
    filter: blur(8px);
}

.about-visual img {
    position: relative;
    width: 112%;
    height: 112%;
    object-fit: contain;
    opacity: 0.92;
}

.about-sparkle {
    position: absolute;
    top: 17%;
    right: 15%;
    color: var(--cyan);
    font-size: 1.3rem;
    text-shadow: 0 0 16px rgba(72, 215, 232, 0.8);
}

.about-eyebrow {
    margin-bottom: 1rem;
    color: var(--moonlight);
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.about-story h2 {
    margin-bottom: 1rem;
    color: var(--moonlight);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
    font-weight: 400;
    line-height: 1.15;
}

.about-story > p:not(.about-eyebrow, .about-script) {
    margin-bottom: 0.85rem;
    color: rgba(245, 241, 255, 0.8);
    font-size: 0.92rem;
    line-height: 1.7;
}

.about-script {
    margin-top: 1.2rem;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(1.05rem, 1.55vw, 1.4rem);
    font-style: italic;
    line-height: 1.35;
}

.about-script span {
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
    background: linear-gradient(100deg, #bd35ca 0%, #8850d8 26%, #536fe0 58%, var(--cyan) 100%);
    color: var(--magenta);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-values {
    display: grid;
    gap: 1.1rem;
    padding: 1.5rem;
    border: 1px solid rgba(245, 241, 255, 0.18);
    border-radius: 12px;
    background: rgba(8, 6, 17, 0.4);
}

.about-value {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 0.9rem;
}

.value-icon {
    color: var(--magenta);
    font-size: 1.8rem;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 14px rgba(214, 74, 199, 0.45);
}

.about-value h3 {
    margin-bottom: 0.25rem;
    color: var(--moonlight);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-value p {
    color: rgba(245, 241, 255, 0.76);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Homepage refinements */
html { scroll-behavior: auto; }
section[id] { scroll-margin-top: 1rem; }
body { line-height: 1.5; }
.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 5;
}
.navbar {
    min-height: 92px;
    max-width: 1600px;
    margin: 0 auto;
}
.logo img { height: 76px; }
.nav-links { align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-links a {
    position: relative;
    padding: 0.5rem 0;
    color: rgba(245, 241, 255, 0.78);
    font-size: 0.84rem;
    transition: color 180ms ease;
}
.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--magenta), var(--cyan));
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--moonlight); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-cta, .hero-cta, .contact-cta {
    border-color: rgba(72, 215, 232, 0.66);
    background: rgba(8, 6, 17, 0.22);
}
.nav-cta { padding: 0.65rem 1.05rem; font-size: 0.84rem; }
.hero {
    min-height: min(880px, 100svh);
    min-height: max(680px, min(880px, 100svh));
    padding: 6rem 6% 3rem;
}
.hero-content { max-width: 760px; }
.hero-eyebrow {
    margin-bottom: 0.15rem;
    color: rgba(245, 241, 255, 0.76);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
}
.hero-logo { width: min(300px, 34vh); margin-bottom: 0.35rem; }
.hero h1 { font-size: clamp(2.15rem, 4.6vw, 3.6rem); line-height: 1.08; text-wrap: balance; }
.hero-script { font-size: 0.8em; }
.hero-text { max-width: 560px; margin-bottom: 1.6rem; color: rgba(245, 241, 255, 0.78); font-size: 1rem; }
.hero-cta, .contact-cta {
    padding: 0.85rem 1.45rem;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.hero-cta:hover, .contact-cta:hover, .nav-cta:hover { transform: translateY(-2px); }
.services-section, .work-section { padding-top: 3.25rem; padding-bottom: 3.25rem; }
.section-heading { margin-bottom: 2.4rem; }
.section-heading h2 { letter-spacing: 0.2em; }
.service-card, .project-preview, .about-values { transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease; }
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(72, 215, 232, 0.4);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}
.work-card:hover .project-preview { transform: translateY(-4px); border-color: rgba(214, 74, 199, 0.55); }
.work-intro { margin-bottom: 2rem; }
.contact-section {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 6%;
    text-align: center;
    background: radial-gradient(ellipse at 50% 120%, rgba(123, 79, 211, 0.3), transparent 60%), #0b0817;
}
.contact-section::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(600px, 80vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(214, 74, 199, 0.6), rgba(72, 215, 232, 0.6), transparent);
    content: "";
    transform: translateX(-50%);
}
.contact-eyebrow {
    margin-bottom: 0.8rem;
    color: var(--cyan);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}
.contact-section h2 {
    margin-bottom: 0.85rem;
    font: 400 clamp(2rem, 4vw, 3.3rem)/1.15 Georgia, "Times New Roman", serif;
}
.contact-section > p:not(.contact-eyebrow) { margin: 0 auto 1.7rem; max-width: 520px; color: rgba(245, 241, 255, 0.76); }
.contact-links { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.1rem; }
.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.contact-cta, .contact-social { display: inline-flex; align-items: center; gap: 0.7rem; border: 1px solid var(--cyan); border-radius: 999px; color: var(--moonlight); text-decoration: none; }
.contact-social { padding: 0.85rem 1.2rem; border-color: rgba(245, 241, 255, 0.25); transition: border-color 180ms ease, transform 180ms ease; }
.contact-social:hover { transform: translateY(-2px); border-color: var(--magenta); }
.instagram-icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.instagram-icon-dot { fill: currentColor; stroke: none; }
.facebook-icon { width: 1.25rem; height: 1.25rem; flex: none; fill: currentColor; }
.tiktok-icon { width: 1.25rem; height: 1.25rem; flex: none; fill: currentColor; }
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 6%;
    border-top: 1px solid rgba(245, 241, 255, 0.1);
    color: rgba(245, 241, 255, 0.6);
    font-size: 0.78rem;
}
.footer-brand { color: var(--moonlight); font-family: Georgia, "Times New Roman", serif; font-size: 1rem; text-decoration: none; }
.footer-brand span { color: var(--magenta); }
.back-to-top { color: var(--cyan); text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 760px) {
    .site-header { position: relative; background: #0a0713; }
    .navbar { min-height: 0; padding: 0.5rem 5% 1rem; flex-wrap: wrap; justify-content: center; gap: 0.1rem 1rem; }
    .logo img { height: 64px; }
    .nav-links { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1rem; }
    .nav-links a { font-size: 0.78rem; }
    .nav-cta { padding: 0.55rem 0.85rem; }
    .hero { min-height: auto; padding: 1.25rem 6% 2.5rem; }
    .hero-logo { width: min(260px, 38vw); }
    .hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.2em; }
    .services-section, .work-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .hero::after {
        right: -28%;
        width: 100%;
        opacity: 0.38;
    }

    .hero-star--primary {
        top: 14%;
        right: 10%;
    }

    .hero-star--secondary {
        bottom: 12%;
        left: 8%;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .services-section {
        padding: 3rem 6% 3.5rem;
    }

    .service-card {
        min-height: 0;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 520px;
    }

    .preview-kicker {
        font-size: 0.55rem;
    }

    .preview-title {
        font-size: clamp(1.8rem, 8vw, 2.7rem);
    }

    .preview-button {
        font-size: 0.5rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .about-visual {
        min-height: 250px;
    }

    .about-values {
        padding: 1.25rem;
    }
    .site-footer { flex-direction: column; text-align: center; gap: 0.4rem; }
    .social-links { gap: 0.6rem; }
}

@media (max-width: 420px) {
    .nav-cta { font-size: 0.76rem; }
    .nav-links { gap: 0.25rem 0.8rem; }
    .section-heading { gap: 0.55rem; }
    .section-heading h2 { font-size: 0.74rem; letter-spacing: 0.12em; }
}

@media (min-width: 761px) and (max-width: 1000px) {
    .about-layout {
        grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
    }

    .about-values {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
