/* ============================================
   Persona Web Development
   Palette:  #0B0518 near-black plum (base)
             #1B0E3A deep indigo (section alt)
             #4A3F9E logo blue (structural accent)
             #C41E86 logo magenta (primary accent)
             #F2E9F5 lilac-white (text)
             #9C8FC2 muted lavender (secondary text)
   Type:     Space Grotesk (display) / Roboto (body, ui)
   ============================================ */

:root {
    --bg: #0B0518;
    --bg-alt: #150A2A;
    --blue: #4A3F9E;
    --blue-light: #7C8CD8;
    --magenta: #C41E86;
    --magenta-light: #E8489F;
    --text: #F2E9F5;
    --text-muted: #9C8FC2;
    --line: rgba(242, 233, 245, 0.12);
    --accent-gradient: linear-gradient(115deg, var(--blue) 0%, var(--blue-light) 45%, var(--magenta) 100%);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    margin: 0;
    color: var(--text);
}

a {
    color: inherit;
}

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

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.noise-overlay {
    display: none;
}

/* -------- Header -------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.75rem clamp(1.5rem, 5vw, 4rem);
    background: rgba(11, 5, 24, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

.site-header.is-scrolled {
    background: rgba(11, 5, 24, 0.78);
    border-bottom: 1px solid var(--line);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.primary-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.25s ease;
    position: relative;
    padding-bottom: 0.2rem;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent-gradient);
    box-shadow: 0 0 10px rgba(196, 30, 134, 0.7), 0 0 18px rgba(124, 140, 216, 0.5);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--text);
    text-shadow: 0 0 12px rgba(196, 30, 134, 0.5);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* -------- Hero -------- */

.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: none;
    margin: 0;
    padding: clamp(2rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
    background: var(--bg);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    width: 560px;
    height: 560px;
    left: -160px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(196, 30, 134, 0.32), transparent 70%);
    animation: blobDrift1 16s ease-in-out infinite;
}

.hero::after {
    width: 480px;
    height: 480px;
    right: -140px;
    top: -140px;
    background: radial-gradient(circle, rgba(74, 63, 158, 0.38), transparent 70%);
    animation: blobDrift2 18s ease-in-out infinite;
}

@keyframes blobDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -40px) scale(1.08); }
}

@keyframes blobDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 50px) scale(1.06); }
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.hero-logo-wrap {
    display: flex;
    justify-content: center;
}

.hero-logo {
    width: 100%;
    max-width: 460px;
    filter:
        drop-shadow(0 0 18px rgba(196, 30, 134, 0.45))
        drop-shadow(0 0 42px rgba(74, 63, 158, 0.4))
        drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
    animation: fadeIn 1s ease both, logoGlowPulse 6s ease-in-out infinite 1s;
}

@keyframes logoGlowPulse {
    0%, 100% {
        filter:
            drop-shadow(0 0 18px rgba(196, 30, 134, 0.45))
            drop-shadow(0 0 42px rgba(74, 63, 158, 0.4))
            drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
    }
    50% {
        filter:
            drop-shadow(0 0 28px rgba(196, 30, 134, 0.65))
            drop-shadow(0 0 60px rgba(124, 140, 216, 0.5))
            drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
    }
}

.hero-content {
    max-width: 620px;
    justify-self: start;
}

.hero-kicker {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: var(--magenta-light);
    text-shadow: 0 0 14px rgba(196, 30, 134, 0.55);
    margin: 0 0 1.25rem;
    animation: fadeUp 0.8s ease both 0.15s;
}

.hero-title {
    font-size: clamp(2.2rem, 4.8vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s ease both 0.3s;
}

.hero-lede {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 52ch;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s ease both 0.45s;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease both 0.6s;
}

/* -------- Buttons -------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.75rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    background-size: 160% 160%;
    background-position: 0% 50%;
    color: #fff;
    box-shadow: 0 0 14px rgba(196, 30, 134, 0.4), 0 0 30px rgba(74, 63, 158, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-2px);
    background-position: 100% 50%;
    box-shadow: 0 0 20px rgba(196, 30, 134, 0.7), 0 0 50px rgba(124, 140, 216, 0.5), 0 12px 30px rgba(196, 30, 134, 0.35);
}

.btn-quiet {
    border-color: var(--line);
    color: var(--text);
    background: transparent;
}

.btn-quiet:hover,
.btn-quiet:focus-visible {
    border-color: var(--magenta-light);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(196, 30, 134, 0.35), inset 0 0 12px rgba(196, 30, 134, 0.12);
}

:focus-visible {
    outline: 2px solid var(--magenta-light);
    outline-offset: 3px;
}

/* -------- Scroll reveal -------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.work-grid .work-card:nth-child(1) { transition-delay: 0s; }
.work-grid .work-card:nth-child(2) { transition-delay: 0.12s; }
.work-grid .work-card:nth-child(3) { transition-delay: 0.24s; }
.work-grid .work-card:nth-child(4) { transition-delay: 0.36s; }

.pricing-grid .price-card:nth-child(1) { transition-delay: 0s; }
.pricing-grid .price-card:nth-child(2) { transition-delay: 0.12s; }
.pricing-grid .price-card:nth-child(3) { transition-delay: 0.24s; }

/* -------- Section shell -------- */

main section {
    padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 5vw, 4rem);
    max-width: 1180px;
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2.75rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.25rem;
}

.section-index {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

/* -------- About -------- */

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--magenta);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(74, 63, 158, 0.14), rgba(196, 30, 134, 0.12));
    box-shadow: 0 0 14px rgba(196, 30, 134, 0.25);
    font-size: 0.9rem;
    color: var(--text);
}

