:root {
    --night: #020626;
    --night-2: #050b2d;
    --panel: #081033;
    --panel-soft: #0d1940;
    --ink: #f2f3ec;
    --muted: #9aa9a0;
    --muted-2: #6d8076;
    --line: rgba(184,207,190,.15);
    --gold: #05dac3;
    --gold-bright: #72fff0;
    --mint: #05dac3;
    --ease: cubic-bezier(.2,.75,.2,1)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    margin: 0;
    background: var(--night);
    color: var(--ink);
    font-family: "DM Sans",sans-serif;
    -webkit-font-smoothing: antialiased
}

body.modal-open {
    overflow: hidden
}

a {
    color: inherit
}

.site-header {
    height: 76px;
    padding: 0 clamp(22px,6vw,92px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 2;
    background: rgba(2,6,38,.92)
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font: 800 13px Manrope,sans-serif;
    letter-spacing: 2px
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--gold);
    font-size: 24px
}

.brand-dot {
    color: var(--gold)
}

.header-nav {
    display: flex;
    gap: 34px;
    height: 100%;
    align-items: center
}

.header-nav a {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    color: #9aa79f;
    font-size: 12px;
    transition: color .2s
}

.header-nav a:hover,.header-nav .nav-current {
    color: var(--gold-bright)
}

.header-nav .nav-current:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold)
}

.header-cta {
    border: 1px solid rgba(213,181,117,.55);
    border-radius: 99px;
    padding: 11px 16px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-bright);
    transition: background .2s,transform .2s
}

.header-cta span {
    margin-left: 12px
}

.header-cta:hover {
    background: rgba(213,181,117,.1);
    transform: translateY(-1px)
}

.projects-section {
    position: relative;
    isolation: isolate;
    max-width: 1600px;
    margin: auto;
    padding: 76px clamp(22px,6vw,92px) 30px;
    overflow: hidden
}

.hero-glow {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    width: 700px;
    height: 450px;
    right: -180px;
    top: -220px;
    background: radial-gradient(ellipse,rgba(27,86,66,.27),transparent 68%)
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 50px;
    margin-bottom: 78px
}

.eyebrow {
    font-size: 9px;
    letter-spacing: 2.5px;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 10px
}

.eyebrow>span:first-child {
    width: 22px;
    height: 1px;
    background: var(--gold);
    display: inline-block
}

.eyebrow-end {
    width: 5px;
    height: 5px;
    border: 1px solid var(--gold);
    border-radius: 50%
}

h1,h2 {
    font-family: Manrope,sans-serif;
    letter-spacing: -.06em;
    margin: 0;
    font-weight: 600
}

h1 {
    font-size: clamp(48px,6.5vw,88px);
    line-height: 1.02
}

h1 em {
    font-style: normal;
    background: linear-gradient(95deg,#e8d3a0,#a9c5b1 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.hero-subtitle {
    max-width: 475px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
    margin: 24px 0 0
}

.hero-aside {
    min-width: 195px;
    padding: 0 0 9px 26px;
    border-left: 1px solid var(--line);
    margin-bottom: 7px
}

.aside-line {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 16px
}

.hero-aside>p {
    font-size: 9px;
    line-height: 1.8;
    letter-spacing: 1.5px;
    color: #82958a;
    margin: 0 0 28px
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 12px
}

.hero-stat strong {
    font: 500 34px Manrope,sans-serif;
    color: var(--gold-bright);
    letter-spacing: -2px
}

.hero-stat span {
    font-size: 8px;
    line-height: 1.7;
    letter-spacing: 1.3px;
    color: var(--muted-2)
}

.collection-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    margin-bottom: 28px
}

.section-index {
    font-size: 9px;
    letter-spacing: 1.9px;
    color: var(--gold);
    display: block;
    margin-bottom: 11px
}

.collection-heading h2 {
    font-size: clamp(24px,3vw,36px);
    letter-spacing: -1.7px
}

.collection-heading>p {
    margin: 0;
    color: var(--muted-2);
    font-size: 11px;
    line-height: 1.8;
    text-align: right
}





/* Make the heading black */
.projects-section .hero-copy h1 {
    color: #000000;
}

/* Keep "thoughtfully" turquoise blue */
.projects-section .hero-copy h1 .hero-thoughtfully {
    color: #00cdbb;
    -webkit-text-fill-color: #00cdbb;
}




.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px
}

.filter {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.018);
    padding: 10px 14px;
    border-radius: 99px;
    color: #9eada4;
    font: 500 11px "DM Sans";
    cursor: pointer;
    transition: all .22s
}

.filter:hover,.filter.active {
    border-color: rgba(213,181,117,.6);
    background: rgba(213,181,117,.1);
    color: var(--gold-bright)
}

.filter span {
    margin-left: 9px;
    color: var(--gold)
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 28px 20px
}

.project-card {
    min-width: 0;
    animation: rise .45s var(--ease) both
}

.project-image {
    width: 100%;
    aspect-ratio: 1.53;
    display: block;
    position: relative;
    overflow: hidden;
    background: #11231d;
    border: 1px solid rgba(185,211,193,.13);
    border-radius: 9px;
    padding: 0;
    cursor: pointer;
    text-align: left
}

