/* ========================================
   Base
======================================== */

:root {
    --background: #f2eee7;
    --background-light: #faf8f4;
    --text-primary: #1b1917;
    --text-secondary: #6f655d;
    --accent: #9a765d;
    --border: rgba(27, 25, 23, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text-primary);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
}

/* ========================================
   Header
======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;

    width: 100%;
    min-height: 80px;
    padding: 0 4%;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    background: transparent;
}

.logo {
    color: var(--text-primary);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.08em;

    text-decoration: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.logo:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

/* ========================================
   Hero
======================================== */

.hero {
    position: relative;

    min-height: 100vh;
    padding: 120px 7% 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #fbfaf7 0%,
            #eee8df 48%,
            #ddd1c4 100%
        );

    overflow: hidden;
}

.hero::before {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.52),
            transparent 35%,
            rgba(104, 76, 57, 0.08)
        );

    content: "";
}

.hero::after {
    position: absolute;
    bottom: -180px;
    left: 50%;

    width: 900px;
    height: 420px;

    background: rgba(99, 67, 46, 0.13);
    border-radius: 50%;
    filter: blur(50px);

    content: "";

    transform: translateX(-50%);
}

.background-glow {
    position: absolute;

    border-radius: 50%;
    filter: blur(60px);

    pointer-events: none;
}

.background-glow-left {
    top: 24%;
    left: -170px;

    width: 420px;
    height: 420px;

    background: rgba(255, 255, 255, 0.74);
}

.background-glow-right {
    right: -180px;
    bottom: 2%;

    width: 480px;
    height: 480px;

    background: rgba(112, 76, 52, 0.18);
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(1200px, 100%);

    text-align: center;
}

.hero-eyebrow {
    margin-bottom: 64px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;

    opacity: 0;

    animation:
        eyebrow-reveal
        1s
        cubic-bezier(.22,.61,.36,1)
        0.25s
        forwards;
}

.hero-name-link {
    display: inline-block;

    color: inherit;
    text-decoration: none;
}

.hero-name {
    color: var(--text-primary);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(70px, 12vw, 175px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.88;

    opacity: 0;
    filter: blur(18px);

    transform:
        translateY(12px)
        scale(0.97);

    animation:
        reveal-name
        1.8s
        cubic-bezier(0.2, 0.7, 0.2, 1)
        0s
        forwards;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.hero-name-link:hover .hero-name {
    opacity: 0.82;
    transform: translateY(-3px);
}

.hero-divider {
    width: 0;
    height: 1px;

    margin: 42px auto 27px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--accent),
            transparent
        );

    animation:
        grow-line
        0.8s
        ease
        0.35s
        forwards;
}

.hero-title {
    color: var(--text-secondary);

    font-size: clamp(14px, 1.5vw, 22px);
    font-weight: 500;
    letter-spacing: 0.24em;

    text-transform: uppercase;
}

.hero-title-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    opacity: 0;

    animation:
        bottom-reveal
        0.7s
        cubic-bezier(.22,.61,.36,1)
        0.45s
        forwards;
}


.hero-title-links a {
    color: inherit;

    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.hero-title-links a:hover {
    color: var(--text-primary);
}

.hero-title-links span {
    opacity: 0.45;
}

/* ========================================
   Scroll indicator
======================================== */

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    z-index: 3;

    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;

    text-decoration: none;
    text-transform: uppercase;

    opacity: 0;
    transform: translateX(-50%);

    animation:
        scroll-fade
        0.6s
        ease
        0.75s
        forwards;
}

.scroll-arrow {
    font-size: 21px;
    font-weight: 300;

    animation:
        arrow-float
        2.4s
        ease-in-out
        3.9s
        infinite;
}

/* ========================================
   Content sections
======================================== */

.content-section {
    min-height: 80vh;
    padding: 130px 10%;

    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;

    background: var(--background-light);
    border-top: 1px solid var(--border);
}

