/* ════════════════════════════════════════════════════════════
   HOME PAGE ADDITIONS — featured project circles, project modal,
   upcoming projects, testimonials. All classes are prefixed fx-
   so nothing here touches an existing rule.
════════════════════════════════════════════════════════════ */
:root {
    --fx-red:  #9C2527;
    --fx-gold: #F3CB1B;
}

.fx-eyebrow {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fx-gold);
    margin-bottom: 18px;
}
.fx-eyebrow--dark { color: var(--fx-red); }

.fx-h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: clamp(1.9rem, 3.6vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #f4f4f4;
}
.fx-h2--dark { color: #111; }

/* shared reveal */
.fx-pc, .fx-t, .fx-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.fx-pc.is-in, .fx-t.is-in, .fx-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .fx-pc, .fx-t, .fx-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── FEATURED PROJECT CIRCLES ─────────────────────────────── */
.fx-pc-lead {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    line-height: 1.7;
    color: #6f6f6f;
    max-width: 560px;
    padding: 14px 60px 0;
}

.fx-pc-wrap { position: relative; }

.fx-pc-track {
    list-style: none;
    margin: 0;
    display: flex;
    gap: clamp(24px, 3vw, 56px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 60px;
    padding: clamp(40px, 5vw, 70px) 60px 34px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}
.fx-pc-track::-webkit-scrollbar { display: none; }
.fx-pc-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.fx-pc-track.is-dragging .fx-pc-btn { pointer-events: none; }
/* keeps the last circle clear of the right edge */
.fx-pc-track::after { content: ''; flex: 0 0 1px; }

.fx-pc {
    flex: 0 0 auto;
    width: clamp(240px, 27vw, 420px);
    scroll-snap-align: start;
}

/* small arrows, bottom-right */
.fx-pc-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 0 60px clamp(60px, 7vw, 100px);
}
.fx-pc-hint {
    margin-right: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8f8f8f;
}
.fx-pc-arrow {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.22);
    background: transparent;
    color: #111;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.fx-pc-arrow svg { width: 16px; height: 16px; }
.fx-pc-arrow:hover:not(:disabled) { background: var(--fx-red); border-color: var(--fx-red); color: #fff; }
.fx-pc-arrow:focus-visible { outline: 2px solid var(--fx-red); outline-offset: 3px; }
.fx-pc-arrow:disabled { opacity: 0.3; cursor: default; }
.fx-pc-next:not(:disabled) { animation: fxNudge 2.4s ease-in-out infinite; }
@keyframes fxNudge {
    0%, 70%, 100% { transform: translateX(0); }
    80% { transform: translateX(4px); }
    90% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) { .fx-pc-next:not(:disabled) { animation: none; } }

.fx-pc-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.fx-pc-circle {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: #eae7e1;
    box-shadow: 0 0 0 0 rgba(156, 37, 39, 0);
    transition: box-shadow 0.45s ease;
}

/* a thin ring that draws in on hover, in the brand red */
.fx-pc-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--fx-red);
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.fx-pc-circle img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 0.9s cubic-bezier(0.34, 1.02, 0.64, 1);
}

.fx-pc-btn:hover .fx-pc-circle img,
.fx-pc-btn:focus-visible .fx-pc-circle img { transform: scale(1.12); }
.fx-pc-btn:hover .fx-pc-circle::after,
.fx-pc-btn:focus-visible .fx-pc-circle::after { opacity: 1; transform: scale(1); }
.fx-pc-btn:focus-visible { outline: none; }
.fx-pc-btn:focus-visible .fx-pc-name { text-decoration: underline; text-underline-offset: 6px; }

.fx-pc-count {
    position: absolute;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(13, 13, 13, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.fx-pc-btn:hover .fx-pc-count, .fx-pc-btn:focus-visible .fx-pc-count { opacity: 1; }
@media (hover: none) { .fx-pc-count { opacity: 1; } }

.fx-pc-name {
    margin-top: 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: clamp(1.25rem, 1.7vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #111;
}

.fx-pc-meta {
    margin-top: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8f8f8f;
}

/* ── PROJECT MODAL ────────────────────────────────────────── */
.fx-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3vh 3vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.fx-modal[hidden] { display: none; }
.fx-modal.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s; }

.fx-m-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 12, 0.9);
}

