/* =========================================================
   Aroha — WORK
   Based on the supplied final Work page layout.
   Uses existing global.css, header.js, footer.js and main.js.
========================================================= */

.page-work { background: #fff; color: var(--color-text); }
.page-work .work-inner { width: min(1280px, calc(100% - 2 * var(--page-gutter))); margin-inline: auto; }
.page-work .work-kicker { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; line-height: 1.5; }
.page-work figure { margin: 0; }

/* HEADER IS OVER THE FIRST HERO, BUT NOT OVER ITS CONTENT COLUMN */
.page-work #site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 1000; }
.page-work .site-header { background: transparent; }
.page-work .site-header.scrolled { background: rgba(255,255,255,.95); }

/* 01 HERO: one single already-composited image on the left */
.work-hero { display: grid; grid-template-columns: 44% 56%; min-height: clamp(650px, 56vw, 850px); background: #fff; }
.work-hero-visual { position: relative; min-height: inherit; overflow: hidden; background: #fff; }
.work-hero-visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.work-hero-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(150px, 15vw, 240px) clamp(48px, 7vw, 130px) 90px clamp(50px, 7vw, 125px); }
.work-hero-content h1 { font-size: clamp(54px, 4.3vw, 76px); line-height: 1.01; letter-spacing: -.035em; max-width: 650px; }
.work-hero-copy { max-width: 525px; margin-top: 42px; }
.work-hero-copy p { margin-bottom: 19px; font-size: clamp(13px, .92vw, 15px); line-height: 1.43; color: var(--color-text); }

/* 02 HORIZONTAL WORK CATEGORY CAROUSEL */
.work-categories { padding: clamp(92px, 9vw, 145px) 0 clamp(95px, 10vw, 160px); overflow: hidden; background: #fff; }
.work-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 58px; }
.work-section-heading .work-kicker { margin-bottom: 45px; }
.work-section-heading h2 { font-size: clamp(52px, 5vw, 82px); letter-spacing: -.04em; line-height: .95; }
.work-slider-controls { display: flex; gap: 20px; padding-bottom: 3px; }
.work-slider-arrow { width: 70px; height: 44px; border: 1px solid #bbb5b0; border-radius: 40px; font-family: Arial,sans-serif; font-size: 20px; line-height: 1; transition: background .2s, color .2s, opacity .2s; }
.work-slider-arrow:hover:not(:disabled) { background: #221a16; color: #fff; border-color: #221a16; }
.work-slider-arrow:disabled { opacity: .35; cursor: default; }
.work-category-track { --work-track-gutter: max(var(--page-gutter), calc((100vw - 1280px) / 2)); display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--work-track-gutter); padding: 0 var(--work-track-gutter) 13px; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.work-category-track:active { cursor: grabbing; }
.work-category-track::-webkit-scrollbar { display: none; }
.work-category-card { flex: 0 0 clamp(300px, 24.5vw, 355px); min-height: 475px; padding: 50px 36px 45px; background: #f2efec; scroll-snap-align: start; }
.work-category-card h3 { font-family: var(--font-body); font-weight: 600; font-size: clamp(24px, 2vw, 31px); letter-spacing: -.035em; line-height: 1.15; margin-bottom: 23px; }
.work-category-card p { font-size: 12px; line-height: 1.45; margin-bottom: 17px; color: var(--color-text); }

/* 03 CASE STUDY DRAWING AND CONTINUOUS PROJECT COMPOSITIONS */
.work-projects { background: #fff; }
.work-case-intro { padding-top: 20px; position: relative; }
.work-case-intro .work-kicker { margin-bottom: 60px; }
.work-case-intro h2 { font-size: clamp(76px, 7vw, 130px); line-height: .8; letter-spacing: -.04em; position: relative; z-index: 1; }
.work-case-drawing { width: 90%; height: clamp(410px, 43vw, 680px); margin: -35px auto 50px; overflow: hidden; }
.work-case-drawing img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* The copy and artwork are deliberately inside ONE project composition.
   Let the artwork use its natural ratio: fixed-height cover was cropping
   these Figma compositions and visually detaching them from the copy. */
.work-project { background: #fff; overflow: hidden; }
.work-project-composition { position: relative; isolation: isolate; background: #fff; overflow: hidden; }
.work-project-copy {
    position: relative; z-index: 2;
    padding-top: clamp(70px, 6.5vw, 105px);
    padding-bottom: clamp(12px, 2vw, 32px);
}
.work-project-copy > .project-meta, .work-spa-intro > .project-meta { display: block; margin-bottom: 13px; }
.project-meta { font-family: var(--font-body); font-size: 10px; font-weight: 500; line-height: 1.4; }
.work-project-copy h3, .work-spa-top h3 { font-family: var(--font-body); font-weight: 650; font-size: clamp(24px, 2.3vw, 36px); letter-spacing: -.025em; line-height: 1.13; margin-bottom: 21px; }
.work-project-copy p, .work-spa-top p { font-family: var(--font-body); font-size: clamp(12px, .98vw, 15px); line-height: 1.35; margin-bottom: 18px; color: var(--color-text); }
.work-project-copy-left > * { max-width: 530px; }
.work-project-copy-right > * { max-width: 530px; margin-left: auto; }
.work-project-copy-wide { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(70px, 12vw, 180px); }
.work-project-copy-wide > div:first-child { max-width: 450px; justify-self: end; }
.work-project-copy-wide > div:last-child { max-width: 500px; }
.work-project-photo { display: block; position: relative; z-index: 1; width: 100%; overflow: hidden; background: #fff; }
.work-project-photo img { display: block; width: 100%; height: auto; object-fit: contain; object-position: center bottom; }

/* Transparent / pre-composited PNGs can reach behind the white text zone,
   as in Figma, without introducing an extra image block. */
.project-photo-villa { margin-top: clamp(-85px, -5vw, -30px); }
.project-photo-maraya { margin-top: clamp(-65px, -4vw, -25px); }
/* JPEG photos have opaque edges; do not overlap readable body text. */
.project-photo-powell, .project-photo-kenya, .project-photo-moon { margin-top: 0; }
.project-photo-spa { margin-top: 0; }

/* SPA: TWO TOP COLUMNS; RIGHT COLUMN INCLUDES TWO SMALL COMPONENT COLUMNS */
.work-spa-top { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(50px, 7vw, 110px); padding-top: clamp(90px, 9vw, 150px); padding-bottom: clamp(10px, 1.3vw, 22px); }
.work-spa-intro { max-width: 520px; }
.work-spa-components { max-width: 695px; }
.work-spa-components h3 { margin-bottom: 28px; text-transform: uppercase; }
.work-spa-components h3 small { display: block; font-size: 45%; line-height: 1.15; letter-spacing: 0; }
.work-spa-top .work-spa-lead { margin-bottom: 32px; font-weight: 600; }
.work-spa-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.work-spa-columns > div + div { padding-left: 35px; border-left: 1px solid #c5c0bc; }
.work-spa-columns p { margin-bottom: 13px; }
.work-spa-columns strong { font-weight: 700; }

/* 04 F&B — A SINGLE DARK SECTION */
.work-fnb { background: #211915; color: #fff; padding: clamp(100px, 10vw, 165px) 0 clamp(125px, 12vw, 190px); }
.work-fnb-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(75px, 14vw, 220px); }
.work-fnb .work-kicker { color: #fff; font-size: 9px; margin-bottom: 23px; }
.work-fnb h2, .work-fnb h3 { font-family: var(--font-body); font-weight: 650; letter-spacing: -.02em; }
.work-fnb h2 { font-size: clamp(45px, 4.3vw, 70px); line-height: 1.08; margin-bottom: 55px; }
.work-fnb h3 { font-size: clamp(19px, 1.65vw, 26px); line-height: 1.2; margin-bottom: 22px; }
.work-fnb p { font-size: clamp(12px, 1vw, 15px); line-height: 1.4; margin-bottom: 25px; color: rgba(255,255,255,.92); }
.work-fnb-concept { padding: 0 0 37px; margin-bottom: 37px; border-bottom: 1px solid rgba(255,255,255,.2); }
.work-fnb-concept:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.work-fnb-concept p { margin-bottom: 0; }

/* INTERMEDIATE DESKTOP / TABLET */
@media (max-width: 1100px) {
    .work-hero { grid-template-columns: 45% 55%; }
    .work-hero-content { padding-left: 55px; padding-right: 35px; }
    .work-category-card { flex-basis: 320px; }
    .work-fnb-grid { gap: 65px; }
}
@media (max-width: 800px) {
    .page-work #site-header { position: relative; }
    .page-work .site-header { background: #fff; }
    .work-hero { grid-template-columns: 1fr; min-height: 0; }
    .work-hero-visual { min-height: 0; height: 460px; }
    .work-hero-content { padding: 80px var(--page-gutter) 95px; }
    .work-hero-content h1 { font-size: clamp(55px, 8.5vw, 85px); }
    .work-section-heading { margin-bottom: 40px; }
    .work-category-card { flex-basis: 330px; }
    .work-case-drawing { margin-top: 0; width: 100%; height: 420px; }
    .work-project-copy-wide { column-gap: 40px; }
    .work-spa-top { grid-template-columns: 1fr; }
    .work-spa-intro, .work-spa-components { max-width: none; }
    .work-fnb-grid { grid-template-columns: 1fr; gap: 80px; }
    .work-fnb h2 { margin-bottom: 40px; }
}
@media (max-width: 600px) {
    .work-hero-visual { height: 350px; }
    .work-hero-content { padding-top: 60px; padding-bottom: 75px; }
    .work-hero-content h1 { font-size: clamp(48px, 11vw, 66px); }
    .work-hero-copy { margin-top: 30px; }
    .work-categories { padding-top: 85px; padding-bottom: 85px; }
    .work-section-heading { align-items: flex-end; }
    .work-section-heading .work-kicker { margin-bottom: 25px; }
    .work-section-heading h2 { font-size: clamp(46px, 11vw, 64px); }
    .work-slider-controls { gap: 7px; }
    .work-slider-arrow { width: 42px; height: 36px; font-size: 17px; }
    .work-category-track { gap: 12px; }
    .work-category-card { flex-basis: min(82vw, 335px); padding: 33px 26px; min-height: 430px; }
    .work-category-card h3 { font-size: 25px; }
    .work-case-intro .work-kicker { margin-bottom: 36px; }
    .work-case-intro h2 { font-size: clamp(62px, 14vw, 82px); }
    .work-case-drawing { height: 280px; margin-top: 15px; margin-bottom: 20px; }
    .work-project-copy { padding-top: 65px; padding-bottom: 16px; }
    .work-project-copy-right > * { margin-left: 0; }
    .work-project-copy-wide { grid-template-columns: 1fr; gap: 24px; }
    .work-project-copy-wide > div:first-child { justify-self: start; }
    .work-project-copy h3, .work-spa-top h3 { font-size: 25px; }
    .project-photo-villa, .project-photo-maraya { margin-top: -18px; }
    .project-photo-powell, .project-photo-kenya, .project-photo-moon, .project-photo-spa { margin-top: 0; }
    .work-spa-top { padding-top: 75px; padding-bottom: 16px; gap: 50px; }
    .work-spa-columns { gap: 20px; }
    .work-spa-columns > div + div { padding-left: 18px; }
    .work-spa-columns p { font-size: 11px; }
    .work-fnb { padding-top: 85px; padding-bottom: 100px; }
    .work-fnb h2 { font-size: 50px; }
    .work-fnb-grid { gap: 60px; }
}
@media (prefers-reduced-motion: reduce) { .work-category-track { scroll-behavior: auto; } }










/* =========================================================
   VILLA CELESTIA — FIGMA COMPOSITION
========================================================= */

.project-villa {
    position: relative;
    background: #fff;
    overflow: hidden;
}

.project-villa .work-project-copy {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
}

.project-villa .work-project-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    margin-top: clamp(-420px, -28vw, -200px);
    background: transparent;
}

.project-villa .work-project-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* TABLET */

@media (max-width: 800px) {
    .project-villa .work-project-photo {
        margin-top: -130px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .project-villa .work-project-photo {
        margin-top: -35px;
    }
}






/* =========================================================
   MARAYA — FIGMA COMPOSITION
========================================================= */

.project-maraya {
    position: relative;
    background: #fff;
    overflow: hidden;
}

/* Text remains above the image */

.project-maraya .work-project-copy {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
}

/* Bring the architecture up behind the text */

.project-maraya .work-project-photo {
    position: relative;
    z-index: 1;

    width: 100%;
    height: auto;

    margin-top: clamp(-650px, -37vw, -330px);

    background: transparent;
}

.project-maraya .work-project-photo img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
    object-position: center;
}

/* TABLET */

@media (max-width: 800px) {

    .project-maraya .work-project-photo {
        margin-top: -160px;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .project-maraya .work-project-photo {
        margin-top: -30px;
    }

    .project-maraya .work-project-copy {
        padding-bottom: 20px;
    }

}





/* =========================================================
   NORTH LAKE POWELL — FIGMA COMPOSITION
========================================================= */

.project-powell {
    position: relative;
    background: #fff;
    overflow: hidden;
}

/* Keep the text above the landscape */

.project-powell .work-project-copy {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
}

/* Raise the transparent landscape behind the text */

.project-powell .work-project-photo {
    position: relative;
    z-index: 1;

    width: 100%;
    height: auto;

    margin-top: clamp(-680px, -38vw, -320px);

    background: transparent;
}

.project-powell .work-project-photo img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
    object-position: center;
}

/* TABLET */

@media (max-width: 800px) {

    .project-powell .work-project-photo {
        margin-top: -170px;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .project-powell .work-project-photo {
        margin-top: -45px;
    }

    .project-powell .work-project-copy {
        padding-bottom: 20px;
    }

}






/* =========================================================
   KENYA WELLNESS CAMPUS — FIGMA COMPOSITION
========================================================= */

.project-kenya {
    position: relative;
    background: #fff;
    overflow: hidden;
}

/* Both text columns stay above the image */

.project-kenya .work-project-copy {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
}

/* Raise the architecture behind the text */

.project-kenya .work-project-photo {
    position: relative;
    z-index: 1;

    width: 100%;
    height: auto;

    margin-top: clamp(-420px, -20vw, -180px);

    background: transparent;
}

.project-kenya .work-project-photo img {
    display: block;
    width: 100%;
    height: auto;

    object-fit: contain;
    object-position: center;
}

/* TABLET */

@media (max-width: 800px) {

    .project-kenya .work-project-photo {
        margin-top: -125px;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .project-kenya .work-project-photo {
        margin-top: -25px;
    }

    .project-kenya .work-project-copy {
        padding-bottom: 20px;
    }

}






/* =========================================================
   MOON BASE — FIGMA COMPOSITION
========================================================= */

.project-moon {
    position: relative;
    background: #fff;
    overflow: hidden;
}

/* Text stays in front of the architecture */

.project-moon .work-project-copy {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
}

/* Raise the building behind the text */

.project-moon .work-project-photo {
    position: relative;
    z-index: 1;

    width: 100%;
    height: auto;

    margin-top: clamp(-650px, -37vw, -320px);

    background: transparent;
}

.project-moon .work-project-photo img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 0;

    object-fit: contain;
    object-position: center;
}

/* TABLET */

@media (max-width: 800px) {

    .project-moon .work-project-photo {
        margin-top: -150px;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .project-moon .work-project-photo {
        margin-top: -30px;
    }

    .project-moon .work-project-copy {
        padding-bottom: 20px;
    }

}




/* =========================================================
   Aroha SPA — FIGMA COMPOSITION
========================================================= */

.project-spa {
    position: relative;
    background: #fff;
    overflow: hidden;
}

/* Keep both text columns above the image */

.project-spa .work-spa-top {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
}

/* Bring the architecture closer to the text */

.project-spa .work-project-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    margin-top: clamp(-400px, -22vw, -180px);
    background: transparent;
}

.project-spa .work-project-photo img {
    display: block;
    width: 100%;
    height: auto;

    object-fit: contain;
    object-position: center;
}

/* TABLET */

@media (max-width: 800px) {
    .project-spa .work-project-photo {
        margin-top: -100px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .project-spa .work-project-photo {
        margin-top: -20px;
    }

    .project-spa .work-spa-top {
        padding-bottom: 20px;
    }
}

/* =========================================================
   PROJECT QUICK NAVIGATION
========================================================= */
html {
    scroll-behavior: smooth;
}

.work-projects [id] {
    scroll-margin-top: 120px;
}

.work-project-jump-wrap {
    position: sticky;
    top: 78px;
    z-index: 25;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid #ece7e1;
    border-bottom: 1px solid #ece7e1;
    margin-bottom: 22px;
}

.work-project-jump {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 16px 0;
    scrollbar-width: thin;
    scrollbar-color: #b8aea2 transparent;
}

.work-project-jump::-webkit-scrollbar {
    height: 8px;
}

.work-project-jump::-webkit-scrollbar-thumb {
    background: #b8aea2;
    border-radius: 999px;
}

.work-project-jump a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #d9d2ca;
    border-radius: 999px;
    background: #fff;
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.work-project-jump a:hover {
    background: #f6f1eb;
    border-color: #c5b8ab;
    transform: translateY(-1px);
}

/* =========================================================
   PLACEHOLDER PROJECT VISUALS
========================================================= */
.project-generic .work-project-copy {
    padding-bottom: 0;
}

.project-placeholder {
    position: relative;
    min-height: clamp(360px, 48vw, 700px);
    display: flex;
    align-items: flex-end;
    width: 100%;
    overflow: hidden;
    background: #e9e3db;
}

.project-placeholder::before,
.project-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.project-placeholder::before {
    background:
      radial-gradient(circle at 18% 28%, rgba(255,255,255,.68), transparent 18%),
      radial-gradient(circle at 80% 22%, rgba(255,255,255,.35), transparent 16%),
      linear-gradient(180deg, rgba(255,255,255,.18), transparent 36%);
}

.project-placeholder::after {
    inset: auto 3% 7% auto;
    width: 34%;
    height: 34%;
    border: 1.5px solid rgba(85,57,35,.18);
    border-radius: 34px;
    opacity: .6;
}

.placeholder-note {
    position: relative;
    z-index: 3;
    margin: 30px;
    padding: 16px 18px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(72,48,28,.12);
    backdrop-filter: blur(10px);
    max-width: min(360px, calc(100% - 60px));
}

.placeholder-note span {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .72;
}

.placeholder-note strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(24px, 2.2vw, 40px);
    line-height: .95;
    font-weight: 400;
}

.placeholder-glamping {
    background:
      linear-gradient(180deg, rgba(215, 196, 162, .18), rgba(215, 196, 162, 0) 28%),
      linear-gradient(180deg, #cfa769 0%, #d9bf8c 20%, #8a6e49 56%, #594634 100%);
}

.placeholder-glamping::after {
    inset: auto auto 0 0;
    width: 100%;
    height: 48%;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 20% 80%, rgba(255, 197, 86, .38), transparent 10%),
      radial-gradient(circle at 48% 82%, rgba(255, 197, 86, .2), transparent 10%),
      linear-gradient(180deg, transparent, rgba(40,25,15,.38));
}

.placeholder-beach {
    background:
      linear-gradient(180deg, #7fd2df 0%, #b6e9ef 20%, #e8e6d9 48%, #d2c2a8 75%, #b79265 100%);
}

.placeholder-beach::after {
    inset: auto 0 0 0;
    width: 100%;
    height: 44%;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 80% 18%, rgba(255,255,255,.5), transparent 9%),
      linear-gradient(180deg, transparent 10%, rgba(92, 67, 38, .12) 11%, transparent 13%),
      linear-gradient(180deg, transparent 18%, rgba(92, 67, 38, .12) 19%, transparent 21%),
      linear-gradient(180deg, transparent, rgba(122, 93, 61, .28));
}

.placeholder-villa {
    background:
      linear-gradient(180deg, #dbe2d5 0%, #eef3eb 24%, #cabba5 58%, #887664 100%);
}

.placeholder-villa::after {
    inset: auto 4% 5% auto;
    width: 54%;
    height: 56%;
    border: 1.5px solid rgba(79, 55, 36, .18);
    border-radius: 120px 120px 16px 16px;
    box-shadow:
      -160px -20px 0 -120px rgba(79,55,36,.18),
      -280px 10px 0 -150px rgba(79,55,36,.18);
}

.placeholder-business {
    background:
      linear-gradient(180deg, #dbe0e8 0%, #edf1f5 25%, #c5cdd8 56%, #8a98ab 100%);
}

.placeholder-business::after {
    inset: auto 0 0 0;
    width: 100%;
    height: 65%;
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(90deg, rgba(42,56,76,.22) 0 12%, transparent 12% 16%, rgba(42,56,76,.18) 16% 26%, transparent 26% 30%, rgba(42,56,76,.22) 30% 45%, transparent 45% 49%, rgba(42,56,76,.2) 49% 62%, transparent 62% 66%, rgba(42,56,76,.16) 66% 78%, transparent 78% 82%, rgba(42,56,76,.22) 82% 100%),
      linear-gradient(180deg, transparent, rgba(34,43,58,.24));
}

/* Small responsiveness */
@media (max-width: 800px) {
    .work-project-jump-wrap {
        top: 0;
    }
}

@media (max-width: 600px) {
    .work-project-jump {
        padding-top: 14px;
        padding-bottom: 14px;
        gap: 10px;
    }

    .work-project-jump a {
        min-height: 38px;
        padding: 9px 13px;
        font-size: 10px;
    }

    .project-placeholder {
        min-height: 300px;
    }

    .placeholder-note {
        margin: 18px;
        max-width: calc(100% - 36px);
    }
}

/* =========================================================
   FINAL WORK PAGE REFINEMENTS — OCT 2026
========================================================= */

/* Home CTA deep-links:
   work.html#projects and work.html#case-studies both land at the project navigator. */
.work-project-anchor {
    display: block;
    height: 0;
    scroll-margin-top: 96px;
}

#case-studies {
    scroll-margin-top: 96px;
}

/* QUICK PROJECT NAV — full-width right edge, scroll cue, no hard button cut-off */
.work-project-jump-wrap {
    overflow: hidden;
    margin-bottom: 22px;
}

.work-project-jump-shell {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding-left: max(var(--page-gutter), calc((100vw - 1280px) / 2));
    background: rgba(255,255,255,.94);
}

.work-project-jump-icon {
    position: relative;
    z-index: 4;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-right: 10px;
    display: grid;
    place-items: center;
    border: 1px solid #d9d2ca;
    border-radius: 999px;
    background: #fff;
    color: #6f6258;
}

.work-project-jump-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.work-project-jump-shell::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    bottom: 0;
    width: clamp(68px, 7vw, 120px);
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.84) 50%, #fff 90%);
}

.work-project-jump {
    flex: 1 1 auto;
    min-width: 0;
    padding: 16px clamp(92px, 8vw, 138px) 16px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.work-project-jump::-webkit-scrollbar {
    display: none;
}

/* 02 — North Lake Powell Medical Campus:
   lower the artwork so copy never sits across the detailed render. */
.project-powell .work-project-photo {
    margin-top: clamp(-500px, -27vw, -220px);
}

/* 03/08 — Business Center:
   pull artwork upward and remove the oversized empty field. */
.project-business .work-project-photo {
    margin-top: clamp(-390px, -22vw, -185px);
}

/* 04 — North Lake Powell Glamping:
   bring the transparent composition upward. */
.project-glamping .work-project-photo {
    margin-top: clamp(-330px, -18vw, -150px);
}

/* 05 — Social Beach Club:
   use two editorial text columns above the horizontal artwork. */
.project-beach .work-project-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(48px, 7vw, 105px);
    align-items: start;
}

.project-beach .work-project-copy > .project-meta,
.project-beach .work-project-copy > h3 {
    grid-column: 1 / -1;
}

.project-beach .work-project-copy > p {
    max-width: none;
    margin-left: 0;
}

.project-beach .work-project-copy > p:nth-of-type(1) {
    grid-column: 1;
}

.project-beach .work-project-copy > p:nth-of-type(2) {
    grid-column: 2;
}

/* 06 — Nature-Immersive Villa:
   reduce the large white gap above the image. */
.project-nature-villa .work-project-photo {
    margin-top: clamp(-360px, -20vw, -165px);
}

/* 07 — Maraya Tower:
   copy is on the left, where the transparent PNG leaves breathing room. */
.project-maraya .work-project-copy-left > * {
    max-width: 530px;
    margin-left: 0;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .project-powell .work-project-photo { margin-top: -300px; }
    .project-business .work-project-photo { margin-top: -225px; }
    .project-glamping .work-project-photo { margin-top: -190px; }
    .project-nature-villa .work-project-photo { margin-top: -210px; }
}

@media (max-width: 800px) {
    .work-project-anchor,
    #case-studies {
        scroll-margin-top: 12px;
    }

    .work-project-jump-shell {
        padding-left: var(--page-gutter);
    }

    .work-project-jump-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        margin-right: 8px;
    }

    .work-project-jump {
        padding-right: 82px;
    }

    .project-powell .work-project-photo { margin-top: -145px; }
    .project-business .work-project-photo { margin-top: -130px; }
    .project-glamping .work-project-photo { margin-top: -110px; }
    .project-nature-villa .work-project-photo { margin-top: -120px; }

    .project-beach .work-project-copy {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-beach .work-project-copy > .project-meta,
    .project-beach .work-project-copy > h3,
    .project-beach .work-project-copy > p:nth-of-type(1),
    .project-beach .work-project-copy > p:nth-of-type(2) {
        grid-column: 1;
    }
}

@media (max-width: 600px) {
    .work-project-jump-shell {
        padding-left: 14px;
    }

    .work-project-jump-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .work-project-jump-shell::after {
        width: 54px;
    }

    .work-project-jump {
        padding-right: 68px;
    }

    .project-powell .work-project-photo { margin-top: -38px; }
    .project-business .work-project-photo { margin-top: -38px; }
    .project-glamping .work-project-photo { margin-top: -34px; }
    .project-nature-villa .work-project-photo { margin-top: -34px; }
}
