/* Tailwind-generated utilities provide the base layer; this file holds the custom premium styling. */

/* Base document styles */
.site-root {
    background-color: #F9F8F6;
    color: #1C1B1A;
    overflow-x: hidden;
}

body {
    background-color: #F9F8F6;
    cursor: auto;
}

.site-body {
    font-family: "Inter", "Noto Sans TC", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
    body {
        cursor: none;
    }
}

/* Base selection color */
::selection {
    background: #D4C5B3;
    color: #1C1B1A;
}

/* Lenis Smooth Scroll CSS */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Shared layout classes extracted from HTML */
.preloader-shell {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 44%, #FFFFFF 0%, #F4F1ED 52%, #EDE7DE 100%);
    clip-path: inset(0 0 0 0);
    isolation: isolate;
}

.preloader-title-wrap {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
}

.preloader-ring {
    position: absolute;
    z-index: 3;
    width: 62vmin;
    height: 62vmin;
    border: 1px solid rgba(181, 155, 125, 0.34);
    border-radius: 9999px;
    box-shadow: 0 0 26px rgba(181, 155, 125, 0.14);
    opacity: 0;
    pointer-events: none;
}

.preloader-flash {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.82) 0%, rgba(249, 248, 246, 0) 56%);
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
}

.preloader-orbit {
    position: absolute;
    z-index: 2;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(110px);
}

.preloader-orbit--one {
    top: -20vh;
    left: -15vw;
    width: 45vw;
    height: 45vw;
    background: rgba(212, 197, 179, 0.33);
}

.preloader-orbit--two {
    right: -12vw;
    bottom: -28vh;
    width: 38vw;
    height: 38vw;
    background: rgba(181, 155, 125, 0.16);
}

.preloader-kicker {
    margin: 0 0 1rem;
    color: rgba(138, 134, 129, 0.9);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.preloader-name-stack {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
}

.preloader-text {
    margin: 0;
    color: #1C1B1A;
    font-family: "Cormorant Garamond", "Noto Sans TC", serif;
    font-size: clamp(2.2rem, 8vw, 6rem);
    letter-spacing: 0.18em;
    line-height: 0.9;
    text-shadow: 0 0 24px rgba(181, 155, 125, 0.18);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.preloader-text--ghost {
    position: absolute;
    inset: 0;
    color: rgba(181, 155, 125, 0.58);
    filter: blur(6px);
    pointer-events: none;
}

.preloader-text--main {
    position: relative;
    display: flex;
    justify-content: center;
}

.preloader-char {
    display: inline-block;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.preloader-line-wrap {
    position: relative;
    width: min(320px, 58vw);
    height: 1px;
    margin-top: 1rem;
    overflow: hidden;
    background: rgba(28, 27, 26, 0.18);
}

.preloader-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(181, 155, 125, 0), rgba(181, 155, 125, 1), rgba(255, 255, 255, 0.95), rgba(181, 155, 125, 1), rgba(181, 155, 125, 0));
    transform-origin: left center;
}

@media (min-width: 768px) {
    .preloader-kicker {
        font-size: 0.8rem;
    }

    .preloader-ring {
        width: 54vmin;
        height: 54vmin;
    }

    .preloader-text {
        letter-spacing: 0.24em;
    }
}

.site-header {
    position: fixed;
    top: 0;
    z-index: 50;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    color: #FFFFFF;
    mix-blend-mode: difference;
    pointer-events: none;
}

.site-brand,
.site-status {
    pointer-events: auto;
}

.site-brand {
    font-family: "Cormorant Garamond", "Noto Sans TC", serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.site-brand-dot {
    color: #B59B7D;
}

.site-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.site-status-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: #22C55E;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    50% { opacity: 0.45; }
}

.main-shell {
    position: relative;
    z-index: 10;
    overflow: hidden;
    background: #F9F8F6;
}

.bg-orbs-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb-1 {
    position: absolute;
    top: -10vh;
    left: -10vw;
    width: 50vw;
    height: 50vw;
    border-radius: 9999px;
    background: rgba(212, 197, 179, 0.4);
    filter: blur(120px);
    mix-blend-mode: multiply;
}

.orb-2 {
    position: absolute;
    top: 60vh;
    right: -10vw;
    width: 40vw;
    height: 40vw;
    border-radius: 9999px;
    background: rgba(232, 224, 213, 0.6);
    filter: blur(100px);
    mix-blend-mode: multiply;
}

.hero-section {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 100vh;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding-inline: 2rem;
}

@media (min-width: 768px) {
    .hero-section {
        padding-inline: 6rem;
    }
}

.hero-content {
    z-index: 10;
    margin-top: 5rem;
}

@media (min-width: 768px) {
    .hero-content {
        margin-top: 0;
    }
}

.hero-subtitle {
    margin: 0 0 1.5rem;
    overflow: hidden;
    color: #8A8681;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.3em;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

.hero-subtitle > span {
    display: block;
    transform: translateY(100%);
}

.hero-title {
    margin: 0;
    color: #1C1B1A;
    font-family: "Cormorant Garamond", "Noto Sans TC", serif;
    font-size: 14vw;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 0.85;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 10vw;
    }
}

.hero-title-line {
    overflow: hidden;
}

.hero-title-line > span {
    display: block;
    transform: translateY(100%);
}

.hero-title-line--offset {
    margin-left: 5vw;
}

@media (min-width: 768px) {
    .hero-title-line--offset {
        margin-left: 10vw;
    }
}

.hero-title-accent {
    color: #B59B7D;
    font-style: italic;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
}

@media (min-width: 768px) {
    .hero-scroll {
        left: 6rem;
    }
}

.hero-scroll-label {
    color: #8A8681;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transform: rotate(-90deg) translateY(-20px);
}

.hero-scroll-track {
    position: relative;
    width: 1px;
    height: 4rem;
    overflow: hidden;
    background: rgba(138, 134, 129, 0.3);
}

.hero-scroll-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1C1B1A;
}

