/* Swipeclock / IRIS portfolio case studies — shared layout & components */

:root {
    --sc-navy: #003C5E;
    --sc-blue: #2196f3;
    --sc-lblue: #64b5f6;
    --sc-orange: #ff9800;
    --sc-surface: #ffffff;
    --sc-muted: #5f6b7a;
    --sc-border: rgba(0, 60, 94, 0.12);
    --reveal-distance: 28px;
}

/* ----- Page chrome ----- */
.sc-page {
    overflow-x: hidden;
}

.sc-breadcrumb .nav-wrapper {
    padding: 20px 0 0;
    font-size: 18px;
}

.sc-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sc-orange);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sc-section {
    padding: 2.75rem 0;
}

.sc-section-title {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.sc-section-lead {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2rem;
    color: var(--sc-muted);
}

.sc-divider {
    margin: 0 auto 2rem;
    width: 40px;
    border-color: rgba(0, 0, 0, 0.25);
    opacity: 1;
}

.sc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 60, 94, 0.08);
    color: var(--sc-navy);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.25rem;
}

.sc-pill i {
    color: #ffab40;
}

.sc-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.sc-shot {
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 60, 94, 0.15);
    width: 100%;
    height: auto;
}

.sc-shot-frame {
    position: relative;
    border-radius: 0.85rem;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 12px 32px rgba(0, 60, 94, 0.2);
    line-height: 0;
}

.sc-shot-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

.sc-caption {
    font-size: 0.9rem;
    color: var(--sc-muted);
    text-align: center;
    margin-top: 0.75rem;
}

.sc-role-banner {
    background: linear-gradient(135deg, #003C5E 0%, #0a557f 55%, #145a8a 100%);
    color: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 20px rgba(0, 60, 94, 0.25);
}

.sc-role-banner code {
    color: #ffd8a6;
}

.sc-role-banner h5 {
    color: #fff;
    text-align: left;
    text-transform: none;
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.sc-role-banner p {
    margin: 0;
    opacity: 0.92;
}

.sc-role-banner .sc-pill {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sc-role-banner .sc-pill i {
    color: #ffab40;
}

.sc-feature-card {
    height: 100%;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: 0.75rem;
    padding: 1.35rem 1.25rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sc-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 60, 94, 0.12);
}

.sc-feature-card .icon-wrap {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 60, 94, 0.1);
    color: #003C5E;
    margin-bottom: 0.85rem;
    font-size: 1.15rem;
}

.sc-feature-card h6 {
    margin: 0 0 0.5rem;
    font-weight: 600;
    color: var(--sc-navy);
    text-transform: none;
    text-align: left;
}

.sc-feature-card p {
    margin: 0;
    color: var(--sc-muted);
    font-size: 0.95rem;
}

.sc-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sc-meta-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--sc-border);
}

.sc-meta-list li:last-child {
    border-bottom: none;
}

.sc-meta-list i {
    color: #003C5E;
    margin-top: 0.2rem;
}

.sc-note {
    background: rgba(100, 181, 246, 0.12);
    border-left: 4px solid var(--sc-lblue);
    padding: 1rem 1.15rem;
    border-radius: 0 0.5rem 0.5rem 0;
    color: var(--sc-muted);
    font-size: 0.95rem;
}

/* ----- Concept B: visual tour ----- */
.sc-visual-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center top;
    background-color: #0b1f2e;
}

.sc-visual-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 30, 48, 0.35) 0%, rgba(0, 30, 48, 0.88) 100%);
}

.sc-visual-hero .hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3rem 0 2.5rem;
    color: #fff;
}

.sc-visual-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sc-visual-hero p {
    max-width: 36rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

.sc-widget-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.sc-widget-tile {
    text-align: center;
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: 0.75rem;
    padding: 1.1rem 0.75rem;
}

.sc-widget-tile i {
    font-size: 1.35rem;
    color: var(--sc-blue);
    margin-bottom: 0.45rem;
    display: block;
}

.sc-widget-tile span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sc-navy);
}

/* ----- Concept C: narrative ----- */
.sc-chapter {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.sc-chapter-num {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--sc-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 6px 16px rgba(0, 60, 94, 0.25);
}

.sc-chapter h5 {
    text-align: left;
    text-transform: none;
    margin: 0.35rem 0 0.75rem;
    color: var(--sc-navy);
}

.anim-timeline {
    position: relative;
    padding-left: 1.5rem;
    margin: 1.5rem 0 0;
}

.anim-timeline::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 2px;
    background: linear-gradient(180deg, var(--sc-lblue), var(--sc-navy));
}

.anim-timeline-item {
    position: relative;
    padding: 0 0 1.35rem 0.75rem;
}

.anim-timeline-item::before {
    content: "";
    position: absolute;
    left: -1.28rem;
    top: 0.45rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--sc-orange);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--sc-orange);
}

.anim-timeline-item h6 {
    margin: 0 0 0.35rem;
    text-align: left;
    text-transform: none;
    font-weight: 600;
    color: var(--sc-navy);
}

.anim-timeline-item p {
    margin: 0;
    color: var(--sc-muted);
}

/* ----- Concept D: tabs adaptation ----- */
.sc-tabs-hero .name-wrapper h3 {
    letter-spacing: 0.02em;
}

.sc-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.sc-stat {
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: 0.75rem;
    padding: 1.15rem;
    text-align: center;
}

.sc-stat .value {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--sc-navy);
    line-height: 1.2;
}

.sc-stat .label {
    font-size: 0.85rem;
    color: var(--sc-muted);
    margin-top: 0.25rem;
}

/* Animations live in /css/animations.css + /js/animations.js */

@media screen and (max-width: 768px) {
    .sc-visual-hero {
        min-height: 360px;
    }

    .sc-chapter {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Keep carousel images clipped to the rounded frame (no corner bleed) */
.carousel-inner.rounded-5 {
    overflow: hidden;
}

.carousel-inner.rounded-5 .carousel-item img {
    border-radius: inherit;
}
