/* project-details.css – Tafiti Project Detail Page Styles */

/* =====================================================================
   CANVAS ELEMENT ANIMATIONS — public view
   Entry: .cv-ae elements animated by IntersectionObserver in canvas-render.js
   Loop:  .cv-al-* elements animated continuously via CSS
===================================================================== */

/* Entry animation keyframes */
@keyframes pub-fadeIn    { from{opacity:0}                                                 to{opacity:1} }
@keyframes pub-slideUp   { from{opacity:0;transform:translateY(48px)}                      to{opacity:1;transform:translateY(0)} }
@keyframes pub-slideDown { from{opacity:0;transform:translateY(-48px)}                     to{opacity:1;transform:translateY(0)} }
@keyframes pub-slideLeft { from{opacity:0;transform:translateX(60px)}                      to{opacity:1;transform:translateX(0)} }
@keyframes pub-slideRight{ from{opacity:0;transform:translateX(-60px)}                     to{opacity:1;transform:translateX(0)} }
@keyframes pub-zoomIn    { from{opacity:0;transform:scale(0.55)}                           to{opacity:1;transform:scale(1)} }
@keyframes pub-zoomOut   { from{opacity:0;transform:scale(1.45)}                           to{opacity:1;transform:scale(1)} }
@keyframes pub-flip      { from{opacity:0;transform:perspective(800px) rotateY(90deg)}     to{opacity:1;transform:perspective(800px) rotateY(0)} }

/* Loop animation keyframes */
@keyframes pub-float  { 0%,100%{transform:translateY(0)}     50%{transform:translateY(-14px)} }
@keyframes pub-pulse  { 0%,100%{transform:scale(1)}          50%{transform:scale(1.07)} }
@keyframes pub-bounce { 0%,100%{transform:translateY(0)} 20%{transform:translateY(-20px)} 40%{transform:translateY(0)} 60%{transform:translateY(-10px)} 80%{transform:translateY(0)} }
@keyframes pub-shake  { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-11px)} 40%{transform:translateX(11px)} 60%{transform:translateX(-6px)} 80%{transform:translateX(6px)} }
@keyframes pub-spin   { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* Loop classes — duration is overridden by JS from data-anim-dur */
.cv-al-float  { animation: pub-float  2s   ease-in-out infinite; }
.cv-al-pulse  { animation: pub-pulse  1.5s ease-in-out infinite; }
.cv-al-bounce { animation: pub-bounce 1.2s ease-in-out infinite; }
.cv-al-shake  { animation: pub-shake  0.8s ease-in-out infinite; }
.cv-al-spin   { animation: pub-spin   2s   linear     infinite; }
:root {
    --deep-navy: #000b3c;
    --cyan-accent: #00b2ed;
    --cyan-glow: rgba(0, 178, 237, 0.25);
    --surface-light: #f8f9fa;
    --surface-white: #ffffff;
    --text-muted: #6b7280;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(0, 178, 237, 0.3);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-snappy: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 100px;
    --black: #000;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #000b3c;
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding-top: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Full-width sections */
.full-width-section {
    width: 100%;
    padding: 56px 24px;
    box-sizing: border-box;
}
.section-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Page Gallery Title */
.page-gallery-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--deep-navy);
    margin: 0;
    padding: 30px 20px 10px;
    letter-spacing: -0.01em;
}

/* 🎨 Canvas Design Section */
.canvas-design-section {
    background: #000b3c;
    position: relative;
    overflow: hidden;
    padding: 0;
}
/* Subtle grid texture */
.canvas-design-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,178,237,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,178,237,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}
/* Ambient glow top-right */
.canvas-design-section::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 178, 237, 0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
/* Full-bleed wrapper */
.cdp-full-frame {
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 0;
    box-sizing: border-box;
}
.canvas-design-frame {
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
    border-radius: 0;
    background: #000b3c;
    padding: 0;
}

/* ── Seamless page stack ── */
.cdp-vertical-stack {
    display: flex;
    flex-direction: column;
    border-radius: inherit;
    overflow: hidden;
}
.cdp-page-block {
    display: flex;
    flex-direction: column;
}

/* Each canvas frame: no individual shadow, borders handled by stack */
.canvas-design-outer {
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    position: relative;
    background: #000b3c;
    display: block;
    /* no border — pages flow as one continuous surface */
    margin-bottom: -1px; /* close sub-pixel gaps from scale rounding */
}
/* hover: subtle cyan tint on current canvas only */
.canvas-design-outer:hover {
    box-shadow: inset 0 0 0 1px rgba(0, 178, 237, 0.15);
}

.canvas-design-inner {
    display: block;
}

