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

:root {
    --paper: #12141A;
    --paper-deep: #0A0B0E;
    --ink: #EDEBE4;
    --ink-muted: #9A9EAB;
    --ink-faint: rgba(237, 235, 228, 0.12);
    --accent: #7EB0D8;
    --accent-soft: rgba(126, 176, 216, 0.14);
    --cta: #C94B6A;
    --cta-hover: #E06A85;
    --surface: #1A1D24;
    --white: #EDEBE4;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Figtree', system-ui, sans-serif;
    --radius: 2px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
    --max: 1080px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--cta);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--white);
    padding: 0.75rem 1rem;
    z-index: 1000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.container {
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: rgba(237, 235, 228, 0.28);
}

.btn-ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding: clamp(4rem, 12vh, 7rem) 0 clamp(3.5rem, 8vh, 5rem);
    overflow: hidden;
    background: var(--paper);
}

.hero-wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 85% 10%, rgba(126, 176, 216, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 45% at 10% 90%, rgba(201, 75, 106, 0.12), transparent 50%),
        linear-gradient(165deg, #1A1D24 0%, var(--paper) 45%, var(--paper-deep) 100%);
    z-index: 0;
    animation: wash-in 1.1s ease-out both;
}

.hero-wash::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    opacity: 0.06;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
    max-width: 40rem;
}

.brand-mark {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1.75rem;
    animation: rise 0.8s ease-out 0.1s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
    animation: rise 0.8s ease-out 0.22s both;
}

.hero-lede {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    color: var(--ink-muted);
    max-width: 34rem;
    margin-bottom: 2rem;
    animation: rise 0.8s ease-out 0.34s both;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: rise 0.8s ease-out 0.46s both;
}

/* Decorative wash may fade; never fade LCP text (opacity:0 → NO_LCP in PSI). */
@keyframes wash-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rise {
    from { transform: translateY(14px); }
    to { transform: translateY(0); }
}

/* Sections shared */
section {
    padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.section-head {
    margin-bottom: clamp(2rem, 5vw, 3rem);
    max-width: 36rem;
}

.section-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.section-lede {
    color: var(--ink-muted);
    font-size: 1.05rem;
}

/* Gallery — list, not emoji cards */
.gallery {
    background: var(--surface);
    border-block: 1px solid var(--ink-faint);
}

.gallery-list {
    display: flex;
    flex-direction: column;
}

.gallery-row {
    display: grid;
    grid-template-columns: 8.5rem 1fr auto;
    gap: 1rem;
    align-items: baseline;
    padding: 1.35rem 0;
    border-top: 1px solid var(--ink-faint);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.25s ease, background 0.25s ease;
}

.gallery-row:last-child {
    border-bottom: 1px solid var(--ink-faint);
}

.gallery-row:hover {
    padding-left: 0.5rem;
}

.gallery-place {
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.gallery-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
}

.gallery-action {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

/* How it works */
.steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1.25rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--ink-faint);
}

.step:last-child {
    border-bottom: 1px solid var(--ink-faint);
}

.step-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.step-desc {
    color: var(--ink-muted);
    max-width: 36rem;
}

/* Pricing */
.pricing {
    background: var(--paper-deep);
    color: var(--ink);
}

.pricing .section-kicker {
    color: var(--accent);
}

.pricing .section-title {
    color: var(--ink);
}

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

.pricing-card {
    background: rgba(237, 235, 228, 0.03);
    border: 1px solid var(--ink-faint);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.popular {
    background: var(--surface);
    color: var(--ink);
    border-color: rgba(126, 176, 216, 0.35);
    box-shadow: var(--shadow-soft);
}

.popular-badge {
    position: absolute;
    top: -0.7rem;
    left: 1.25rem;
    background: var(--cta);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 2.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    padding: 0.45rem 0;
    border-top: 1px solid var(--ink-faint);
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.pricing-card:not(.popular) .pricing-features li:first-child,
.pricing-card.popular .pricing-features li:first-child {
    border-top: none;
}

.pricing-btn {
    width: 100%;
}

.pricing-card:not(.popular) .btn-secondary {
    color: var(--ink);
    border-color: rgba(237, 235, 228, 0.28);
}

.pricing-card:not(.popular) .btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}

/* FAQ */
.faq-list {
    max-width: 40rem;
}

.faq-item {
    border-top: 1px solid var(--ink-faint);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--ink-faint);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 12rem;
    padding-bottom: 1.15rem;
}

.faq-answer p {
    color: var(--ink-muted);
}

/* About */
.about {
    background: var(--surface);
    border-block: 1px solid var(--ink-faint);
}

.about-block {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    max-width: 40rem;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--ink-faint);
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-bio {
    color: var(--ink-muted);
    margin-bottom: 0.85rem;
}

.profile-links {
    font-size: 0.95rem;
    font-weight: 600;
}

.profile-links a {
    text-decoration: none;
}

.profile-links a:hover {
    text-decoration: underline;
}

/* Projects as proof */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
}

.project-card {
    padding-top: 1.25rem;
    border-top: 1px solid var(--ink-faint);
}

.project-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.project-desc {
    color: var(--ink-muted);
    font-size: 0.98rem;
    margin-bottom: 0.75rem;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin-bottom: 0.65rem;
}

.lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

/* Contact */
.contact {
    background:
        radial-gradient(ellipse 70% 80% at 20% 50%, rgba(126, 176, 216, 0.12), transparent 55%),
        var(--paper-deep);
}

.contact-inner {
    max-width: 32rem;
    text-align: left;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.contact-lede {
    color: var(--ink-muted);
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

.contact-btn {
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
}

/* Footer */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--ink-faint);
    background: var(--paper);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}

.footer-copy {
    font-size: 0.9rem;
    color: var(--ink-muted);
}

.footer-copy a {
    color: inherit;
    font-weight: 600;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

.js .scroll-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* Scroll top */
.scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--ink-faint);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease, background 0.2s ease;
    z-index: 100;
}

.scroll-top-btn:hover {
    transform: translateY(-2px);
    background: var(--cta);
    color: var(--white);
    border-color: transparent;
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 24rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 1.15rem 0;
    }

    .gallery-action {
        margin-top: 0.35rem;
    }

    .step {
        grid-template-columns: 3rem 1fr;
        gap: 0.85rem;
    }

    .about-block {
        flex-direction: column;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 1.5rem, var(--max));
    }

    .brand-mark {
        margin-bottom: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
