:root {
    --bg: #fdf5ec;
    --bg-alt: #f6ede3;
    --surface: #ffffff;
    --ink: #1f2a33;
    --muted: #5b6570;
    --accent: #ff7a59;
    --accent-dark: #e65d3b;
    --accent-soft: #ffe1d6;
    --accent-2: #2ab3b1;
    --accent-2-soft: #c9f0ee;
    --border: rgba(31, 42, 51, 0.12);
    --shadow: 0 22px 40px -28px rgba(31, 42, 51, 0.35);
    --radius: 24px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(180deg, #fff3e9 0%, #fdf5ec 40%, #f6f2ee 100%);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 89, 0.18) 0%, rgba(255, 122, 89, 0) 70%);
    z-index: -1;
}

body::before {
    top: -120px;
    right: -80px;
}

body::after {
    bottom: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(42, 179, 177, 0.18) 0%, rgba(42, 179, 177, 0) 70%);
}

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

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

h1,
h2,
h3 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--muted);
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.section {
    padding: 5.5rem 0;
    scroll-margin-top: 96px;
    position: relative;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-intro {
    max-width: 680px;
    margin-bottom: 3rem;
}

.section-intro h2 {
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    color: var(--ink);
    margin-bottom: 1rem;
}

.section-intro h1 {
    font-size: clamp(2.4rem, 3.2vw, 3rem);
    color: var(--ink);
    margin-bottom: 1rem;
}

.section-intro p {
    font-size: 1.05rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.btn.primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 20px -12px rgba(255, 122, 89, 0.7);
}

.btn.primary:hover {
    background: var(--accent-dark);
}

.btn.secondary {
    background: var(--accent-2);
    color: #ffffff;
    box-shadow: 0 12px 20px -12px rgba(42, 179, 177, 0.6);
}

.btn.secondary:hover {
    background: #1f9e9c;
}

.btn.ghost {
    background: #ffffff;
    border-color: var(--border);
    color: var(--ink);
}

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

.btn.link {
    padding: 0.9rem 0.4rem;
    border: none;
    color: var(--accent-dark);
    background: none;
}

.btn.small {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn[data-link-placeholder="true"] {
    border-style: dashed;
    opacity: 0.8;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 245, 236, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 122, 89, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.2rem 0;
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    color: var(--ink);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font-weight: 600;
    color: var(--muted);
}

.site-nav a {
    position: relative;
    padding-bottom: 0.2rem;
    transition: var(--transition);
}

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

.site-nav a:hover {
    color: var(--ink);
}

.site-nav a:hover::after {
    width: 100%;
}

.hero {
    position: relative;
    padding: 7rem 0 6rem;
    overflow: hidden;
}

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

.blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.6;
}

.blob-1 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 122, 89, 0.45) 0%, rgba(255, 122, 89, 0) 70%);
    top: 40px;
    left: -80px;
}

.blob-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(42, 179, 177, 0.4) 0%, rgba(42, 179, 177, 0) 70%);
    top: 120px;
    right: -100px;
}

.blob-3 {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 200, 87, 0.45) 0%, rgba(255, 200, 87, 0) 70%);
    bottom: -60px;
    right: 30%;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
    z-index: 1;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    color: var(--ink);
    margin-bottom: 1rem;
}

.hero-copy .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-pills span {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--muted);
}

.hero-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 122, 89, 0.15);
}

.hero-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-card ul {
    list-style: none;
    margin-bottom: 1.8rem;
    color: var(--muted);
}

.hero-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.hero-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.8rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--ink);
}

.list {
    list-style: none;
    color: var(--muted);
}

.list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.8rem;
}

