body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', 'Times New Roman', serif;
}

html {
    scroll-behavior: smooth;
}

#nav-shell {
    /* Default (top of page): blurred gradient bar over hero */
    backdrop-filter: blur(18px);
}

#nav-shell.nav-scrolled {
    /* Scrolled state: solid dark bar, no blur */
    background: #020617e7; /* tailwind slate-950 style */
    border-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: none;
}

.text-ff6602 {
    color: #ff6602;
    font-weight: 600 !important;
}

.text-ff6602:hover {
    color: #ff6602;
    font-weight: 600 !important;
}

.text-ff6602:active {
    color: #ff6602;
    font-weight: 600 !important;
}

.text-ff6602:focus {
    color: #ff6602; 
    font-weight: 600 !important;
}

/* Portfolio detail page: header is always dark blue with white nav */
body.page-portfolio-detail #nav-shell {
    background: #0f172a;
    backdrop-filter: none;
    border-color: rgba(15, 23, 42, 0.9);
}

/* Team profile pages: dark nav over banner, white logo */
body.page-team-profile #nav-shell {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: none;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Portfolio detail: modern slider */
.portfolio-slider-modern {
    --slider-accent: #1e3a5f;
    --slider-radius: 1rem;
}
.portfolio-slider-modern .slider-hero {
    position: relative;
    border-radius: var(--slider-radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0f172a;
}
.portfolio-slider-modern .slider-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}
.portfolio-slider-modern .slider-hero img.is-fading {
    opacity: 0;
}
.portfolio-slider-modern .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a5f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
    opacity: 0.9;
}
.portfolio-slider-modern .slider-arrow:hover {
    background: #fff;
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}
.portfolio-slider-modern .slider-arrow.prev { left: 12px; }
.portfolio-slider-modern .slider-arrow.next { right: 12px; }
.portfolio-slider-modern .slider-arrow .material-icons { font-size: 24px; }
.portfolio-slider-modern .slider-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.portfolio-slider-modern .slider-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}
.portfolio-slider-modern .slider-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.portfolio-slider-modern .slider-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #e2e8f0;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.portfolio-slider-modern .slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-slider-modern .slider-thumb:not(.active) {
    opacity: 0.65;
}
.portfolio-slider-modern .slider-thumb:hover {
    opacity: 1;
}
.portfolio-slider-modern .slider-thumb.active {
    opacity: 1;
    border-color: var(--slider-accent);
    box-shadow: 0 0 0 1px var(--slider-accent);
}
.portfolio-slider-modern .slider-progress-wrap {
    margin-top: 14px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.portfolio-slider-modern .slider-progress-fill {
    height: 100%;
    background: var(--slider-accent);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Portfolio detail: alternate slider (counter, bottom arrows, outline tags, numbered thumbs, pill dots) */
.portfolio-slider-alt {
    --alt-accent: #1e3a5f;
}
.portfolio-slider-alt .slider-hero {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0f172a;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.portfolio-slider-alt .slider-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.35s ease;
}
.portfolio-slider-alt .slider-hero img.is-fading {
    opacity: 0;
}
.portfolio-slider-alt .slider-counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 4;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
}
.portfolio-slider-alt .slider-arrow {
    position: absolute;
    bottom: 14px;
    z-index: 5;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: var(--alt-accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}
.portfolio-slider-alt .slider-arrow:hover {
    background: #fff;
    transform: scale(1.03);
}
.portfolio-slider-alt .slider-arrow.prev { left: 14px; }
.portfolio-slider-alt .slider-arrow.next { right: 14px; }
.portfolio-slider-alt .slider-arrow .material-icons { font-size: 20px; }
.portfolio-slider-alt .slider-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.portfolio-slider-alt .slider-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.portfolio-slider-alt .slider-thumbs-wrap {
    margin-top: 14px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.portfolio-slider-alt .slider-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.portfolio-slider-alt .slider-thumb {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #e2e8f0;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.portfolio-slider-alt .slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-slider-alt .slider-thumb-num {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portfolio-slider-alt .slider-thumb.active {
    border-color: var(--alt-accent);
    box-shadow: 0 0 0 1px var(--alt-accent);
}
.portfolio-slider-alt .slider-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
}
.portfolio-slider-alt .slider-arrow-out {
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.portfolio-slider-alt .slider-arrow-out:hover {
    background: #f8fafc;
    border-color: var(--alt-accent);
    color: var(--alt-accent);
}
.portfolio-slider-alt .slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}
.portfolio-slider-alt .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #cbd5e1;
    transition: background 0.2s ease, transform 0.2s ease;
}
.portfolio-slider-alt .slider-dot.active {
    background: var(--alt-accent);
    transform: scale(1.2);
}
.portfolio-slider-alt .slider-dot:hover:not(.active) {
    background: #94a3b8;
}

/* Portfolio detail: new gallery-style slider (thumbs first, segmented progress, clean control bar) */
.portfolio-slider-new {
    --new-accent: #1e3a5f;
}
.portfolio-slider-new .slider-hero {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0f172a;
}
.portfolio-slider-new .slider-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}
.portfolio-slider-new .slider-hero img.is-fading {
    opacity: 0;
}
/* Thumbnails: card strip under hero */
.portfolio-slider-new .slider-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 4px 0 8px;
}
.portfolio-slider-new .slider-thumb {
    flex-shrink: 0;
    width: 88px;
    height: 58px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #fff;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.portfolio-slider-new .slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-slider-new .slider-thumb:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.portfolio-slider-new .slider-thumb.active {
    border-color: var(--new-accent);
    box-shadow: 0 0 0 1px var(--new-accent), 0 2px 8px rgba(0, 0, 0, 0.12);
}
/* Control bar: tags | segments | prev/next */
.portfolio-slider-new .slider-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.portfolio-slider-new .slider-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.portfolio-slider-new .slider-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: #e0e7ff;
    color: #3730a3;
}
.portfolio-slider-new .slider-segments {
    display: flex;
    gap: 6px;
    align-items: center;
}
.portfolio-slider-new .slider-seg {
    width: 28px;
    height: 4px;
    border-radius: 4px;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #e2e8f0;
    transition: background 0.2s ease;
}
.portfolio-slider-new .slider-seg.active {
    background: var(--new-accent);
}
.portfolio-slider-new .slider-seg:hover:not(.active) {
    background: #cbd5e1;
}
.portfolio-slider-new .slider-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.portfolio-slider-new .slider-nav-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.portfolio-slider-new .slider-nav-btn:hover {
    background: #f8fafc;
    border-color: var(--new-accent);
    color: var(--new-accent);
}
.portfolio-slider-new .slider-nav-btn .material-icons { font-size: 18px; }