.fx-m-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    width: min(1380px, 94vw);
    height: min(820px, 92vh);
    background: #0d0d0d;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.fx-modal.is-open .fx-m-panel { transform: none; }

.fx-m-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}
.fx-m-close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }
.fx-m-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.fx-m-close span { position: absolute; width: 16px; height: 1.5px; background: #fff; }
.fx-m-close span:first-child { transform: rotate(45deg); }
.fx-m-close span:last-child  { transform: rotate(-45deg); }

.fx-m-gallery {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #080808;
}

.fx-m-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fx-m-stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
.fx-m-stage img.is-swapping { opacity: 0; }

.fx-m-nav {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(13, 13, 13, 0.5);
    color: #fff;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.fx-m-nav svg { width: 20px; height: 20px; }
.fx-m-nav:hover { background: var(--fx-red); border-color: var(--fx-red); }
.fx-m-nav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.fx-m-prev { left: 16px; }
.fx-m-next { right: 16px; }

.fx-m-counter {
    position: absolute;
    left: 18px;
    bottom: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.7);
}

.fx-m-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    flex: 0 0 auto;
    overscroll-behavior: contain;
}
.fx-m-thumbs:empty { display: none; }

/* scrolling stays, scrollbars are hidden */
.fx-m-panel, .fx-m-info, .fx-m-thumbs { scrollbar-width: none; -ms-overflow-style: none; }
.fx-m-panel::-webkit-scrollbar, .fx-m-info::-webkit-scrollbar, .fx-m-thumbs::-webkit-scrollbar { display: none; width: 0; height: 0; }

.fx-m-thumb {
    flex: 0 0 auto;
    width: 84px;
    height: 58px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: #1a1a1a;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.25s ease, border-color 0.25s ease;
}
.fx-m-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-m-thumb:hover { opacity: 0.85; }
.fx-m-thumb.is-active { opacity: 1; border-color: var(--fx-gold); }
.fx-m-thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.fx-modal.is-single .fx-m-nav,
.fx-modal.is-single .fx-m-counter { display: none; }

.fx-m-info {
    padding: 64px 40px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.fx-m-cat {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fx-gold);
}

.fx-m-title {
    margin-top: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 2.6vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: #f4f4f4;
}

.fx-m-desc { margin-top: 24px; }
.fx-m-desc p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.98rem;
    line-height: 1.75;
    color: #c9c9c9;
}
.fx-m-desc p + p { margin-top: 14px; }