.credential-badge svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--magenta-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
}

.about-lead {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.about-copy p {
    max-width: 62ch;
    color: var(--text-muted);
}

.about-copy p + p {
    margin-top: 1.1rem;
}

.about-facts {
    border-left: 1px solid var(--line);
    padding-left: 2rem;
}

.about-facts li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.about-facts li:first-child {
    padding-top: 0;
}

.about-facts li:last-child {
    border-bottom: none;
}

.about-facts span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

/* -------- Work -------- */

.work {
    background: var(--bg-alt);
    max-width: none;
}

.work > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.work-card {
    border: 1px solid var(--line);
    border-top: 3px solid transparent;
    border-image: var(--accent-gradient) 1;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 2px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.6s ease;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 24px rgba(196, 30, 134, 0.28), 0 0 54px rgba(74, 63, 158, 0.24), 0 22px 44px rgba(0, 0, 0, 0.35);
}

.work-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.work-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--magenta-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.work-link .arrow {
    transition: transform 0.25s ease;
}

.work-tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
}

.work-link:hover,
.work-link:focus-visible {
    border-color: var(--magenta-light);
}

.work-link:hover .arrow,
.work-link:focus-visible .arrow {
    transform: translateX(4px);
}

.work-note {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}

/* -------- Pricing -------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: stretch;
}

.price-card {
    position: relative;
    border: 1px solid var(--line);
    padding: 2rem;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.6s ease;
}

.price-card:hover {
    transform: translateY(-6px);
    border-color: var(--text-muted);
    box-shadow: 0 0 20px rgba(124, 140, 216, 0.22), 0 22px 44px rgba(0, 0, 0, 0.3);
}

.price-card--featured {
    border-color: var(--magenta);
    background: linear-gradient(180deg, rgba(196, 30, 134, 0.08), transparent 40%);
    animation: featuredGlow 5s ease-in-out infinite;
}

.price-card--featured:hover {
    border-color: var(--magenta-light);
}

@keyframes featuredGlow {
    0%, 100% { box-shadow: 0 0 14px rgba(196, 30, 134, 0.2), 0 0 30px rgba(196, 30, 134, 0.1); }
    50% { box-shadow: 0 0 30px rgba(196, 30, 134, 0.55), 0 0 64px rgba(124, 140, 216, 0.4); }
}

.price-flag {
    position: absolute;
    top: -0.8rem;
    left: 2rem;
    background: var(--magenta);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin: 0;
}

.price-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem;
    color: var(--magenta-light);
    text-shadow: 0 0 18px rgba(196, 30, 134, 0.4);
    margin: 0 0 1rem;
}

.price-detail {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

.price-card ul {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.price-card li {
    font-size: 0.92rem;
    padding-left: 1.1rem;
    position: relative;
    color: var(--text);
}

.price-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 1px;
    background: var(--text-muted);
}

.price-enquire {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--magenta-light);
    text-decoration: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.price-enquire .arrow {
    transition: transform 0.25s ease;
}

.price-enquire:hover,
.price-enquire:focus-visible {
    color: var(--text);
    text-shadow: 0 0 12px rgba(196, 30, 134, 0.55);
}

.price-enquire:hover .arrow,
.price-enquire:focus-visible .arrow {
    transform: translateX(4px);
}

.pricing-note {
    text-align: center;
    max-width: 480px;
    margin: 3.5rem auto 0;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: linear-gradient(160deg, rgba(74, 63, 158, 0.1), rgba(196, 30, 134, 0.08));
    animation: featuredGlow 5s ease-in-out infinite;
}

.pricing-note-text {
    margin: 0 0 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text);
}

.pricing-note-btn {
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
}

/* -------- Contact -------- */

.contact {
    background: var(--bg-alt);
    max-width: none;
}

.contact-inner {
    max-width: 680px;
    margin: 0 auto;
}

.contact-lede {
    color: var(--text-muted);
    margin: 0 0 2.5rem;
    max-width: 50ch;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: rgba(242, 233, 245, 0.04);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 0.8rem 1rem;
    resize: vertical;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239C8FC2'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.19l3.71-3.96a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.form-status {
    min-height: 1.2em;
    font-size: 0.9rem;
    margin: 0;
}

.form-status.is-success {
    color: var(--blue-light);
}

.form-status.is-error {
    color: var(--magenta-light);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(124, 140, 216, 0.18);
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* -------- Footer -------- */

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1.5rem 3.5rem;
    border-top: 1px solid var(--line);
    text-align: center;
}

.footer-logo {
    width: 160px;
    opacity: 0.85;
}

.footer-social {
    display: flex;
    gap: 1.25rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--text-muted);
    transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.social-icon svg {
    width: 19px;
    height: 19px;
}

.social-icon:hover,
.social-icon:focus-visible {
    color: var(--text);
    border-color: var(--magenta-light);
    transform: translateY(-3px);
    box-shadow: 0 0 16px rgba(196, 30, 134, 0.45), 0 0 32px rgba(124, 140, 216, 0.3);
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* -------- Responsive -------- */

@media (max-width: 900px) {
    .about-grid,
    .work-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .about-facts {
        border-left: none;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 2rem;
    }

    .hero-monogram {
        opacity: 0.07;
        width: 90vw;
        left: -20%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-logo-wrap {
        margin-bottom: 1rem;
    }

    .hero-logo {
        max-width: 260px;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 1.25rem 1.25rem;
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(11, 5, 24, 0.97);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .primary-nav.is-open {
        max-height: 320px;
    }

    .primary-nav a {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .primary-nav a::after {
        display: none;
    }

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

    .hero {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}