.list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-group span {
    background: var(--accent-soft);
    color: var(--accent-dark);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.stat-grid {
    display: grid;
    gap: 1rem;
}

.stat {
    background: var(--bg-alt);
    border-radius: 16px;
    padding: 0.9rem 1.1rem;
}

/* Personal About Section */
.about-personal {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.about-bio {
    max-width: 600px;
}

.about-bio h2 {
    margin-bottom: 1rem;
    color: var(--ink);
    font-size: 2rem;
}

.about-bio p {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.image-collage {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
}

.collage-img {
    position: relative;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 4px solid #fff;
}

.collage-front {
    width: 200px;
    height: 200px;
    border-color: var(--accent-soft);
}

.collage-back-left,
.collage-back-right {
    width: 140px;
    height: 140px;
}

.image-collage:hover .collage-img {
    transform: none;
}

.personal-tags {
    justify-content: center;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .about-personal {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: space-between;
    }

    .about-bio {
        order: 1;
        flex: 1;
        text-align: left;
    }

    .about-image {
        order: 2;
        flex-shrink: 0;
        margin-left: 3rem;
        width: 400px;
        /* Ensure space for flex collage */
    }

    .personal-tags {
        justify-content: flex-start;
    }

    .image-collage {
        justify-content: center;
    }
}

.stat-number {
    font-size: 1.6rem;
    color: var(--ink);
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
}

.timeline {
    position: relative;
    padding-left: 2.2rem;
    margin-top: 2.5rem;
    --progress: 0%;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 122, 89, 0.25);
}

.timeline::after {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 0;
    width: 2px;
    height: var(--progress);
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    transition: height 0.2s ease-out;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2.5rem;
}

.js .timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.4s ease;
}

.js .timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.is-dimmed {
    opacity: 0.35;
    filter: saturate(0.7);
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 6px rgba(255, 122, 89, 0.18);
    transition: var(--transition);
}

.timeline-content {
    background: var(--surface);
    border-radius: 18px;
    padding: 1.8rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-place {
    font-weight: 700;
    color: var(--accent-dark);
    display: inline-block;
    transition: var(--transition);
}

.timeline-place:hover {
    color: var(--accent);
    text-decoration: underline;
}

.timeline-date {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-item:hover .timeline-content {
    border-color: var(--accent);
    box-shadow: 0 20px 38px -26px rgba(255, 122, 89, 0.55);
    transform: translateY(-4px);
}

.timeline-item:hover .timeline-dot {
    animation: pulse 2s infinite;
    border-color: var(--accent-2);
}

.timeline-list {
    list-style: none;
    margin-top: 1rem;
    color: var(--muted);
}

.timeline-list li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.8rem;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.timeline-tags span {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    background: var(--accent-2-soft);
    border-radius: 999px;
    color: #166d6b;
    font-weight: 600;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
}

.project-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.8rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    font-size: 1.3rem;
}

.project-card p {
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    background: #f5e2d7;
    border-radius: 999px;
    color: #924025;
    font-weight: 600;
}

.project-actions {
    margin-top: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-details {
    display: grid;
    gap: 1rem;
    font-weight: 600;
    color: var(--muted);
}

.contact-details span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-dark);
    margin-bottom: 0.2rem;
}

.contact-form {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1.2rem;
    height: 100%;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 700;
    color: var(--ink);
}

.form-group input,
.form-group textarea {
    border-radius: 14px;
    border: 1px solid rgba(31, 42, 51, 0.15);
    padding: 0.9rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    background: #fffdfb;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.15);
}

.site-footer {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid rgba(255, 122, 89, 0.12);
    background: rgba(255, 255, 255, 0.6);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-weight: 600;
}

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 179, 177, 0.5);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(42, 179, 177, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(42, 179, 177, 0);
    }
}

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.9rem;
    }

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

@media (max-width: 720px) {
    .hero {
        padding: 6rem 0 4.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .section {
        padding: 4.5rem 0;
    }

    .timeline {
        padding-left: 1.8rem;
    }

    .timeline::before,
    .timeline::after {
        left: 0.4rem;
    }

    .timeline-item {
        padding-left: 2.1rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}