/* ============================================
   Gina Stolwijk Portfolio — new/
   Clean, modern design with Audiflow focus
   ============================================ */

:root {
    /* Sweet Summer Melody */
    --honey: #F4BB51;
    --cream: #F7EFE5;
    --blush: #F3C5C5;
    --sage: #8EACA2;
    --coral: #F38181;
    --sage-dark: #4a6b63;
    --sage-muted: #6a8480;

    /* Semantic aliases */
    --yellow: var(--honey);
    --blue: var(--sage);
    --dark-blue: var(--sage-dark);
    --beige: var(--blush);
    --dark-beige: #e8b8b8;
    --light-beige: var(--cream);
    --green: var(--sage);
    --orange: var(--coral);

    --color-bg: var(--cream);
    --color-surface: #fffdf9;
    --color-surface-alt: var(--blush);
    --color-text: var(--sage-dark);
    --color-text-muted: var(--sage-muted);
    --color-border: var(--dark-beige);
    --color-accent: var(--coral);
    --color-accent-soft: #fdeaea;
    --color-dark: var(--sage-dark);
    --color-dark-muted: #a8c0b9;

    --font-display: 'Truculenta', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 3px rgba(26, 24, 22, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 24, 22, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 24, 22, 0.12);

    --header-height: 72px;
    --container: 1120px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(247, 239, 229, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.nav-menu a:hover {
    color: var(--color-text);
}

.nav-cta {
    background: var(--dark-blue);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 100px;
    transition: background var(--transition) !important;
}

.nav-cta:hover {
    background: var(--orange) !important;
    color: #fff !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

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

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

.btn-primary:hover {
    background: #e06b6b;
    border-color: #e06b6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(243, 129, 129, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--dark-blue);
    border-color: var(--blue);
}

.btn-ghost:hover {
    border-color: var(--sage);
    background: rgba(142, 172, 162, 0.12);
    color: var(--sage-dark);
}

.btn-full {
    width: 100%;
}

/* ---- Hero ---- */
.hero {
    padding: calc(var(--header-height) + 60px) 0 0;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: end;
    width: 100%;
}

.hero-text {
    padding-bottom: 80px;
}

.eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange);
    margin-bottom: 16px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--dark-blue);
}

.hero h1 .flower-trigger,
.hero h1 .code-trigger {
    display: inline-block;
    font-style: normal;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero h1 .flower-trigger {
    background: var(--sage-dark);
    color: var(--cream);
    padding: 0.02em 0.35em;
    transform: rotate(-2deg);
}

.hero h1 .flower-trigger:hover {
    background: var(--sage);
    color: var(--honey);
    transform: rotate(-2deg) scale(1.03);
}

.hero h1 .code-trigger {
    color: var(--coral);
}

.hero h1 .code-trigger:hover {
    color: var(--sage-dark);
}

.wave-heading .flower-trigger .letter {
    color: inherit;
}

.wave-heading .code-trigger .letter {
    color: inherit;
}

.lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    align-self: end;
}

.hero-illustration {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-illustration svg {
    width: 100%;
    max-height: 400px;
    display: block;
}

.hero-illustration .hero-fallback {
    font-size: 3rem;
    text-align: center;
    padding: 40px;
}

/* Wave text (hero title) */
.wave-heading .wave-word {
    display: inline-block;
    white-space: nowrap;
}

.wave-heading .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    animation: letter-pop 0.5s ease forwards;
    animation-delay: calc(var(--i) * 0.025s);
}

.wave-heading em .letter {
    color: var(--color-accent);
}

.wave-heading .letter-space {
    display: inline-block;
    width: 0.28em;
}

.wave-heading .letter.wave-bounce {
    animation: letter-wave 0.6s ease;
}

