/* =========================================
   Kelly Webb-Davies — Shared Design System
   Cherry Blossom + Neural Network Aesthetic
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Custom Properties ---------- */
:root {
    /* Cherry blossom palette */
    --cream: #FDF5EE;
    --cream-dark: #F5EBE0;
    --blossom: #E8B4B8;
    --blossom-deep: #D4858A;
    --blossom-light: #F2D1D3;
    --blossom-glow: rgba(232, 180, 184, 0.6);
    --branch: #A08C7B;
    --branch-light: #C4B5A8;
    --dark: #2D2A26;
    --dark-warm: #3D3830;
    --body-text: #5A5248;
    --white: #FFFFFF;

    /* Accent for links/interactive */
    --accent: #C2727A;
    --accent-hover: #A8555D;

    /* System */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-card: 0 4px 24px rgba(45, 42, 38, 0.06);
    --shadow-hover: 0 8px 40px rgba(45, 42, 38, 0.12);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.7;
    background: var(--cream);
    overflow-x: hidden;
}

.nowrap {
    white-space: nowrap;
}

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

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

ul {
    list-style: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    line-height: 1.15;
    font-weight: 700;
    color: var(--dark);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

p {
    color: var(--body-text);
    line-height: 1.8;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blossom-deep);
    margin-bottom: 0.75rem;
}

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

.section-subtitle {
    font-size: 1.05rem;
    color: var(--body-text);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* ---------- Sections ---------- */
.section {
    padding: 6rem 0;
}

.section--cream {
    background: var(--cream);
}

.section--white {
    background: var(--white);
}

.section--warm {
    background: var(--dark);
    color: var(--cream);
}

.section--warm p {
    color: var(--branch-light);
}

.section--warm .section-label {
    color: var(--blossom);
}

.section--warm .section-title {
    color: var(--cream);
}

/* =========================================
   NAVIGATION (shared)
   ========================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 245, 238, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(160, 140, 123, 0.12);
    transition: var(--transition);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav__logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav__logo-accent {
    color: var(--blossom-deep);
}

.nav__links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav__links a {
    color: var(--body-text);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blossom-deep);
    transition: var(--transition);
}

.nav__links a:hover {
    color: var(--dark);
}

.nav__links a:hover::after,
.nav__links a.active::after {
    width: 100%;
}

.nav__links a.active {
    color: var(--blossom-deep);
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav__hamburger span {
    width: 22px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* =========================================
   HERO — Landing Page
   ========================================= */
.hero-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 68px;
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
}

.hero-landing__bg {
    position: absolute;
    inset: 0;
    background-image: url('images/cherry-blossom-inspiration.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.hero-landing__blossoms {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.blossom-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--blossom-glow);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--blossom-glow), 0 0 40px rgba(232, 180, 184, 0.3);
    animation: node-pulse 5s ease-in-out infinite;
}

.blossom-node:nth-child(1) {
    top: 12%;
    left: 8%;
    animation-delay: 0s;
}

.blossom-node:nth-child(2) {
    top: 22%;
    right: 12%;
    animation-delay: 0.7s;
    width: 12px;
    height: 12px;
}

.blossom-node:nth-child(3) {
    top: 55%;
    left: 15%;
    animation-delay: 1.4s;
}

.blossom-node:nth-child(4) {
    top: 70%;
    right: 20%;
    animation-delay: 2.1s;
    width: 10px;
    height: 10px;
}

.blossom-node:nth-child(5) {
    top: 35%;
    left: 45%;
    animation-delay: 2.8s;
    width: 6px;
    height: 6px;
}

.blossom-node:nth-child(6) {
    bottom: 15%;
    left: 30%;
    animation-delay: 0.5s;
}

.blossom-node:nth-child(7) {
    top: 40%;
    right: 8%;
    animation-delay: 1.9s;
    width: 10px;
    height: 10px;
}

.blossom-node:nth-child(8) {
    top: 80%;
    left: 60%;
    animation-delay: 3.2s;
    width: 6px;
    height: 6px;
}

/* Subtle connecting lines */
.blossom-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blossom-glow), transparent);
    animation: line-fade 7s ease-in-out infinite;
    opacity: 0.4;
}

.blossom-line:nth-child(9) {
    top: 18%;
    left: 8%;
    width: 35%;
    transform: rotate(8deg);
    animation-delay: 0s;
}

.blossom-line:nth-child(10) {
    top: 45%;
    left: 40%;
    width: 28%;
    transform: rotate(-12deg);
    animation-delay: 2s;
}

.blossom-line:nth-child(11) {
    top: 65%;
    left: 15%;
    width: 22%;
    transform: rotate(5deg);
    animation-delay: 4s;
}

.blossom-line:nth-child(12) {
    top: 30%;
    right: 5%;
    width: 20%;
    transform: rotate(-18deg);
    animation-delay: 1s;
}

@keyframes node-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.8);
        opacity: 1;
    }
}

@keyframes line-fade {

    0%,
    100% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-landing__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
}

.hero-landing__text {
    max-width: 560px;
}