.about-section {
    position: relative;
    z-index: 10;
    padding: 8rem 2rem;
}

@media (min-width: 768px) {
    .about-section {
        padding: 10rem 6rem;
    }
}

.about-layout {
    display: flex;
    max-width: 72rem;
    margin: 0 auto;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 768px) {
    .about-layout {
        flex-direction: row;
        gap: 6rem;
    }
}

.about-main,
.about-side {
    width: 100%;
}

@media (min-width: 768px) {
    .about-main {
        width: 66.666667%;
    }

    .about-side {
        width: 33.333333%;
    }
}

.about-tag-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-tag {
    color: #B59B7D;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
}

.about-text {
    margin: 0;
    color: #8A8681;
    font-family: "Cormorant Garamond", "Noto Sans TC", serif;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .about-text {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .about-text {
        font-size: 2.25rem;
    }
}

.about-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.about-side-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-block-title {
    margin: 0 0 0.75rem;
    color: #1C1B1A;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.about-block-copy {
    margin: 0;
    color: #8A8681;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.625;
}

@media (min-width: 768px) {
    .about-block-copy {
        font-size: 1rem;
    }
}

.section-container {
    max-width: 80rem;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 5rem;
}

.section-header--tight {
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-header--tight {
        margin-bottom: 5rem;
    }
}

.section-divider {
    width: 3rem;
    height: 1px;
    background: #B59B7D;
}

.section-heading {
    margin: 0;
    color: #B59B7D;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.expertise-section {
    position: relative;
    z-index: 10;
    padding: 10rem 2rem; /* Increased padding */
    border-top-left-radius: 4rem; /* Adjusted slightly */
    border-top-right-radius: 4rem;
    background: #FFFFFF;
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.03); /* Softer, deeper shadow */
    margin-top: -4rem; /* Pull up to overlap slightly with about section */
}

@media (min-width: 768px) {
    .expertise-section {
        padding: 12rem 6rem;
        border-top-left-radius: 6rem;
        border-top-right-radius: 6rem;
        margin-top: -6rem;
    }
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem; /* Increased gap */
}

@media (min-width: 768px) {
    .expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4rem;
    }
}