/* ── Page number tab – hangs from the top edge inside the canvas frame ── */
.cdp-page-tab {
    position: absolute;
    top: 0;
    left: 28px;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #050d24;
    border: 1px solid rgba(0, 178, 237, 0.4);
    border-top: none;
    color: var(--cyan-accent);
    padding: 7px 22px 8px;
    border-radius: 0;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.cdp-page-tab-num {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}
.cdp-page-tab-of {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(0, 178, 237, 0.55);
    letter-spacing: 0.1em;
    line-height: 1;
}


/* ── Floating expand icon (top-right corner of canvas, visible on hover) ── */
.cdp-expand-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: rgba(5, 13, 36, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.18s ease, background 0.18s ease, transform 0.15s ease;
}
.canvas-design-outer:hover .cdp-expand-btn {
    opacity: 1;
}
.cdp-expand-btn:hover {
    background: var(--cyan-accent);
    border-color: var(--cyan-accent);
    color: #fff;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .canvas-design-frame { border-radius: 0; padding: 0; }
    .cdp-full-frame { padding: 0; }
}


/* 📸 Gallery/Carousel */
.gallery-section {
    background: var(--deep-navy);
    padding: 48px 0 52px;
    position: relative;
    width: 100%;
    overflow: hidden;
}
.gallery-section .section-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main preview hidden (used only for zoom) */
.main-preview {
    display: none !important;
}

/* Gallery strip wrapper – holds arrows and strip */
.gallery-strip-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

/* Side arrow buttons */
.slider-btn {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 0;
    border: 2px solid var(--cyan-accent);
    background: var(--deep-navy);
    color: var(--cyan-accent);
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    line-height: 1;
    padding: 0;
    z-index: 5;
    box-shadow: 0 0 20px rgba(0, 178, 237, 0.2);
}

.slider-btn:hover {
    background: var(--cyan-accent);
    color: white;
    border-color: var(--cyan-accent);
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

/* Thumbnail strip – now inside wrapper */
.thumbnail-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 10px 4px 20px;
    width: 100%;
    max-width: 100vw;
    align-items: center;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1 1 auto;
}
.thumbnail-strip::-webkit-scrollbar {
    display: none;
}

.thumb-box {
    flex: 0 0 80%;
    max-width: 400px;
    height: 280px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: center;
    border: 3px solid transparent;
    transition: all var(--transition-smooth);
    opacity: 0.65;
    background: #1a1a3a;
    position: relative;
    flex-shrink: 0;
}
.thumb-box.active {
    border-color: var(--cyan-accent);
    opacity: 1;
    box-shadow: 0 0 30px rgba(0, 178, 237, 0.45);
    transform: scale(1.02);
    z-index: 2;
}
.thumb-box:hover {
    opacity: 0.9;
    border-color: rgba(0,178,237,0.6);
}
.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.thumb-box:hover img {
    transform: scale(1.05);
}

/* Side buttons appearance on mobile – HIDE BUTTONS ON SMALL SCREENS */
@media (max-width: 768px) {
    .slider-btn {
        display: none;
    }
    .gallery-strip-wrapper {
        gap: 0;
    }
    .thumb-box {
        flex: 0 0 85%;
        height: 240px;
    }
}

@media (min-width: 1024px) {
    .thumb-box {
        flex: 0 0 calc(25% - 12px);
        max-width: none;
        height: 300px;
    }
    .thumbnail-strip {
        justify-content: center;
        gap: 16px;
        padding: 12px 24px 24px;
    }
}
@media (min-width: 1440px) {
    .thumb-box {
        flex: 0 0 calc(20% - 12px);
        height: 320px;
    }
}

/* 📝 Info Section */
.info-section {
    background: var(--surface-white);
    padding-top: 50px;
    padding-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid #eef1f5;
}
#detail-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: var(--deep-navy);
    margin: 0 0 16px 0;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
#detail-desc {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 24px auto;
    line-height: 1.7;
}
.badges-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.project-badge {
    padding: 8px 24px;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background: #1a2a3a;
    color: white;
}
.project-badge:last-child {
    background: var(--cyan-accent);
    color: white;
}

/* SHARE BUTTON */
.share-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: transparent;
    color: var(--cyan-accent);
    border: 2px solid var(--cyan-accent);
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-smooth);
    letter-spacing: 0.02em;
    line-height: 1;
}

.share-btn:hover {
    background: var(--cyan-accent);
    color: white;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.share-btn.copied {
    background: var(--cyan-accent);
    color: white;
    border-color: var(--cyan-accent);
    pointer-events: none;
    box-shadow: var(--shadow-glow);
}

/* 🔧 Section Headings */
.section-heading {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    color: var(--deep-navy);
    margin: 0 0 32px 0;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    padding-bottom: 16px;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--cyan-accent);
    border-radius: 0;
}