.hero-landing__greeting {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--blossom-deep);
    margin-bottom: 0.5rem;
    animation: fade-in-up 0.8s ease-out;
}

.hero-landing__name {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 0.75rem;
    animation: fade-in-up 0.8s ease-out 0.1s both;
}

.hero-landing__name span {
    background: linear-gradient(135deg, var(--blossom-deep), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-landing__role {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--branch);
    margin-bottom: 0.5rem;
    animation: fade-in-up 0.8s ease-out 0.2s both;
}

.hero-landing__affiliation {
    font-size: 0.88rem;
    color: var(--branch-light);
    margin-bottom: 2rem;
    animation: fade-in-up 0.8s ease-out 0.3s both;
}

.hero-landing__cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fade-in-up 0.8s ease-out 0.4s both;
}

/* CTA buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 133, 138, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--branch-light);
}

.btn--outline:hover {
    border-color: var(--blossom-deep);
    color: var(--blossom-deep);
    transform: translateY(-2px);
}

/* Hero photo */
.hero-landing__photo {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fade-in-up 1s ease-out 0.3s both;
}

.hero-landing__photo img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 64px rgba(45, 42, 38, 0.12);
    border: 4px solid var(--white);
}

.hero-landing__photo::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid var(--blossom);
    border-radius: var(--radius-xl);
    opacity: 0.5;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about__content {
    max-width: 760px;
    margin: 0 auto;
}

.about__content p {
    font-size: 1.02rem;
    margin-bottom: 1.25rem;
}

.about__content p:last-child {
    margin-bottom: 0;
}

/* =========================================
   ABOUT QUALIFICATIONS LIST
   ========================================= */
.about__quals {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(160, 140, 123, 0.2);
    text-align: left;
}

.about__quals h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--branch);
    margin-bottom: 1rem;
}

.about__quals ul {
    list-style: none;
    font-size: 0.9rem;
    color: var(--body-text);
}

.about__quals li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.4;
}

.about__quals li::before {
    content: '🌸';
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 0.75rem;
}

.about__quals strong {
    color: var(--dark);
    font-weight: 600;
}

/* =========================================
   CHERRY BLOSSOM BANNER
   ========================================= */
.cherry-banner {
    width: 100%;
    height: 35vh;
    min-height: 250px;
    background-image: url('images/cherry-blossom-inspiration.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
}

.cherry-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(232, 180, 184, 0.1), rgba(253, 245, 238, 0.4));
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(160, 140, 123, 0.1);
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.project-card__banner {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-card__banner--vfwa {
    background: linear-gradient(135deg, #002147, #1a3a5c);
}

.project-card__banner--personas {
    background: linear-gradient(135deg, var(--dark), var(--dark-warm));
}

.project-card__banner img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.project-card__logo-fill {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.project-card__logo-large {
    height: 90px !important;
}

.project-card__banner-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
}

.project-card__body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card__tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blossom-deep);
    margin-bottom: 0.75rem;
}

.project-card__body h3 {
    margin-bottom: 0.5rem;
}

.project-card__body p {
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--blossom-deep);
    transition: var(--transition);
}

.project-card__link:hover {
    color: var(--accent-hover);
    gap: 0.75rem;
}

/* =========================================
   VIDEOS
   ========================================= */
.videos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(160, 140, 123, 0.1);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.video-card__embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-card__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card__info {
    padding: 1.25rem 1.5rem;
}

.video-card__info h4 {
    font-size: 0.92rem;
    line-height: 1.3;
}

/* =========================================
   FOOTER (shared)
   ========================================= */
.footer {
    background: var(--dark);
    padding: 3rem 0 2rem;
    color: var(--branch-light);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--cream);
}

.footer__brand span {
    color: var(--blossom);
}

.footer__info {
    font-size: 0.8rem;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__links a {
    font-size: 0.8rem;
    color: var(--branch-light);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--blossom);
}

/* =========================================
   WRITING / SUBSTACK
   ========================================= */
.writing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    text-align: left;
}

.writing-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.writing-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--blossom);
    transform: translateY(-3px);
}

.writing-card h3 {
    font-size: 1rem;
    color: var(--blossom);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.writing-card p {
    font-size: 0.86rem;
    color: var(--branch-light);
    margin-bottom: 1rem;
    flex: 1;
}

.writing-card__link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blossom);
    transition: var(--transition);
}

.writing-card:hover .writing-card__link {
    color: var(--blossom-light);
}

/* =========================================
   SCROLL REVEAL
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .hero-landing__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-landing__text {
        max-width: 100%;
    }

    .hero-landing__cta-group {
        justify-content: center;
    }

    .hero-landing__photo {
        order: -1;
    }

    .hero-landing__photo img {
        width: 280px;
        height: 280px;
    }

    .hero-landing__photo::before {
        display: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(253, 245, 238, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(160, 140, 123, 0.15);
    }

    .nav__links.active {
        display: flex;
    }

    .nav__hamburger {
        display: flex;
    }

    .projects__grid,
    .videos__grid,
    .writing__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-landing__name {
        font-size: 2rem;
    }

    .hero-landing__cta-group {
        flex-direction: column;
        align-items: center;
    }

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