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

:root {
    --cream: #f4efe6;
    --ink: #1c1814;
    --gold: #0e2e27;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--cream);
    cursor: none;
}

.cv-links {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;  
    width: 100%;               
    gap: 12px;
    font-family: 'DM Sans', sans-serif; 
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cv-link {
    color: #000000; /* or your text color */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a.cv-link:hover {
    color: var(--gold) !important;
}

.separator {
    color: rgba(255, 255, 255, 0.5); /* subtle separator */
}

.ph-caption-title{
    font-family:  "Fraunces", serif;
    position: relative;
	margin: 0;
    font-size: clamp(26px, 3vw, 40px);
	font-weight: bold;
	font-weight: 500;
	color: var(--theme);
	line-height: 1.3;
	z-index: 9;

}
/* ── Cursor ── */
#cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    transition:
        width 0.3s ease,
        height 0.3s ease,
        background 0.3s ease,
        opacity 0.3s ease;
    mix-blend-mode: multiply;
}
#cursor.hover {
    width: 48px;
    height: 48px;
    background: var(--gold);
    opacity: 0.55;
}
/* ── Layers ── */
#layer-back,
#layer-front {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

#layer-back {
    z-index: 0;
}

#layer-front {
    z-index: 1;
}

/* Back items start faded */
#layer-back .float-item {
    opacity: 0.45;
}

#layer-back.is-raised {
    z-index: 10;
}

/* Shared transition */
.float-item {
    position: absolute;
    overflow: hidden;
    border-radius: 10px;
    pointer-events: all;
    cursor: none;
    will-change: transform;
    transition:
        opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.3s ease;
}

/* Hovered state */
.float-item.is-hovered {
    opacity: 1 !important;
    transform: scale(1.02);
    z-index: 9999;
}

/* Media styling */
.float-item img,
.float-item video {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(8%) brightness(0.97);
    transition: filter 0.5s ease;
}

.float-item:hover img,
.float-item:hover video {
    filter: grayscale(0%) brightness(1.02);
    opacity: 1 !important;
}

/* When back layer is lifted */
#layer-back.is-raised {
    z-index: 10;
}


/* ── Grain ── */
#grain {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.042;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px;
}

/* ── Vignette ── */
#vignette {
    position: fixed;
    inset: 0;
    z-index: 6;
    pointer-events: none;
/*     background: radial-gradient(
        ellipse 48% 52% at 50% 50%,
        rgba(244, 239, 230, 0.85) 0%,
        rgba(244, 239, 230, 0.45) 36%,
        rgba(244, 239, 230, 0) 66%
    ); */
}

/* ── Centre card ── */
#center {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#card {
    text-align: center;
    pointer-events: all;
        padding: 32px 28px;
    z-index: 1;
    max-width: 60vw;
        backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 15px;

    background: radial-gradient(
        ellipse 70% 60% at 50% 50%,
        rgba(244, 239, 230, 0.85) 0%,
        rgba(244, 239, 230, 0.55) 45%,
        rgba(244, 239, 230, 0.2) 70%,
        rgba(244, 239, 230, 0) 90%
    );
}

.eyebrow {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #000 !important;
    opacity: 0.6;
    margin-bottom: 18px;
    animation: up 0.9s ease 0.2s forwards;
}

#card img.logo {
    width: 130px;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0;
    animation: up 0.9s ease 0.35s forwards;
}

.divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 22px auto;
    opacity: 0;
    animation: up 0.9s ease 0.55s forwards;
}

.tagline {
    font-family: "DM Sans", sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 1.85;
    color: var(--ink);
    max-width: 300px;
    margin: 0 auto;
    opacity: 0;
    animation: up 0.9s ease 0.7s forwards;
}
.tagline .sep {
    display: block;
    height: 1px;
    width: 20px;
    background: rgba(28, 24, 20, 0.2);
    margin: 10px auto;
}
.tagline .fr {
    font-style: italic;
    opacity: 0.65;
}

.email {
    display: inline-block;
    margin-top: 36px;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(16px, 2.5vw, 28px);
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px;
    opacity: 1;
    animation: up 0.9s ease 0.9s forwards;
    transition: color 0.3s ease, opacity 0.3s ease;
    cursor: none;
}

.email:hover {
    color: var(--gold);
    opacity: 0.4;
}


	
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #171717;
    color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: opacity 0.5s ease;
}

.loader-container {
    width: 300px;
    text-align: center;
}

.loader-progress {
    width: 100%;
    height: 1px;
    background: #333;
    margin: 20px 0;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: #fff;
    transition: width 0.2s ease;
}

.loader-text {
    letter-spacing: 4px;
    font-size: 14px;
    margin-bottom: 8px;
}

.loader-percent {
    font-size: 12px;
    color: #888;
}

#loader.fade-out {
    opacity: 0;
    pointer-events: none;
}





/* Mobile: tighter card, full-width feel */
@media (max-width: 1157px) {

    #card {
    position: relative;
    max-width: 82vw;
    padding: 28px 24px;
    z-index: 1;
}

#card::before {
    content: "";
    position: absolute;
    inset: -40px; /* bleed outward for smoother fade */
    z-index: -1;

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    background: radial-gradient(
        ellipse 70% 60% at 50% 50%,
        rgba(244, 239, 230, 0.85) 0%,
        rgba(244, 239, 230, 0.55) 45%,
        rgba(244, 239, 230, 0.2) 70%,
        rgba(244, 239, 230, 0) 90%
    );

    border-radius: 60px;
}
}