/* 🎥 Demos Section */
.demos-section {
    background: #010e22;
    padding-top: 56px;
    padding-bottom: 56px;
}
.demos-section .section-heading {
    color: rgba(255, 255, 255, 0.85);
}
.demos-section .section-heading::after {
    background: var(--cyan-accent);
}
.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.demo-card {
    background: #000b3c;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 0;
    border: 1px solid rgba(0, 178, 237, 0.1);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.demo-card:hover {
    border-color: rgba(0, 178, 237, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 178, 237, 0.08);
}
.demo-card:hover .demo-thumb img,
.demo-card:hover .demo-thumb video {
    transform: scale(1.04);
}
.demo-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000b3c;
    position: relative;
    overflow: hidden;
}
.demo-thumb img,
.demo-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}
.demo-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: rgba(0, 178, 237, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    padding-left: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}
.demo-card:hover .demo-play-icon {
    opacity: 1;
}
.demo-caption {
    padding: 9px 13px;
    font-size: 0.67rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.3;
}

/* 🏆 Awards Section */
.awards-section {
    background: var(--surface-white);
}
.awards-section .section-inner > div {
    background: linear-gradient(135deg, #fffdf5 0%, #fffef9 100%);
    padding: 32px 36px;
    border-left: 5px solid #f39c12;
    border-radius: 0;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5a4a2a;
    box-shadow: var(--shadow-sm);
    position: relative;
    margin-top: 20px;
}
.awards-section .section-inner > div::before {
    content: '"';
    position: absolute;
    top: -18px;
    left: 16px;
    font-size: 5rem;
    color: rgba(243, 156, 18, 0.15);
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

/* 🔗 Links Section */
.links-section {
    background: var(--section-soft);
}
.links-section a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: rgba(0, 178, 237, 0.06);
    color: var(--cyan-accent);
    border-radius: 0;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 14px;
    margin-bottom: 14px;
    border: 1.5px solid rgba(0, 178, 237, 0.2);
    transition: all var(--transition-smooth);
    letter-spacing: 0.01em;
}
.links-section a:hover {
    background: var(--cyan-accent);
    color: #fff;
    border-color: var(--cyan-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}
/* Team Section */
.team-section {
    background: var(--background-color);
    position: relative;
    overflow: hidden;
}
.team-section::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -140px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 178, 237, 0.1) 0%, transparent 65%);
    border-radius: 0;
    pointer-events: none;
}
.team-section::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 178, 237, 0.07) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.team-section .section-heading {
    color: #fff;
}
.team-section .section-heading::after {
    background: var(--cyan-accent);
}
.team-sub-heading {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 52px 0 18px 0;
    position: relative;
    z-index: 1;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}
.team-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover {
    border-color: rgba(0, 178, 237, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 178, 237, 0.1);
}
.team-photo {
    width: 52px;
    height: 52px;
    border-radius: 0;
    overflow: hidden;
    background: #000b3c;
    flex-shrink: 0;
    border: 2px solid rgba(0, 178, 237, 0.25);
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.35s ease;
}
.team-card:hover .team-photo img {
    transform: scale(1.08);
}
.team-photo-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: rgba(0, 178, 237, 0.8);
    background: var(--background-color, #000b3c);
    font-family: 'Poppins', sans-serif;
}
.team-body {
    flex: 1;
    min-width: 0;
    padding: 0;
}
.team-name {
    margin: 0 0 2px 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.team-role {
    margin: 0 0 6px 0;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.team-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--cyan-accent);
    letter-spacing: 0.04em;
    transition: gap 0.2s ease;
}
.team-card:hover .team-link {
    gap: 7px;
}

/* 🖼️ Modal */
#media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}
#modal-content-container {
    max-width: 92%;
    max-height: 92vh;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
#modal-content-container img,
#modal-content-container video,
#modal-content-container iframe {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 0;
    display: block;
}
#modal-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: white;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    z-index: 3010;
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-snappy);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
#modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ── Floating side dock (share) ── */
.cdp-side-dock {
    position: fixed;
    right: 20px;
    bottom: 78px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cdp-dock-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--deep-navy);
    border: 1.5px solid rgba(0, 178, 237, 0.45);
    color: var(--cyan-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-snappy);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 178, 237, 0.15);
}
.cdp-dock-btn:hover,
.cdp-dock-btn.copied {
    background: var(--cyan-accent);
    border-color: var(--cyan-accent);
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

/* ── Info section ── */
.info-section {
    background: #ffffff;
    padding: 52px 24px 44px;
    text-align: center;
    border-bottom: 1px solid #eef1f5;
}
#detail-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--deep-navy);
    margin: 0 0 14px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
#detail-desc {
    font-size: 1.1rem;
    color: #555;
    max-width: 760px;
    margin: 0 auto 24px;
    line-height: 1.75;
}