.content-section:nth-child(odd) {
    background: var(--background);
}

.section-label {
    margin-bottom: 22px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25em;

    text-transform: uppercase;
}

.content-section h2 {
    max-width: 950px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(42px, 6.5vw, 94px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1;
}

.section-description {
    max-width: 650px;
    margin-top: 32px;

    color: var(--text-secondary);

    font-size: 18px;
}

/* ========================================
   Homepage previews
======================================== */

.preview-description {
    max-width: 760px;
    line-height: 1.8;
}

.preview-highlights {
    width: 100%;
    max-width: 900px;
    margin-top: 42px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    border-top: 1px solid var(--border);
}

.preview-highlights span {
    padding: 20px 18px 20px 0;

    color: var(--text-primary);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.2;

    border-bottom: 1px solid var(--border);
}

.preview-highlights span:nth-child(odd) {
    padding-right: 28px;
    border-right: 1px solid var(--border);
}

.preview-highlights span:nth-child(even) {
    padding-left: 28px;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-top: 38px;
    padding-bottom: 8px;

    color: var(--text-primary);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;

    text-decoration: none;
    text-transform: uppercase;

    border-bottom: 1px solid var(--accent);

    transition:
        gap 0.25s ease,
        opacity 0.25s ease;
}

.read-more-link:hover {
    gap: 18px;
    opacity: 0.68;
}

.email-link {
    margin-top: 34px;

    color: var(--accent);

    font-size: clamp(20px, 3vw, 38px);
    text-decoration: none;
}

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

/* ========================================
   Animations
======================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(16px);

    transition:
        opacity 0.9s ease var(--reveal-delay, 0s),
        transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1)
        var(--reveal-delay, 0s);
}

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

@keyframes reveal-name {
    from {
        opacity: 0;
        filter: blur(18px);

        transform:
            translateY(12px)
            scale(0.97);
    }

    to {
        opacity: 1;
        filter: blur(0);

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes eyebrow-reveal {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

}

@keyframes bottom-reveal {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

}

@keyframes reveal-text {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@keyframes grow-line {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: min(600px, 70vw);
        opacity: 1;
    }
}

@keyframes simple-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
@keyframes scroll-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes arrow-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}

/* ========================================
   Performance & Production
======================================== */

.experience-section {
    gap: 0;
}

.experience-introduction {
    max-width: 980px;
    margin-top: 34px;
}

.experience-introduction p {
    color: var(--text-secondary);

    font-size: 18px;
    line-height: 1.8;
}

.experience-introduction p + p {
    margin-top: 24px;
}

.experience-columns {
    width: 100%;
    max-width: 1200px;
    margin-top: 60px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 120px;
}

.experience-group h3 {
    margin-bottom: 26px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25em;

    text-transform: uppercase;
}

.experience-list {
    list-style: none;
}

.experience-list li {
    padding: 17px 0;

    color: var(--text-primary);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(22px, 2.3vw, 36px);
    line-height: 1.15;

    border-bottom: 1px solid var(--border);
}

.experience-list li:first-child {
    border-top: 1px solid var(--border);
}

/* ========================================
   Responsive
======================================== */

@media (max-width: 900px) {
    .site-header {
        min-height: 72px;
        padding: 0 24px;
    }

    .hero {
        padding: 110px 24px 85px;
    }

    .hero-name {
        font-size: clamp(58px, 17vw, 110px);
        line-height: 0.94;
    }

    .hero-divider {
        margin-top: 34px;
        margin-bottom: 24px;
    }

    .hero-title-links {
        gap: 12px;
    }

    .hero-title {
        font-size: 12px;
        letter-spacing: 0.17em;
    }

    .content-section {
        min-height: 65vh;
        padding: 100px 24px;
    }
}

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

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

@keyframes mobile-scroll-fade {
    from {
        opacity: 0;
        transform: translateX(-50%);
    }

    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}


/* ========================================
   Mobile
======================================== */
@media (max-width: 620px) {

    /* ========================================
       Basic Mobile Layout
    ======================================== */

    .logo {
        font-size: 24px;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-name {
        font-size: clamp(54px, 16vw, 82px);
        filter: none;

        opacity: 0;
        transform: translateY(8px);

        animation:
            mobile-fade-up
            0.55s
            ease-out
            0.05s
            forwards;
    }

    .hero-eyebrow {
        opacity: 0;

        animation:
            mobile-fade-up
            0.45s
            ease-out
            0.15s
            forwards;
    }

    .hero-divider {
        animation:
            grow-line
            0.55s
            ease-out
            0.22s
            forwards;
    }

    .hero-title-links {
        max-width: 330px;
        margin-right: auto;
        margin-left: auto;

        flex-wrap: wrap;
        row-gap: 10px;

        opacity: 0;

        animation:
            mobile-fade-up
            0.45s
            ease-out
            0.3s
            forwards;
    }

    .hero-title-links a {
        font-size: 10px;
    }

    .scroll-indicator {
        opacity: 0;

        animation:
            mobile-scroll-fade
            0.4s
            ease-out
            0.5s
            forwards;
    }

    /* ========================================
       Remove Expensive Effects
    ======================================== */

    .background-glow {
        display: none;
    }

    .hero::after {
        display: none;
    }

    .scroll-arrow {
        animation: none;
    }


    /* ========================================
       Disable Scroll Reveal Animation
    ======================================== */

    .scroll-reveal,
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }


    /* ========================================
       Mobile Preview Layout
    ======================================== */

    .preview-highlights {
        grid-template-columns: 1fr;
    }

    .preview-highlights span:nth-child(odd),
    .preview-highlights span:nth-child(even) {
        padding-right: 0;
        padding-left: 0;
        border-right: none;
    }

}

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
    }

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