.exp-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(28, 27, 26, 0.03);
    border-radius: 2rem; /* More rounded */
    background: #FFFFFF;
    padding: 2.5rem;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

@media (min-width: 768px) {
    .exp-card {
        padding: 4rem;
    }
}

.exp-card:hover {
    transform: translateY(-0.75rem);
    box-shadow: 0 20px 40px rgba(181, 155, 125, 0.08);
}

.exp-card--offset {
    margin-top: 0;
}

@media (min-width: 768px) {
    .exp-card--offset {
        margin-top: 8rem; /* More offset for dynamic flow */
    }
}

.exp-card-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(242, 239, 233, 0.5), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.8s;
}

.exp-card:hover .exp-card-sheen {
    opacity: 1;
}

.exp-card-content {
    position: relative;
    z-index: 10;
}

.exp-icon-box {
    display: flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(181, 155, 125, 0.1);
    border-radius: 1.25rem;
    background: #F9F8F6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), background-color 0.4s;
}

@media (min-width: 768px) {
    .exp-icon-box {
        width: 4.5rem;
        height: 4.5rem;
    }
}

.exp-card:hover .exp-icon-box {
    transform: scale(1.05) rotate(5deg);
    background-color: #FFFFFF;
}

.exp-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #B59B7D;
}

@media (min-width: 768px) {
    .exp-icon {
        width: 2.25rem;
        height: 2.25rem;
    }
}

.exp-card-title {
    margin: 0 0 1.25rem;
    color: #1C1B1A;
    font-family: "Cormorant Garamond", "Noto Sans TC", serif;
    font-size: 1.75rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .exp-card-title {
        font-size: 2.25rem;
    }
}

.exp-card-copy {
    margin: 0 0 2.5rem;
    color: #8A8681;
    font-style: italic;
    font-weight: 300;
    line-height: 1.7;
    font-size: 1.125rem;
}

.exp-card-glow {
    position: absolute;
    right: -6rem;
    bottom: -6rem;
    width: 20rem;
    height: 20rem;
    border-radius: 9999px;
    background: rgba(212, 197, 179, 0.08);
    filter: blur(50px);
    pointer-events: none;
    transition: background-color 0.8s, transform 0.8s;
}

.exp-card:hover .exp-card-glow {
    background: rgba(181, 155, 125, 0.15);
    transform: scale(1.1);
}

.projects-section {
    position: relative;
    z-index: 10;
    padding: 10rem 2rem;
    background: #F2EFE9;
    margin-top: -4rem; /* Overlap with expertise */
    border-top-left-radius: 4rem;
    border-top-right-radius: 4rem;
}

@media (min-width: 768px) {
    .projects-section {
        padding: 12rem 6rem;
        margin-top: -6rem;
        border-top-left-radius: 6rem;
        border-top-right-radius: 6rem;
    }
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 768px) {
    .projects-list {
        gap: 6rem;
    }
}

.project-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(28, 27, 26, 0.03);
    border-radius: 2rem;
    background: #FFFFFF;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.2, 1, 0.3, 1), background-color 0.5s;
}

@media (min-width: 768px) {
    .project-item {
        padding: 5rem;
    }
}

.project-item:hover {
    transform: translateY(-0.5rem);
    background: #FFFFFF;
    box-shadow: 0 30px 60px rgba(181, 155, 125, 0.12);
}

.project-kicker {
    display: block;
    margin-bottom: 1.5rem;
    color: #B59B7D;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.project-title {
    margin: 0 0 2rem;
    color: #1C1B1A;
    font-family: "Cormorant Garamond", "Noto Sans TC", serif;
    font-size: 2rem;
    line-height: 1.1;
    transition: color 0.5s;
}

@media (min-width: 768px) {
    .project-title {
        font-size: 3.5rem;
    }
}

.project-item:hover .project-title {
    color: #B59B7D;
}

.project-copy {
    max-width: 50rem;
    margin: 0 0 2.5rem;
    color: #8A8681;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .project-copy {
        font-size: 1.25rem;
    }
}