.project-image:after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.025);
    border-radius: inherit;
    pointer-events: none
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s var(--ease),filter .5s
}

.project-image:hover img,.project-image:focus-visible img {
    transform: scale(1.045);
    filter: saturate(1.08)
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(3,12,9,.02) 45%,rgba(3,12,9,.68));
    opacity: .82;
    transition: opacity .3s
}

.project-image:hover .image-overlay {
    opacity: 1
}

.open-mark {
    position: absolute;
    right: 13px;
    bottom: 13px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: rgba(8,22,17,.85);
    border: 1px solid rgba(213,181,117,.55);
    color: var(--gold-bright);
    border-radius: 50%;
    font-size: 18px;
    transition: transform .3s,background .3s
}

.project-image:hover .open-mark {
    transform: rotate(45deg);
    background: #10245a
}

.shot-count {
    position: absolute;
    left: 15px;
    bottom: 25px;
    color: #e7eee7;
    font-size: 8px;
    letter-spacing: 1.7px;
    font-weight: 700;
    text-shadow: 0 1px 8px #0008
}

.project-info {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 2px 0;
    align-items: flex-start
}

.project-kicker {
    font-size: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 8px
}

.project-title {
    font: 600 clamp(16px,1.55vw,21px) Manrope,sans-serif;
    letter-spacing: -.7px;
    margin: 0;
    overflow-wrap: anywhere
}

.project-desc {
    font-size: 11px;
    color: var(--muted-2);
    line-height: 1.75;
    max-width: 420px;
    margin: 8px 0 0;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.project-number {
    font: 500 10px Manrope;
    color: #6e8377;
    padding-top: 2px
}

.section-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 65px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    font-size: 8px;
    letter-spacing: 1.8px;
    color: #60736a
}

.section-bottom i {
    color: var(--gold);
    font-style: normal
}

.closing-note {
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 53px 20px 58px;
    background: linear-gradient(180deg,rgba(16,35,29,.35),transparent)
}

.closing-star {
    color: var(--gold);
    font-size: 24px
}

.closing-note p {
    font: 500 clamp(21px,3vw,34px)/1.45 Manrope,sans-serif;
    letter-spacing: -1px;
    margin: 14px 0 20px
}

.closing-note p em {
    font-style: normal;
    color: #9bb8a6
}

.closing-caption {
    font-size: 8px;
    letter-spacing: 2px;
    color: #6c8175
}

/* Fix Bootstrap/theme overlay collision: backdrop must sit behind the showroom dialog. */
#projectModal { z-index: 20000 !important; }
#projectModal > .modal-backdrop { z-index: 0 !important; }
#projectModal > .modal-panel { z-index: 1 !important; }

/* Premium project detail dialog */

.modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s,visibility .25s
}

.modal.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(1,7,5,.82);
    backdrop-filter: blur(12px);
    cursor: default
}

.modal-panel {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg,#081033,#020626 78%);
    border: 1px solid rgba(191,214,197,.2);
    border-radius: 18px;
    width: min(1240px,100%);
    max-height: min(92vh,980px);
    overflow: auto;
    box-shadow: 0 40px 140px rgba(0,0,0,.62),0 0 0 1px rgba(213,181,117,.04);
    transform: translateY(16px) scale(.985);
    transition: transform .38s var(--ease);
    scrollbar-width: thin;
    scrollbar-color: #345345 #050b2d
}

.modal.open .modal-panel {
    transform: translateY(0) scale(1)
}

.modal-topbar {
    height: 65px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: rgba(11,25,20,.95);
    backdrop-filter: blur(16px);
    z-index: 4
}

.modal-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 8px;
    letter-spacing: 2px;
    color: #91a59a;
    font-weight: 700
}

.modal-brand .brand-mark {
    font-size: 19px;
    width: 22px;
    height: 22px
}

.modal-top-actions {
    display: flex;
    align-items: center;
    gap: 19px
}

.modal-index {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: #70877a
}

.modal-close {
    width: 35px;
    height: 35px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #0d1940;
    color: #d9e1d9;
    font-size: 23px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s,border-color .2s,transform .2s
}

.modal-close:hover {
    background: #123e55;
    border-color: rgba(213,181,117,.6);
    transform: rotate(90deg)
}

.modal-layout {
    display: grid;
    grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr);
    gap: 0
}

.modal-media-column {
    padding: 28px 28px 30px;
    min-width: 0;
    border-right: 1px solid var(--line)
}

.modal-visual {
    position: relative;
    aspect-ratio: 1.42;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid rgba(202,223,206,.17);
    border-radius: 10px;
    background: #050b2d;
    box-shadow: 0 16px 45px rgba(0,0,0,.2)
}

.modal-visual>img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: contain;
    background: #050b2d;
    transition: opacity .18s
}

.visual-shade {
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(0deg,rgba(1,7,5,.72),transparent);
    pointer-events: none
}

.visual-label {
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: #d7e2d8;
    font-size: 8px;
    letter-spacing: 1.6px;
    display: flex;
    align-items: center;
    gap: 8px
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--mint);
    border-radius: 50%;
    box-shadow: 0 0 9px rgba(145,201,173,.6)
}

.image-controls {
    position: absolute;
    right: 13px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d5e0d6;
    font-size: 8px;
    letter-spacing: 1px
}