.fx-m-facts {
    margin: 30px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.fx-m-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.fx-m-facts dt {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8b8b8b;
}
.fx-m-facts dd {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    color: #f4f4f4;
    text-align: right;
}

.fx-m-quote {
    position: relative;
    margin: 30px 0 0;
    padding-left: 22px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 1.08rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: #f4f4f4;
}
.fx-m-quote::before {
    content: '';
    position: absolute;
    left: 0; top: 0.2em; bottom: 0.2em;
    width: 3px;
    background: var(--fx-gold);
}

.fx-m-cta {
    margin-top: auto;
    align-self: flex-start;
    padding-top: 34px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    background-image: linear-gradient(var(--fx-gold), var(--fx-gold));
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 2px;
    padding-bottom: 6px;
}
.fx-m-cta:hover { color: var(--fx-gold); }

/* ── UPCOMING PROJECTS ────────────────────────────────────
   white ground; each row fills with the menu's gold → red as it
   scrolls into view (driven by scroll progress in JS)
─────────────────────────────────────────────────────────── */
.fx-upcoming {
    position: relative;
    z-index: 5;
    background: #fff;
    padding: clamp(80px, 10vw, 140px) 60px;
}

.fx-up-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: clamp(40px, 6vw, 72px);
}
.fx-upcoming .fx-eyebrow { color: var(--fx-red); }
.fx-upcoming .fx-h2 { color: #111; }

.fx-up-stats { display: flex; gap: clamp(28px, 4vw, 64px); }
.fx-up-stats div { display: flex; flex-direction: column; gap: 6px; }
.fx-up-stats b {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #111;
}
.fx-up-stats span {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8f8f8f;
}

.fx-up-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fx-up-row {
    --fx-ink: #111;
    --fx-sub: rgba(17, 17, 17, 0.55);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 70px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 24px;
    padding: 28px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* the colour layer — width and colour are set from scroll progress */
.fx-up-fill {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #F3CB1B;
    clip-path: inset(0 100% 0 0);
    will-change: clip-path, background-color;
    transition: background-color 0.25s steps(1, end);
}

.fx-up-num, .fx-up-name h3, .fx-up-type, .fx-up-area { color: var(--fx-ink); transition: color 0.35s ease; }
.fx-up-name span, .fx-up-area small { color: var(--fx-sub); transition: color 0.35s ease; }
.fx-up-row.is-filled { border-bottom-color: transparent; }

.fx-up-num {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.fx-up-name h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: clamp(1.3rem, 2vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.fx-up-name span {
    display: block;
    margin-top: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.fx-up-type {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.98rem;
}

.fx-up-area {
    justify-self: end;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: clamp(1.3rem, 2vw, 2rem);
    letter-spacing: -0.03em;
    white-space: nowrap;
}
.fx-up-area small {
    margin-left: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.fx-testimonials {
    position: relative;
    z-index: 5;
    background: #f9f8f5;
    padding: clamp(80px, 10vw, 140px) 60px;
}

.fx-t-head { margin-bottom: clamp(44px, 6vw, 80px); }

.fx-t-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 64px);
}

.fx-t {
    position: relative;
    margin: 0;
    padding: clamp(32px, 4vw, 52px);
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.fx-t-mark {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 5rem;
    line-height: 0.6;
    color: var(--fx-red);
    height: 0.5em;
}

.fx-t blockquote {
    margin: 26px 0 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: clamp(1.15rem, 1.6vw, 1.6rem);
    line-height: 1.42;
    letter-spacing: -0.022em;
    color: #111;
}

.fx-t figcaption {
    margin-top: auto;
    padding-top: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.fx-t figcaption::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--fx-gold);
    flex-shrink: 0;
}
.fx-t figcaption b { font-weight: 700; color: #111; }
.fx-t figcaption span { color: #8f8f8f; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .fx-up-row { grid-template-columns: 52px minmax(0, 1.3fr) minmax(0, 1fr) auto; }
}

@media (max-width: 900px) {
    /* modal becomes one scrolling sheet: photo on top, details beneath */
    .fx-modal { padding: 0; align-items: stretch; }
    .fx-m-panel {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .fx-m-stage { height: min(62vh, 74vw); flex: none; }
    .fx-m-info { overflow: visible; border-left: none; padding: 34px 24px 48px; }
    .fx-m-close { position: fixed; top: 12px; right: 12px; background: rgba(13, 13, 13, 0.6); }
    .fx-m-nav { width: 40px; height: 40px; margin-top: -20px; }
    .fx-m-prev { left: 10px; }
    .fx-m-next { right: 10px; }
}

@media (max-width: 768px) {
    .fx-pc-lead { padding: 12px 24px 0; }
    .fx-pc-track { padding: 36px 24px 28px; gap: 20px; scroll-padding-inline: 24px; }
    .fx-pc { width: 68vw; max-width: 320px; }
    .fx-pc-name { margin-top: 18px; }
    .fx-pc-nav { padding: 0 24px 64px; }

    .fx-upcoming, .fx-testimonials { padding-left: 24px; padding-right: 24px; }
    .fx-up-head { align-items: flex-start; }
    .fx-up-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        grid-template-areas: 'num name area' 'num type area';
        row-gap: 8px;
        column-gap: 14px;
        padding: 22px 18px;
    }
    .fx-up-num  { grid-area: num; align-self: start; padding-top: 6px; }
    .fx-up-name { grid-area: name; }
    .fx-up-type { grid-area: type; font-size: 0.88rem; }
    .fx-up-area { grid-area: area; align-self: center; font-size: 1.25rem; }
    .fx-up-area small { display: block; margin: 4px 0 0; text-align: right; }

    .fx-t-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .fx-pc { width: 74vw; }
    .fx-pc-hint { display: none; }
    .fx-m-thumb { width: 68px; height: 48px; }
}