.project-pill-group {
    margin-bottom: 3rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    border-bottom: 1px solid rgba(138, 134, 129, 0.3);
    padding-bottom: 0.5rem;
    color: #1C1B1A;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s, border-color 0.3s, gap 0.3s;
}

.project-link:hover {
    color: #B59B7D;
    border-color: #B59B7D;
    gap: 1.25rem;
}

.experience-section {
    position: relative;
    z-index: 10;
    padding: 10rem 2rem;
    background: #FFFFFF;
    margin-top: -4rem;
    border-top-left-radius: 4rem;
    border-top-right-radius: 4rem;
}

@media (min-width: 768px) {
    .experience-section {
        padding: 12rem 6rem;
        margin-top: -6rem;
        border-top-left-radius: 6rem;
        border-top-right-radius: 6rem;
    }
}

.experience-intro {
    margin-bottom: 6rem;
    text-align: center;
}

.experience-heading {
    margin: 0 0 1.5rem;
    color: #1C1B1A;
    font-family: "Cormorant Garamond", "Noto Sans TC", serif;
    font-size: 2.25rem;
}

@media (min-width: 768px) {
    .experience-heading {
        font-size: 3rem;
    }
}

.experience-intro-line {
    width: 1px;
    height: 4rem;
    margin: 0 auto;
    background: #D4C5B3;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .experience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6rem;
    }
}

.timeline-column-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.timeline-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #B59B7D;
}

.timeline-column-title {
    margin: 0;
    color: #1C1B1A;
    font-family: "Cormorant Garamond", "Noto Sans TC", serif;
    font-size: 1.5rem;
}

.timeline-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-left: 0.75rem;
    border-left: 1px solid rgba(212, 197, 179, 0.5);
}

@media (min-width: 768px) {
    .timeline-rail {
        margin-left: 1rem;
    }
}

.timeline-item {
    position: relative;
    display: block;
    padding-left: 2.5rem;
    color: inherit;
    text-decoration: none;
}

@media (min-width: 768px) {
    .timeline-item {
        padding-left: 3rem;
    }
}

.timeline-dot {
    position: absolute;
    top: 0.5rem;
    border-radius: 9999px;
    transition: background-color 0.3s;
}

.timeline-dot--gold {
    left: -6px;
    width: 11px;
    height: 11px;
    border: 2px solid #B59B7D;
    background: #FFFFFF;
}

.timeline-item:hover .timeline-dot--gold {
    background: #B59B7D;
}

.timeline-dot--accent {
    left: -5px;
    width: 9px;
    height: 9px;
    background: #D4C5B3;
}

.timeline-item:hover .timeline-dot--accent {
    background: #1C1B1A;
}

.timeline-dot--accent-soft {
    left: -5px;
    width: 9px;
    height: 9px;
    background: rgba(212, 197, 179, 0.5);
}

.timeline-item:hover .timeline-dot--accent-soft {
    background: #1C1B1A;
}

.timeline-date {
    display: block;
    margin-bottom: 0.5rem;
    color: #B59B7D;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.timeline-date--muted {
    color: #8A8681;
}

.timeline-company {
    margin: 0 0 0.5rem;
    color: #1C1B1A;
    font-family: "Cormorant Garamond", "Noto Sans TC", serif;
    transition: color 0.3s;
}

.timeline-company--lg {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .timeline-company--lg {
        font-size: 1.875rem;
    }
}

.timeline-company--md {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .timeline-company--md {
        font-size: 1.5rem;
    }
}

.timeline-item:hover .timeline-company {
    color: #B59B7D;
}

.timeline-role {
    margin: 0 0 1rem;
    color: #8A8681;
    font-size: 1.125rem;
    font-weight: 500;
}

.timeline-role--sm {
    font-size: 1rem;
}

.timeline-copy {
    margin: 0;
    color: rgba(138, 134, 129, 0.8);
    font-weight: 300;
    line-height: 1.625;
}

.footer-spacer {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 80vh;
    background: transparent;
    pointer-events: none;
}