.image-controls button {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    border: 1px solid rgba(218,230,219,.3);
    background: rgba(7,18,13,.75);
    color: #f1d59b;
    cursor: pointer;
    transition: background .2s
}

.image-controls button:hover {
    background: #123e55
}

.gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 12px;
    font-size: 8px;
    letter-spacing: 1.7px;
    color: #9eb0a4;
    font-weight: 700
}

.gallery-heading span:last-child {
    color: #61776b;
    font-weight: 500
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 9px;
    align-items: start
}

.gallery-thumb {
    padding: 3px;
    border: 1px solid rgba(185,211,193,.14);
    background: #050b2d;
    border-radius: 7px;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
    transition: border-color .2s,transform .2s,background .2s
}

.gallery-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1.35;
    object-fit: cover;
    border-radius: 4px;
    opacity: .68;
    transition: opacity .2s
}

.gallery-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(213,181,117,.55)
}

.gallery-thumb:hover img {
    opacity: 1
}

.gallery-thumb.selected {
    border-color: var(--gold);
    background: rgba(213,181,117,.1);
    box-shadow: 0 0 0 1px rgba(213,181,117,.16)
}

.gallery-thumb.selected img {
    opacity: 1
}

.modal-content {
    padding: clamp(30px,4vw,52px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.modal-eyebrow {
    margin-bottom: 17px
}

.modal-content h2 {
    font-size: clamp(30px,3.6vw,49px);
    line-height: 1.08;
    letter-spacing: -2.4px;
    margin-bottom: 21px;
    overflow-wrap: anywhere
}

.modal-description {
    font-size: 13px;
    line-height: 1.9;
    color: #9aaba0;
    margin: 0
}

.detail-rule {
    height: 1px;
    width: 100%;
    background: var(--line);
    margin: 27px 0 22px
}

.detail-block {
    margin-bottom: 20px;
    width: 100%
}

.detail-label {
    font-size: 8px;
    letter-spacing: 1.7px;
    color: var(--gold);
    font-weight: 700
}

.detail-block p {
    font-size: 11px;
    line-height: 1.8;
    color: #9aaba0;
    margin: 8px 0 0
}

.detail-block:first-of-type p {
    color: #d8e2d9
}

.modal-actions {
    margin-top: 8px;
    width: 100%;
    display: grid;
    gap: 10px
}

.visit-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: linear-gradient(105deg,#e8d09a,#c9a666);
    color: #122017;
    text-decoration: none;
    padding: 16px 19px;
    border-radius: 6px;
    font-size: 10px;
    letter-spacing: .7px;
    font-weight: 800;
    transition: filter .2s,transform .2s
}

.visit-link:hover {
    filter: brightness(1.08);
    transform: translateY(-2px)
}

.visit-link span {
    font-size: 17px
}

.no-link-note {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.7
}

.modal-footnote {
    font-size: 9px;
    line-height: 1.6;
    color: #647b6e;
    margin: auto 0 0;
    padding-top: 28px
}

.modal-footnote span {
    color: var(--gold);
    margin-right: 7px
}

.empty-state {
    color: var(--muted);
    padding: 40px 0
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:1000px) {
    .project-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .modal-layout {
        grid-template-columns: minmax(0,1.1fr) minmax(270px,.9fr)
    }

    .modal-media-column {
        padding: 22px
    }

    .modal-content {
        padding: 28px
    }

    .modal-visual {
        min-height: 220px
    }
}

@media(max-width:760px) {
    .site-header {
        height: 66px
    }

    .header-nav {
        gap: 17px
    }

    .header-nav a:nth-child(2) {
        display: none
    }

    .projects-section {
        padding-top: 54px
    }

    .section-top {
        display: block;
        margin-bottom: 55px
    }

    .hero-aside {
        display: none
    }

    .hero-subtitle {
        font-size: 13px;
        max-width: 480px
    }

    .collection-heading {
        align-items: flex-start
    }

    .collection-heading>p {
        font-size: 10px
    }

    .modal {
        padding: 10px
    }

    .modal-panel {
        max-height: 95vh;
        border-radius: 13px
    }

    .modal-layout {
        display: flex;
        flex-direction: column
    }

    .modal-media-column {
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .modal-visual {
        aspect-ratio: 1.28;
        min-height: 0
    }

    .modal-gallery {
        grid-template-columns: repeat(5,minmax(0,1fr));
        gap: 7px
    }

    .modal-content {
        padding: 25px 22px 27px
    }

    .modal-content h2 {
        font-size: 34px
    }

    .detail-rule {
        margin: 20px 0
    }

    .detail-block {
        margin-bottom: 15px
    }

    .modal-footnote {
        padding-top: 20px
    }

    .section-bottom {
        margin-top: 45px;
        font-size: 7px;
        letter-spacing: 1.2px
    }

    .closing-note {
        padding: 40px 20px
    }
}

@media(max-width:520px) {
    .brand {
        font-size: 11px
    }

    .header-cta {
        padding: 9px 11px;
        font-size: 10px
    }

    .header-cta span {
        margin-left: 5px
    }

    .header-nav {
        display: none
    }

    h1 {
        font-size: clamp(43px,13vw,63px)
    }

    .project-grid {
        grid-template-columns: 1fr
    }

    .project-image {
        aspect-ratio: 1.5
    }

    .project-title {
        font-size: 20px
    }

    .collection-heading {
        display: block
    }

    .collection-heading>p {
        text-align: left;
        margin-top: 10px
    }

    .desktop-only {
        display: none
    }

    .section-bottom {
        flex-direction: column;
        gap: 9px
    }

    .modal {
        padding: 6px
    }

    .modal-topbar {
        padding: 0 12px
    }

    .modal-index {
        display: none
    }

    .modal-media-column {
        padding: 12px
    }

    .modal-visual {
        aspect-ratio: 1.08
    }

    .gallery-heading {
        margin-top: 17px
    }

    .modal-gallery {
        gap: 5px
    }

    .gallery-thumb {
        padding: 2px
    }

    .modal-content {
        padding: 23px 19px
    }

    .modal-content h2 {
        font-size: 30px;
        letter-spacing: -1.5px
    }

    .modal-description {
        font-size: 12px
    }

    .image-controls {
        gap: 6px
    }

    .image-controls button {
        width: 26px;
        height: 26px
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        scroll-behavior: auto!important;
        animation-duration: .01ms!important;
        transition-duration: .01ms!important
    }
}

/* Reference-inspired refinement: luminous editorial hero and a balanced luxury gallery dialog */

:root {
    --night: #020d0e;
    --line: rgba(125,177,165,.16);
    --gold: #d8b76f;
    --gold-bright: #f5d995;
    --mint: #75d6b0;
    --muted: #a7b8bf;
    --muted-2: #8a9da4;
    --ease: cubic-bezier(.22,.8,.2,1)
}

body {
    background: radial-gradient(ellipse at 78% 5%,rgba(15,74,63,.3),transparent 35%),#020b0d;
    color: #eaf0ee
}

.site-header {
    height: 70px;
    background: rgba(2,12,14,.9);
    border-bottom-color: rgba(105,168,155,.2);
    backdrop-filter: blur(18px)
}

.brand {
    font-size: 14px;
    letter-spacing: .5px
}

.brand-mark {
    filter: drop-shadow(0 0 12px #d8b76f38)
}

.projects-section {
    padding-top: 58px
}

.section-top {
    align-items: center;
    margin-bottom: 48px
}

.eyebrow {
    margin-bottom: 15px
}

h1 {
    font-size: clamp(46px,5vw,70px);
    letter-spacing: -.055em
}

h1 em {
    background-image: linear-gradient(100deg,#f4dfa9,#c3d9c9 90%)
}

.hero-subtitle {
    margin-top: 17px;
    max-width: 510px
}

.hero-aside {
    border-left-color: rgba(213,181,117,.25)
}

.collection-heading {
    padding-top: 22px;
    margin-bottom: 22px
}

.collection-heading h2 {
    font-size: clamp(25px,3vw,34px)
}

.filter-row {
    justify-content: flex-end;
    margin-top: 0;
    min-height: 45px;
    margin-bottom: 24px
}

.filter {
    padding: 10px 17px;
    border-color: rgba(113,170,159,.19);
    background: rgba(4,22,24,.65)
}

.filter.active {
    background: linear-gradient(135deg,#f4dda0,#cba45f);
    color: #13201b;
    border-color: transparent;
    box-shadow: 0 5px 22px #d8b76f28
}

.filter.active span {
    color: #263b31
}

.project-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 20px 18px
}

.project-card {
    border: 1px solid rgba(111,170,159,.16);
    border-radius: 13px;
    padding: 10px;
    background: linear-gradient(145deg,rgba(11,33,33,.72),rgba(4,16,18,.7));
    transition: border-color .3s,transform .35s,box-shadow .35s
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(216,183,111,.43);
    box-shadow: 0 18px 45px #0004
}

.project-image {
    aspect-ratio: 1.8;
    border-radius: 8px;
    border-color: rgba(152,195,182,.16)
}

.project-image img {
    object-fit: contain;
    background: #071517
}

.project-info {
    padding: 13px 3px 4px
}

.project-title {
    color: #f4f7f2;
    font-size: 16px;
    line-height: 1.35;
    text-shadow: 0 1px 10px rgba(0,0,0,.28);
}

.project-desc {
    color: #c0cec6;
    font-size: 11px;
    line-height: 1.7
}

.project-kicker {
    color: #d8e8df;
}

.project-kicker {
    background: rgba(27,101,76,.35);
    border: 1px solid rgba(91,188,145,.13);
    border-radius: 99px;
    display: inline-flex;
    padding: 5px 8px;
    margin-bottom: 8px;
    font-size: 8px
}

.open-mark {
    width: 31px;
    height: 31px
}

.closing-note {
    margin-top: 25px;
    border-top-color: var(--line)
}

/* Modal enters with a soft cinematic zoom; close animation reverses it before disappearing. */

.modal {
    padding: 22px;
    transition: opacity .3s ease,visibility .3s ease
}

.modal-backdrop {
    background: rgba(0,8,10,.78);
    backdrop-filter: blur(10px)
}

.modal-panel {
    width: min(1080px,100%);
    max-height: min(88vh,850px);
    border-radius: 16px;
    background: linear-gradient(145deg,rgba(10,28,30,.985),rgba(3,15,18,.99));
    border-color: rgba(141,192,179,.28);
    box-shadow: 0 35px 120px #000a,0 0 0 1px #d8b76f0b;
    overflow: auto;
    transform: translateY(28px) scale(.94);
    opacity: 0;
    transform-origin: center 45%;
    transition: transform .48s var(--ease),opacity .32s ease
}

.modal.open .modal-panel {
    transform: translateY(0) scale(1);
    opacity: 1
}

.modal.closing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.modal.closing .modal-panel {
    transform: translateY(22px) scale(.91);
    opacity: 0
}

.modal-topbar {
    height: 54px;
    padding: 0 23px;
    background: rgba(8,24,26,.92);
    border-bottom-color: rgba(141,192,179,.14)
}

.modal-brand {
    color: #9fb5b0
}

.modal-close {
    width: 34px;
    height: 34px;
    background: rgba(14,37,38,.9);
    border-color: rgba(141,192,179,.23);
    font-size: 24px;
    transition: transform .45s var(--ease),background .25s,border-color .25s,box-shadow .25s
}

.modal-close:hover {
    transform: rotate(180deg) scale(1.08);
    background: #244b40;
    border-color: var(--gold);
    box-shadow: 0 0 22px #d8b76f25
}

.modal-layout {
    grid-template-columns: minmax(0,1.15fr) minmax(310px,.85fr)
}

.modal-media-column {
    padding: 25px 24px;
    border-right-color: rgba(141,192,179,.15)
}

.modal-visual {
    aspect-ratio: 1.42;
    min-height: 0;
    border-radius: 10px;
    border-color: rgba(143,190,180,.24);
    background: #071719;
    box-shadow: 0 18px 48px #0005
}

.modal-visual>img {
    object-fit: contain;
    background: #071719;
    padding: 0
}

.visual-shade {
    background: linear-gradient(0deg,rgba(1,9,10,.55),transparent 65%)
}

.image-controls button {
    border-color: #8bb5aa55;
    background: #061819d9
}

.gallery-heading {
    margin-top: 21px;
    color: #b9c9c4
}

.modal-gallery {
    gap: 8px
}

.gallery-thumb {
    border-radius: 8px;
    background: #071719;
    border-color: #8bb5aa30;
    padding: 3px
}

.gallery-thumb img {
    aspect-ratio: 1.45;
    object-fit: contain;
    background: #0b1b1c;
    opacity: .8
}

.gallery-thumb.selected {
    border: 1px solid var(--gold-bright);
    box-shadow: 0 0 0 1px #f5d99525,0 0 18px #d8b76f17
}

.modal-content {
    padding: clamp(26px,3.3vw,43px);
    background: linear-gradient(145deg,rgba(9,26,27,.3),transparent)
}

.modal-eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #a9d8c8;
    margin-bottom: 16px
}

.modal-content h2 {
    font-size: clamp(30px,3.3vw,43px);
    letter-spacing: -1.9px;
    line-height: 1.12;
    margin-bottom: 17px
}

.modal-description {
    font-size: 12px;
    line-height: 1.85;
    color: #a9babd;
    overflow-wrap: anywhere
}

.detail-rule {
    background: rgba(141,192,179,.17);
    margin: 23px 0 20px
}

.detail-label {
    color: var(--gold-bright)
}

.detail-block p {
    color: #a9babd
}

.visit-link {
    background: linear-gradient(110deg,#f7e2a8,#d2ad68);
    border-radius: 99px;
    padding: 15px 19px;
    box-shadow: 0 8px 26px #d8b76f1c
}

.visit-link:hover {
    box-shadow: 0 12px 30px #d8b76f30
}

.modal-footnote {
    color: #7e9994
}

.modal-footnote span {
    color: var(--gold-bright)
}

@media(max-width:1050px) {
    .project-grid {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }

    .filter-row {
        margin-top: 0;
        justify-content: flex-start
    }

    .modal-layout {
        grid-template-columns: minmax(0,1fr) minmax(280px,.85fr)
    }
}

@media(max-width:760px) {
    .projects-section {
        padding-top: 45px
    }

    .section-top {
        margin-bottom: 35px
    }

    .project-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 14px
    }

    .modal {
        padding: 10px
    }

    .modal-panel {
        max-height: 94vh
    }

    .modal-layout {
        display: flex;
        flex-direction: column
    }

    .modal-media-column {
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .modal-content {
        padding: 25px 23px
    }

    .modal-visual {
        aspect-ratio: 1.45
    }

    .filter-row {
        margin-bottom: 22px
    }
}

@media(max-width:520px) {
    .project-grid {
        grid-template-columns: 1fr
    }

    .project-image {
        aspect-ratio: 1.7
    }

    .project-title {
        font-size: 19px
    }

    .modal {
        padding: 6px
    }

    .modal-panel {
        border-radius: 13px;
        max-height: 96vh
    }

    .modal-topbar {
        padding: 0 14px
    }

    .modal-media-column {
        padding: 12px
    }

    .modal-content {
        padding: 22px 18px
    }

    .modal-content h2 {
        font-size: 31px
    }

    .modal-visual {
        aspect-ratio: 1.2
    }

    .gallery-thumb img {
        aspect-ratio: 1.25
    }
}

@media(prefers-reduced-motion:reduce) {
    .modal-panel,.modal,.project-card,.project-image img,.modal-close {
        transition: none!important;
        animation: none!important
    }
}

/* Embedded project video playback */
.project-video {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}
.modal-media-column.video-project .modal-visual {
    aspect-ratio: 16 / 9;
    min-height: 0;
}
.modal-media-column.video-project .visual-shade,
.modal-media-column.video-project .visual-label,
.modal-media-column.video-project .image-controls { display: none; }


/* App store buttons and polished modal/gallery transitions */
.modal-actions .app-store-link {
    border-color: rgba(213,181,117,.42);
}
.modal-actions .app-store-link:hover {
    border-color: var(--gold, #d5b575);
    background: rgba(213,181,117,.10);
    transform: translateY(-2px);
}
.modal-visual #modalImage {
    transition: opacity .24s ease, transform .36s ease, filter .24s ease;
    will-change: opacity, transform;
}
.modal-visual #modalImage.image-transition-out {
    opacity: .18;
    transform: scale(1.025);
    filter: blur(3px);
}
.modal-visual #modalImage.image-transition-in {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    animation: galleryImageEnter .42s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes galleryImageEnter {
    from { opacity: .25; transform: scale(1.035); filter: blur(3px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}
.modal.open .modal-panel {
    animation: modalPanelEnter .42s cubic-bezier(.2,.75,.25,1) both;
}
.modal.closing .modal-panel {
    animation: modalPanelExit .3s ease both;
}
@keyframes modalPanelEnter {
    from { opacity: 0; transform: translateY(24px) scale(.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modalPanelExit {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(18px) scale(.975); }
}
@media (prefers-reduced-motion: reduce) {
    .modal.open .modal-panel,
    .modal.closing .modal-panel,
    .modal-visual #modalImage.image-transition-in {
        animation: none !important;
    }
    .modal-visual #modalImage { transition: none !important; }
}


/* FINAL CONTRAST PATCH: showroom headings and shared navigation */
body .hero h1,
body h1,
body .collection-heading h2,
body .modal-content h2,
body .project-title,
body .modal-panel h2,
body .project-info h2 {
    color: #f4f1e8 !important;
    -webkit-text-fill-color: #f4f1e8;
}
body h1 em {
    color: #f0d49a !important;
    background: none !important;
    -webkit-text-fill-color: #f0d49a !important;
}
body .hero-subtitle,
body .collection-heading > p,
body .hero-aside > p,
body .modal-description,
body .project-desc {
    color: #c0cec7 !important;
}
body .hero-stat span,
body .modal-eyebrow,
body .section-index,
body .project-kicker {
    color: #e0c27f !important;
}
/* Base-site navigation may load global heading/link colors after showroom styles. */
body .site-header .header-nav a,
body .site-header nav a,
body .navbar a,
body nav.navbar a,
body .main-navigation a {
    color: #e8eee9 !important;
}
body .site-header .header-nav a:hover,
body .site-header .header-nav a.nav-current,
body .site-header nav a:hover,
body .navbar a:hover,
body nav.navbar a:hover,
body .main-navigation a:hover {
    color: #12d6c4 !important;
}
body .site-header .header-cta,
body .navbar .header-cta {
    color: #f4f1e8 !important;
}


/* =====================================================
   SHOWROOM PAGE BACKGROUND — MATCH BASE WEBSITE
   Keep showroom cards and modal styling unchanged.
===================================================== */
body {
    background: #ffffff !important;
}


/* FINAL LIGHT-BACKGROUND READABILITY TUNING */
body .hero h1 {
    color: #344256 !important;
    -webkit-text-fill-color: #344256 !important;
}
body .hero h1 em {
    color: #b58a3b !important;
    -webkit-text-fill-color: #b58a3b !important;
    background: none !important;
}
body .collection-heading h2 {
    color: #344256 !important;
    -webkit-text-fill-color: #344256 !important;
}
body .hero-subtitle,
body .collection-heading > p,
body .hero-aside > p {
    color: #536273 !important;
}
body .hero-stat strong {
    color: #a77b2e !important;
}
body .hero-stat span {
    color: #657487 !important;
}

/* FINAL FIX — ensure “Digital work” is clearly readable on white */
body .hero h1 {
    color: #26364b !important;
    -webkit-text-fill-color: #26364b !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
body .hero h1 em {
    color: #b58a3b !important;
    -webkit-text-fill-color: #b58a3b !important;
    background: none !important;
    opacity: 1 !important;
}

/* =========================================================
   HOMEPAGE-MATCHED SHOWROOM THEME — FINAL OVERRIDES
   Keeps the original project data, sections, filters and modal.
   ========================================================= */
:root {
  --night: #f4faff;
  --night-2: #e7f3ff;
  --panel: #ffffff;
  --panel-soft: #edf7ff;
  --ink: #080b12;
  --muted: #526b86;
  --muted-2: #71869a;
  --line: rgba(34, 91, 132, .15);
  --gold: #00cdbb;
  --gold-bright: #00d7c4;
  --mint: #00d7c4;
}

html, body {
  background: #f4faff !important;
  color: #080b12 !important;
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif !important;
}

/* The existing Rise Tech site header remains untouched; match its white surface. */
.tp-header-top,
#header-sticky,
.tp-header-bottom,
.tp-header-area {
  background-color: #fff !important;
}

/* Portfolio canvas and airy homepage-style hero */
.projects-section {
  max-width: none !important;
  padding: 70px clamp(24px, 6.25vw, 104px) 32px !important;
  background: linear-gradient(115deg, #d9edfc 0%, #f4faff 52%, #e2f3ff 100%) !important;
  position: relative;
  isolation: isolate;
}

.projects-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 38%;
  height: 560px;
  pointer-events: none;
  opacity: .58;
  background: url("../assets/img/hero/shape-1.png") left top / 100% auto no-repeat;
}

/* A real technology-workspace image anchors the right side, like the homepage hero. */
.projects-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 47%;
  height: 520px;
  pointer-events: none;
  background:
    linear-gradient(90deg, #eaf6ff 0%, rgba(234,246,255,.68) 15%, rgba(234,246,255,.06) 48%),
    linear-gradient(0deg, rgba(219,239,255,.24), rgba(219,239,255,.08)),
    url("../assets/img/hero/hero-4.jpg") center / cover no-repeat;
  opacity: .96;
}

.hero-glow {
  width: 690px !important;
  height: 690px !important;
  left: 4% !important;
  right: auto !important;
  top: 30px !important;
  background: radial-gradient(circle, rgba(255,255,255,.88) 0 48%, rgba(255,255,255,0) 48.5%) !important;
  opacity: .9;
}

.section-top {
  min-height: 420px;
  align-items: center !important;
  gap: 40px !important;
  margin-bottom: 58px !important;
  position: relative;
}

.hero-copy { max-width: 680px; }

.eyebrow {
  color: #00bfae !important;
  font-size: 10px !important;
  letter-spacing: 2.6px !important;
  margin-bottom: 24px !important;
}
.eyebrow > span:first-child,
.eyebrow-end,
.aside-line { background: #00cdbb !important; border-color: #00cdbb !important; }

h1, h2, .collection-heading h2,
.project-title, .modal-content h2 {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif !important;
  color: #080b12 !important;
  font-weight: 800 !important;
}

h1 {
  font-size: clamp(48px, 5.8vw, 86px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.055em !important;
  max-width: 700px;
}

h1 em {
  display: inline-block;
  font-style: normal !important;
  color: #00cdbb !important;
  -webkit-text-fill-color: #00cdbb !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  position: relative;
}

h1 em::after {
  content: "";
  display: block;
  height: 3px;
  width: 72%;
  margin-top: 3px;
  background: #00cdbb;
  border-radius: 4px;
}

.hero-subtitle {
  max-width: 510px !important;
  margin-top: 22px !important;
  color: #526b86 !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
}

.hero-aside {
  align-self: center;
  min-width: 210px !important;
  border-left-color: rgba(0,143,157,.2) !important;
  padding-left: 28px !important;
  margin-right: 0;
}
.hero-aside > p { color: #526b86 !important; font-size: 10px !important; }
.hero-stat strong { color: #008f83 !important; }
.hero-stat span { color: #71869a !important; }

.collection-heading {
  padding-top: 28px !important;
  border-top-color: rgba(34,91,132,.15) !important;
  margin-bottom: 26px !important;
}
.section-index { color: #00bfae !important; }
.collection-heading h2 {
  font-size: clamp(26px, 3vw, 38px) !important;
  letter-spacing: -.055em !important;
}
.collection-heading > p { color: #526b86 !important; font-size: 12px !important; }

.filter-row { gap: 9px !important; margin-bottom: 28px !important; }
.filter {
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(36,100,145,.16) !important;
  color: #385674 !important;
  padding: 11px 17px !important;
  font-size: 12px !important;
  transition: background .2s, border-color .2s, color .2s, transform .2s !important;
}
.filter:hover, .filter.active {
  background: #00cdbb !important;
  border-color: #00cdbb !important;
  color: #fff !important;
}
.filter span { color: inherit !important; }

.project-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 30px 22px !important; }
.project-card {
  padding: 0 0 17px !important;
  background: #fff !important;
  border: 1px solid rgba(34,91,132,.11) !important;
  border-radius: 13px !important;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(36,91,132,.09) !important;
  transition: transform .28s ease, box-shadow .28s ease !important;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(36,91,132,.15) !important; }
.project-image {
  aspect-ratio: 1.53 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #dceeff !important;
}
.image-overlay { background: linear-gradient(180deg, transparent 42%, rgba(2,16,37,.56)) !important; }
.open-mark {
  background: #00cdbb !important;
  border: 0 !important;
  color: #fff !important;
}
.project-info { padding: 17px 18px 0 !important; background: #fff !important; }
.project-kicker { color: #00bfae !important; }
.project-title { color: #080b12 !important; }
.project-desc { color: #526b86 !important; }
.project-number { color: #00bfae !important; }

.section-bottom {
  border-top-color: rgba(34,91,132,.15) !important;
  color: #71869a !important;
}
.section-bottom i, .closing-star { color: #00cdbb !important; }
.closing-note {
  background: linear-gradient(135deg, #e5f3ff, #f8fcff 58%, #dcf4ff) !important;
  border-top-color: rgba(34,91,132,.15) !important;
  color: #080b12 !important;
}
.closing-note p { color: #080b12 !important; }
.closing-note p em { color: #00bfae !important; }
.closing-caption { color: #526b86 !important; }

/* Bright, legible project details dialog consistent with the light page. */
#projectModal .modal-panel { background: #f7fbff !important; color: #080b12 !important; border: 1px solid rgba(34,91,132,.16) !important; }
#projectModal .modal-topbar { background: #eaf5ff !important; border-bottom-color: rgba(34,91,132,.15) !important; }
#projectModal .modal-brand, #projectModal .modal-content h2 { color: #080b12 !important; }
#projectModal .modal-description, #projectModal .project-desc, #projectModal .modal-footnote { color: #526b86 !important; }
#projectModal .hero-stat span, #projectModal .modal-eyebrow, #projectModal .section-index, #projectModal .project-kicker { color: #00bfae !important; }
#projectModal .modal-close { color: #080b12 !important; background: #fff !important; border-color: rgba(34,91,132,.16) !important; }
#projectModal .modal-close:hover { background: #00cdbb !important; color: #fff !important; }
#projectModal .modal-footnote { border-top-color: rgba(34,91,132,.15) !important; }

@media (max-width: 1000px) {
  .projects-section { padding-top: 48px !important; }
  .section-top { min-height: 390px; }
  .projects-section::after { width: 48%; opacity: .52; }
  .hero-aside { min-width: 160px !important; }
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 700px) {
  .projects-section { padding: 42px 20px 25px !important; }
  .projects-section::after { width: 100%; height: 330px; opacity: .18; }
  .projects-section::before { width: 70%; height: 400px; }
  .section-top { min-height: 0; display: block !important; margin-bottom: 44px !important; }
  .hero-copy { max-width: 100%; }
  h1 { font-size: clamp(42px, 12vw, 64px) !important; }
  .hero-aside { display: none; }
  .collection-heading { align-items: flex-start !important; flex-direction: column; gap: 12px !important; }
  .collection-heading > p { text-align: left !important; }
  .project-grid { grid-template-columns: 1fr !important; gap: 22px !important; }
  .section-bottom { flex-direction: column; }
}


/* Requested targeted fixes: improve title contrast, keep hero still, animate CTA. */
.project-title, .project-card h3, .project-info h3 {
  color: #080b12 !important;
  -webkit-text-fill-color: #080b12 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
.project-desc, .project-info p { color: #526273 !important; opacity: 1 !important; }
.showroom-hero, .section-top, .hero-glow { animation: none !important; transition: none !important; }
.hero-glow { display: none !important; }
.tp-btn, a.tp-btn, .tp-header-btn a, a[href*="product"] {
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease !important;
}
.tp-btn:hover, a.tp-btn:hover, .tp-header-btn a:hover, a[href*="product"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 205, 187, .24);
  filter: brightness(1.04);
}
.showroom-mobile-nav {
  position: fixed; inset: 0; z-index: 99999; background: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 24px; transform: translateX(-100%); transition: transform .28s ease;
  visibility: hidden; padding: 36px;
}
.showroom-mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.showroom-mobile-nav a { color: #080b12; font-size: 24px; font-weight: 700; text-decoration: none; }
.showroom-mobile-close { position:absolute; top:18px; right:24px; border:0; background:none; color:#080b12; font-size:42px; cursor:pointer; }




/* FIX: Showroom heading colors only */
body .projects-section .hero-copy h1 {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background: none !important;
}

body .projects-section .hero-copy h1 em {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background: none !important;
}

body .projects-section .hero-copy h1 em .hero-thoughtfully {
    color: #00cdbb !important;
    -webkit-text-fill-color: #00cdbb !important;
}











/* READABILITY FIX — project details panel only */
#projectModal .modal-panel {
    background: #f7fbff !important;
    color: #172536 !important;
}

#projectModal .modal-content h2,
#projectModal .project-title,
#projectModal .modal-panel h2 {
    color: #172536 !important;
    -webkit-text-fill-color: #172536 !important;
    background: none !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

#projectModal .modal-description,
#projectModal .project-desc,
#projectModal .modal-footnote,
#projectModal .modal-content p {
    color: #425b73 !important;
    -webkit-text-fill-color: #425b73 !important;
    opacity: 1 !important;
}

#projectModal .project-kicker,
#projectModal .modal-eyebrow,
#projectModal .section-index {
    color: #009f93 !important;
    -webkit-text-fill-color: #009f93 !important;
    opacity: 1 !important;
}

#projectModal .modal-topbar {
    background: #eaf5ff !important;
}

#projectModal .modal-brand,
#projectModal .modal-index {
    color: #24384c !important;
    opacity: 1 !important;
}








/* Readability fix: project category labels only */
#projectModal .modal-eyebrow,
#projectModal .project-kicker,
#projectModal .section-index,
#projectModal .project-category,
#projectModal .project-type,
#projectModal .project-info .project-label {
    color: #007f76 !important;
    -webkit-text-fill-color: #007f76 !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}


/* Match showroom footer background to the home page footer */
.tp-footer-3-area { background-color: #020C1B !important; }
.tp-footer-3-area .tp-footer-bg { background-color: #020C1B !important; }
.tp-footer-3-area .tp-footer-bg::after { background: #020C1B !important; opacity: 0.98 !important; }