/* Shimmer heading (contact) */
.shimmer-heading {
    background: linear-gradient(120deg, var(--sage-dark) 25%, var(--sage) 40%, var(--honey) 55%, var(--coral) 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom cursor (from original portfolio) */
.ball {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 3px solid var(--green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.ball.visible {
    opacity: 1;
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--sage), var(--honey), var(--coral));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 10001;
}

/* Footer heart */
.heart-beat {
    display: inline-block;
    color: var(--orange);
    animation: heart-pulse 2s ease-in-out infinite;
}

/* Gina avatar */
.contact-avatar {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    max-height: 400px;
}

.contact-avatar svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    overflow: hidden;
    display: block;
}

.contact-avatar .bg { fill: var(--sage); }
.contact-avatar .shadow { fill: #6d9188; }
.contact-avatar .top { fill: var(--coral); }
.contact-avatar .fill-bg {
    fill: var(--cream);
    transform: translateY(-0.01px);
}
.contact-avatar .st2 { fill: #7B634B; }
.contact-avatar .st3 { fill: #5c4a42; }
.contact-avatar .st4 { fill: #6d5244; }
.contact-avatar .st5 { fill: #FFCCA9; }
.contact-avatar .st7 { fill: #3d4a47; }
.contact-avatar .neck { fill: #F4B68C; }
.contact-avatar .mouth {
    fill: none;
    stroke: #F2AC8C;
    stroke-width: 1.04;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-avatar .st11 { fill: #262528; opacity: 0; }
.contact-avatar .nose {
    fill: none;
    stroke: #F4B68C;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-avatar .glasses {
    fill: none;
    stroke: #c9bdb8;
    stroke-width: 1;
    stroke-miterlimit: 10;
}
.contact-avatar .dizzy {
    fill: none;
    stroke: #3d4a47;
    stroke-width: 0.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Keyframes */
@keyframes letter-pop {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes letter-wave {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
    60% { transform: translateY(2px); }
}

@keyframes heart-pulse {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
}

/* ---- Sections shared ---- */
section {
    padding: 100px 0;
}

.section-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-intro--left {
    text-align: left;
    margin-left: 0;
    max-width: 560px;
}

.section-intro h2,
.about h2,
.contact h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* ---- Audiflow ---- */
.audiflow {
    background: var(--dark-blue);
    color: #fff;
}

.audiflow .section-intro h2 {
    color: #fff;
}

.audiflow .section-lead {
    color: var(--color-dark-muted);
}

.audiflow .badge {
    background: rgba(244, 187, 81, 0.18);
    color: var(--honey);
}

.audiflow-overview {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}

.audiflow-copy p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
}

.audiflow-copy strong {
    color: #fff;
    font-weight: 600;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

.tech-pill {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: background var(--transition), border-color var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(243, 129, 129, 0.35);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-dark-muted);
    line-height: 1.55;
}

/* Gallery */
.gallery-intro {
    padding: 16px 20px 0;
    font-size: 0.9rem;
    color: var(--color-dark-muted);
}

.gallery {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-tab {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--color-dark-muted);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
}

.gallery-tab:hover {
    color: #fff;
}

.gallery-tab.active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.gallery-panels {
    position: relative;
}

.gallery-panel {
    margin: 0;
}

.gallery-panel[hidden] {
    display: none;
}

.gallery-panel img {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-panel figcaption {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--color-dark-muted);
    text-align: center;
}

/* ---- About ---- */
.about {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: start;
}

.about p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.about p em {
    color: var(--color-text);
    font-style: italic;
}

.about-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-highlight {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    border: 1px solid rgba(142, 172, 162, 0.35);
    border-left: 4px solid var(--sage);
    box-shadow: var(--shadow-sm);
}

.about-highlight-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sage-dark);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.about-highlight-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ---- Projects ---- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 260px;
    cursor: default;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.project-card:hover,
.project-card:focus-within {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.project-body {
    position: relative;
    z-index: 1;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: opacity 0.35s ease;
}

.project-preview {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.project-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 24, 22, 0.75) 0%,
        rgba(26, 24, 22, 0.2) 45%,
        transparent 100%
    );
}

.project-preview-label {
    position: absolute;
    bottom: 16px;
    left: 20px;
    right: 20px;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.project-card:hover .project-preview,
.project-card:focus-within .project-preview {
    opacity: 1;
}

.project-card:hover .project-preview-label,
.project-card:focus-within .project-preview-label {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .project-body,
.project-card:focus-within .project-body {
    opacity: 0;
}

.project-type {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 12px;
    display: block;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.55;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
}

.project-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    opacity: 0.6;
}

.project-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    position: relative;
    z-index: 3;
}

.project-link:hover {
    color: var(--sage-dark);
}

/* Touch devices: show a thumbnail strip instead of hover */
@media (hover: none) {
    .project-card {
        min-height: auto;
    }

    .project-preview {
        position: relative;
        inset: auto;
        opacity: 1;
        height: 140px;
        pointer-events: auto;
    }

    .project-preview::after {
        background: linear-gradient(
            to top,
            rgba(26, 24, 22, 0.5) 0%,
            transparent 60%
        );
    }

    .project-preview-label {
        transform: translateY(0);
        opacity: 1;
        font-size: 0.85rem;
    }

    .project-body {
        opacity: 1 !important;
    }

    .project-hint {
        display: none;
    }

    .project-card:hover,
    .project-card:focus-within {
        transform: none;
    }
}

/* ---- Tool logo marquee ---- */
.tool-marquee {
    margin-top: 36px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    opacity: 0.55;
}

.tool-marquee__track {
    display: flex;
    width: max-content;
    animation: tool-marquee 50s linear infinite;
}

.tool-marquee:hover .tool-marquee__track {
    animation-play-state: paused;
}

.tool-marquee__set {
    display: flex;
    align-items: flex-start;
    gap: 46px;
    padding: 8px 18px;
    list-style: none;
    margin: 0;
}

.tool-marquee__item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 52px;
}

.tool-marquee__set img {
    height: 50px;
    width: 50px;
    opacity: 0.8;
    filter: grayscale(40%);
    transition: opacity var(--transition), filter var(--transition);
}

.tool-marquee__label {
    font-size: 0.825rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--color-text-muted);
    white-space: nowrap;
    opacity: 0.8;
    line-height: 1.2;
}

.tool-marquee:hover .tool-marquee__set img {
    opacity: 1;
    filter: grayscale(10%);
}

.tool-marquee:hover .tool-marquee__label {
    opacity: 1;
}

@keyframes tool-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .tool-marquee {
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
        opacity: 0.7;
    }

    .tool-marquee__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 12px 24px;
    }

    .tool-marquee__set:last-child {
        display: none;
    }
}

/* ---- Data ---- */
.data {
    background: var(--color-surface-alt);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.data-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
}

.data-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.data-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.55;
}

.data-skills {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.contact p {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-link:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-sm);
}

.contact-link-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.contact-link-value {
    font-weight: 600;
    color: var(--color-text);
}

/* ---- Footer ---- */
.site-footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .hero-grid,
    .audiflow-overview,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-avatar {
        max-height: 180px;
        order: -1;
    }

    .contact-avatar svg {
        max-width: 200px;
    }

    .feature-grid,
    .project-grid,
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-visual {
        min-height: 300px;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-text {
        padding-bottom: 40px;
    }
}

@media (max-width: 720px) {
    section {
        padding: 72px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .feature-grid,
    .project-grid,
    .data-grid {
        grid-template-columns: 1fr;
    }

    .gallery-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero {
        padding-top: calc(var(--header-height) + 48px);
        padding-bottom: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    .hero-illustration #typing,
    .hero-illustration #steam path,
    .heart-beat,
    .wave-heading .letter {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .ball {
        display: none;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