@media (min-width: 768px) {
    .footer-spacer {
        height: 100vh;
    }
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 0;
    display: flex;
    width: 100%;
    height: 80vh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: #1C1B1A;
    color: #FFFFFF;
    padding: 2rem;
}

@media (min-width: 768px) {
    .site-footer {
        height: 100vh;
        padding: 6rem;
    }
}

.footer-noise {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
}

.footer-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 80vw;
    height: 80vw;
    border-radius: 9999px;
    background: rgba(181, 155, 125, 0.05);
    filter: blur(150px);
    pointer-events: none;
    transform: translateX(50%) translateY(-50%);
}

.footer-content {
    position: relative;
    z-index: 10;
    display: flex;
    height: 100%;
    margin-top: auto;
    flex-direction: column;
    justify-content: flex-end;
}

.footer-title {
    margin: 0 0 3rem;
    color: #FFFFFF;
    font-family: "Cormorant Garamond", "Noto Sans TC", serif;
    font-size: 12vw;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

@media (min-width: 768px) {
    .footer-title {
        font-size: 8vw;
    }
}

.footer-title-accent {
    color: #B59B7D;
    font-style: italic;
}

.footer-bottom-row {
    display: flex;
    margin-top: 2rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-bottom-row {
        margin-top: 4rem;
        flex-direction: row;
        align-items: flex-end;
    }
}

.footer-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

@media (min-width: 768px) {
    .footer-cta {
        gap: 1.5rem;
    }
}

.footer-cta-icon {
    display: flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    transition: all 0.5s;
}

@media (min-width: 768px) {
    .footer-cta-icon {
        width: 4rem;
        height: 4rem;
    }
}

.footer-cta:hover .footer-cta-icon {
    background: #FFFFFF;
    color: #1C1B1A;
}

.footer-cta-icon-mark {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 768px) {
    .footer-cta-icon-mark {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.footer-cta-label {
    border-bottom: 1px solid transparent;
    color: inherit;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.025em;
    transition: border-color 0.2s;
}

@media (min-width: 768px) {
    .footer-cta-label {
        font-size: 1.5rem;
    }
}

.footer-cta:hover .footer-cta-label {
    border-bottom-color: #FFFFFF;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .footer-links {
        flex-direction: row;
        gap: 2rem;
        font-size: 0.875rem;
    }
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #B59B7D;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
}

/* Custom Cursor (Only Outline) */
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    display: none;
    mix-blend-mode: difference;
    background-color: transparent;
}

@media (min-width: 768px) {
    .cursor-outline {
        display: block;
    }
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s, transform 0.1s ease-out;
}

/* Hover States for Cursor */
.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
}

.cursor-view .cursor-outline {
    width: 80px;
    height: 80px;
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.8);
    mix-blend-mode: difference;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}

.cursor-view .cursor-outline::after {
    content: 'VIEW';
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Noise Background */
.bg-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
}

/* Animations */
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-line-anim {
    animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* About Text Highlight Effect */
.about-text span {
    transition: color 0.4s ease;
}

.hoverable {
    user-select: none;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #1C1B1A;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.2em;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
}

.tech-pill--accent {
    background: #F9F8F6;
    border: 1px solid rgba(212, 197, 179, 0.3);
    padding: 0.375rem 0.75rem;
}

@media (min-width: 768px) {
    .tech-pill--accent {
        padding: 0.5rem 1rem;
    }
}

.tech-pill--dark {
    background: #F9F8F6;
    border: 1px solid rgba(28, 27, 26, 0.1);
    padding: 0.5rem 1rem;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    color: rgba(138, 134, 129, 0.8);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.75;
}

.detail-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.detail-list-bullet {
    width: 0.25rem;
    height: 0.25rem;
    margin-top: 0.375rem;
    border-radius: 9999px;
    background: #B59B7D;
    flex: none;
}

/* Preserve authored casing and prevent style-driven uppercase transforms */
.site-brand,
.preloader-text,
.hero-title,
.about-text,
.exp-card-title,
.project-title,
.timeline-column-title,
.timeline-company,
.experience-heading,
.footer-title {
    text-transform: none !important;
    font-variant-caps: normal;
}