/* ========================================
   Force Fixed Inner Header
======================================== */

header.inner-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;

    width: 100% !important;
    height: 82px;

    display: flex;
    align-items: center;

    padding: 0 4%;
    pointer-events: none;
}

header.inner-header .logo {
    position: relative;
    z-index: 100000;

    pointer-events: auto;
}

@media (max-width: 620px) {
    header.inner-header {
        height: 70px;
        padding: 0 22px;
    }
}

/* ========================================
   Unified Explore Navigation
======================================== */

.next-page {
    padding: 90px 9% 105px !important;

    background: #e9e1d5 !important;
    border-bottom: 1px solid var(--border);
}

.next-page .section-label {
    margin-bottom: 34px;
}

.next-page a {
    min-height: 0 !important;
    margin-top: 0 !important;
    padding: 18px 0 !important;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--text-primary);
    text-decoration: none;

    background: transparent !important;
    border-top: 1px solid var(--border);
    border-bottom: none !important;

    transition:
        padding 0.28s ease,
        background 0.28s ease;
}

.next-page a:last-child {
    border-bottom: 1px solid var(--border) !important;
}

.next-page a:hover {
    padding-right: 18px !important;
    padding-left: 18px !important;

    background: rgba(255, 255, 255, 0.24) !important;
}

.next-page a span:first-child {
    padding: 0 !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(24px, 2.8vw, 42px) !important;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.next-page a span:last-child {
    color: var(--accent);

    font-size: 22px !important;

    transition: transform 0.25s ease;
}

.next-page a:hover span:last-child {
    transform: translateX(7px);
}


/* ========================================
   Unified Explore Navigation — Mobile
======================================== */

@media (max-width: 620px) {

    .next-page {
        padding: 75px 24px 90px !important;
    }

    .next-page .section-label {
        margin-bottom: 28px;
    }

    .next-page a {
        padding: 17px 0 !important;
    }

    .next-page a span:first-child {
        font-size: 28px !important;
    }

    .next-page a span:last-child {
        font-size: 19px !important;
    }
}