/* ── Link cards ── */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 680px;
}
.proj-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(0, 178, 237, 0.05);
    border: 1px solid rgba(0, 178, 237, 0.18);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-snappy);
    gap: 12px;
}
.proj-link-card:hover {
    background: rgba(0, 178, 237, 0.1);
    border-color: rgba(0, 178, 237, 0.45);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 178, 237, 0.12);
}
.link-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan-accent);
    min-width: 0;
}
.link-card-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--deep-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.link-card-domain {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Awards ── */
.awards-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #5a4a2a;
    font-style: italic;
    background: linear-gradient(135deg, #fffdf5, #fffef9);
    border-left: 5px solid #f39c12;
    border-radius: 0;
    padding: 28px 32px;
    margin-bottom: 28px;
    position: relative;
}
.awards-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.award-img-item {
    border-radius: 0;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: var(--shadow-sm);
}
.award-img-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ── Section animate (fade-in on scroll) ── */
.section-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-animate.in-view {
    opacity: 1;
    transform: none;
}

/* ── Large screen: maximise canvas, reduce gutters ── */
@media (min-width: 1280px) {
    .full-width-section {
        padding: 64px 32px;
    }
    .full-width-section.canvas-design-section {
        padding: 0;
    }
    .cdp-full-frame {
        padding: 0;
    }
    .demos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}
@media (min-width: 1600px) {
    .full-width-section {
        padding: 72px 40px;
    }
    .full-width-section.canvas-design-section {
        padding: 0;
    }
    .cdp-full-frame {
        padding: 0;
    }
    .demos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .full-width-section {
        padding: 40px 4%;
    }
    .full-width-section.canvas-design-section {
        padding: 0;
    }
    .canvas-design-frame {
        border-radius: 0;
        padding: 0;
    }
    .cdp-full-frame {
        padding: 0;
    }
    .canvas-design-section::before,
    .canvas-design-section::after {
        display: none;
    }
    #detail-title {
        font-size: 1.9rem;
    }
    .section-heading {
        font-size: 1.4rem;
        gap: 10px;
    }
    .demos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .info-section {
        padding: 40px 4% 36px;
    }
    .links-list {
        max-width: 100%;
    }
    .awards-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ── Canvas shimmer (dark) ── */
@keyframes shimmer-dark {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.svc-shimmer-wrap {
    min-height: 72vh;
    background: #000b3c;
    padding: 48px 24px;
    box-sizing: border-box;
}
.svc-shimmer-bar {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 400% 100%;
    animation: shimmer-dark 1.6s ease infinite;
    display: block;
}

/* ── Linked team member cards (horizontal, circular avatar) ── */
.linked-member-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.linked-member-card:hover {
    border-color: rgba(0, 178, 237, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 178, 237, 0.1);
}
.linked-member-avatar {
    width: 52px;
    height: 52px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    background: #000b3c;
    border: 2px solid rgba(0, 178, 237, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.linked-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.lm-initial {
    font-size: 1.2rem;
    font-weight: 900;
    color: rgba(0, 178, 237, 0.8);
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}
.linked-member-info {
    flex: 1;
    min-width: 0;
}
.lm-name {
    margin: 0 0 2px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lm-role {
    margin: 0 0 6px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lm-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--cyan-accent);
    letter-spacing: 0.04em;
    transition: gap 0.2s ease;
}
.linked-member-card:hover .lm-link {
    gap: 7px;
}

/* ── Linked items section (projects / services / news) ── */
.linked-items-section {
    background: #f8fafc;
}
.linked-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.linked-item-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8edf3;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.linked-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.09);
    border-color: rgba(0,178,237,0.35);
}
.linked-item-thumb {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: #e2e8f0;
    position: relative;
    flex-shrink: 0;
}
.linked-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}
.linked-item-card:hover .linked-item-thumb img {
    transform: scale(1.05);
}
.linked-item-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000b3c 0%, #0c2461 100%);
    font-size: 1.4rem;
}
.linked-item-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.linked-item-type {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan-accent);
    background: rgba(0,178,237,0.08);
    border-radius: 0;
    padding: 1px 5px;
    align-self: flex-start;
}
.linked-item-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--deep-navy);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.linked-item-desc {
    margin: 0;
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.linked-item-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--cyan-accent);
    letter-spacing: 0.03em;
    transition: gap 0.2s ease;
}
.linked-item-card:hover .linked-item-cta {
    gap: 7px;
}

@media (max-width: 480px) {
    #detail-title {
        font-size: 1.7rem;
    }
    .section-heading {
        font-size: 1.25rem;
    }
    .thumb-box {
        flex: 0 0 90%;
        height: 200px;
    }
    .team-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .awards-images-grid {
        grid-template-columns: 1fr;
    }
    .cdp-side-dock {
        right: 14px;
        bottom: 78px;
    }
    .linked-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}