/* Shared styles for every project page (projects/*.html).
   Page-specific tweaks stay in each page's <style> block, which loads after this file. */

/* Screenshot grid and cards (base; adjusted further below) */
.screen-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
@media (min-width: 641px) {
    .screen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.screen-card {
    background: #F7F7F7;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}
.screen-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 14px;
    display: block;
    background: transparent;
    transition: transform 0.60s cubic-bezier(0,0,0.2,1);
}
.screen-card:hover img {
    transform: scale(1.08);
}
.screen-card:focus {
    outline: 2px solid #b7b7b7;
}

html,
body {
    overflow-x: hidden;
}
.header-row-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 80px;
    margin-bottom: 28px;
}
.header-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.22;
    color: #141414;
}
.header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.header-tags span {
    background: #ededed;
    color: #2f2f2f;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.header-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
    align-items: stretch;
}
.header-left {
    display: flex;
}
.header-left .header-cell {
    width: 100%;
    flex: 1;
}
.header-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.header-right .header-cell {
    flex: 1;
}
.header-left .header-cell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    background: transparent;
}
.header-row-3 {
    display: block;
    margin-bottom: 48px;
}
.header-cell {
    background: #F0F0F0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
}
.header-right .header-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.header-description {
    font-size: 1.08rem;
    font-weight: 400;
    color: #4a4a4a;
    line-height: 1.85;
}
.header-cell img {
    width: 40%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}
.header-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.header-links-label {
    font-weight: 600;
    font-size: 1rem;
    color: #141414;
    margin-bottom: 4px;
}
@media (max-width: 640px) {
    .header-row-1 {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 40px;
    }
}
.header-link-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}
@media (max-width: 640px) {
    .header-tags {
        justify-content: flex-start;
    }
}
.header-link-icons a {
    display: inline-flex;
}
.header-link-icons img {
    width: 28px;
    height: 28px;
}
.header-disclaimer {
    font-size: 0.82rem;
    color: rgb(160,160,160);
    line-height: 1.5;
}
.header-disclaimer strong {
    color: #141414;
    font-weight: 600;
}
.proj-meta-card {
    border-top: 1px solid #e3e3e3;
    border-bottom: 1px solid #e3e3e3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    margin-bottom: 32px;
    margin-top: 40px;
}
.proj-meta-col {
    padding: 20px 16px;
    margin-top: 14px;
    margin-bottom: 14px;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid #e3e3e3;
    box-sizing: border-box;
}
.proj-meta-col:last-child {
    border-right: none;
}
@media (max-width: 640px) {
    .header-row-2 {
        grid-template-columns: 1fr;
    }
}
.proj-meta-label {
    font-size: 0.88rem;
    font-weight: 400;
    color: #a0a0a0;
    line-height: 1.5;
}
@media (max-width: 640px) {
    .header-left .header-cell {
        aspect-ratio: 16 / 10;
    }
}
.proj-meta-value {
    font-size: 0.96rem;
    font-weight: 400;
    color: #141414;
    line-height: 1.3;
}
@media (max-width: 640px) {
    .header-right {
        flex-direction: row;
        gap: 10px;
    }
}
.overview-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #141414;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-top: 48px;
    margin-bottom: 20px;
}
@media (max-width: 640px) {
    .header-right .header-cell {
        flex: 1;
    }
    .proj-meta-card {
        grid-template-columns: 1fr;
        border-radius: 0px;
        padding: 0px;
    }
    .proj-meta-col {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid #e3e3e3;
        padding: 16px 0px;
        gap: 8px;
        margin-top: 0;
        margin-bottom: 0;
        margin-left: 0px;
    }
    .proj-meta-label {
        margin-left: 16px;
    }
    .proj-meta-value {
        margin-right: 16px;
    }
    .proj-meta-col:last-child {
        border-bottom: none;
    }
    .overview-title {
        font-size: 1.15rem;
        margin-bottom: 16px;
        margin-top: 28px;
    }
}
.screen-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 24px;
    row-gap: 14px;
    margin-bottom: 32px;
}
@media (min-width: 641px) {
    .screen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.cs-wrap {
    max-width: 800px;
    margin: 72px auto 80px;
    padding: 0;
}
.screen-card {
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 480px;
    align-items: stretch;
}
.screen-card.span {
    grid-column: 1 / -1;
}
.cs-section {
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid #ebebeb;
}
.screen-card .screen-media {
    padding: 36px;
    box-sizing: border-box;
    display: flex;
    position: relative;
    height: 480px;
    background: transparent;
}
.cs-section--last {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.screen-card.full-bleed .screen-media {
    padding: 0 !important;
    border-radius: 14px;
    overflow: hidden;
}
.cs-h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #141414;
    margin: 0 0 40px;
    line-height: 1.2;
}
.screen-card.full-bleed .screen-media::before {
    border-radius: 14px;
}
.cs-h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #141414;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}
.project-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 40px 6px 18px;
}
.screen-card.full-bleed .screen-media img {
    border-radius: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cs-p {
    font-size: 1.08rem;
    color: #4a4a4a;
    line-height: 1.8;
    margin: 0 0 16px;
}
.project-topbar .circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    border: 1px solid #e3e3e3;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, border-color 0.08s;
    cursor: pointer;
}
.cs-p--label {
    font-weight: 600;
    color: #141414;
    margin-top: 20px;
    margin-bottom: 10px;
}
@media (max-width: 640px) {
    .header-main-img {
        padding: 48px !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
        background: #F0F0F0 !important;
        display: block;
        width: 100%;
    }
}
.cs-highlight {
    color: #141414;
    font-weight: 500;
}
.project-topbar .arrow {
    width: 22px;
    height: 22px;
    color: #2f2f2f;
    transition: color 0.18s;
    display: inline-block;
}
.phone-video-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}
.screen-card .screen-media::before {
    content: "";
    position: absolute;
    inset: 0px;
    border-radius: 14px;
    background: #F7F7F7;
    z-index: 1;
    box-shadow: none;
}
.cs-list {
    margin: 0 0 14px 0;
    padding-left: 20px;
}
.project-topbar .arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}
.phone-frame {
    width: 220px;
    aspect-ratio: 9 / 19.5;
    border-radius: 40px;
    overflow: hidden;
    border: 8px solid #e3e3e3;
}
.cs-list li {
    font-size: 1.08rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 4px;
}
.screen-card .screen-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 14px;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0,0,0.2,1);
    background: transparent;
    box-shadow: none;
}
.cs-list--pain li::marker {
    color: #f97316;
}
.project-topbar .project-text {
    font-size: 1.0rem;
    font-weight: 500;
    color: #6f6f6f;
    transition: color 0.18s;
    cursor: pointer;
}
.cs-callout--success {
    border-left-color: #22c55e;
    background: #f0fdf4;
}
@media (max-width: 640px) {
    .phone-frame {
        width: 240px;
        border-radius: 34px;
    }
}
.cs-callout {
    background: #f5f5f5;
    border-left: 3px solid #141414;
    border-radius: 0 10px 10px 0;
    padding: 16px 22px;
    font-size: 1.05rem;
    color: #2f2f2f;
    line-height: 1.8;
    margin-top: 20px;
}
.header-hero-video {
    background: #F0F0F0;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 24px;
    position: relative;
}
.project-topbar .top-tag {
    border: 1px solid #e3e3e3;
    background: transparent;
    color: #6f6f6f;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    cursor: pointer;
}
@media (max-width: 640px) {
    .phone-frame video {
        border-radius: 24px;
    }
}
.cs-tag {
    display: inline-flex;
    align-items: center;
    background: #ebebeb;
    color: #2f2f2f;
    border-radius: 6px;
    padding: 2px 9px;
    font-size: 0.82rem;
    font-weight: 500;
    margin: 2px 2px;
}
.header-hero-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}
.project-topbar .top-tag:hover,
.project-topbar .top-tag:focus {
    color: #141414;
    border-color: #d0d0d0;
    outline: none;
}
@media (max-width: 640px) {
    .header-hero-video {
        border-radius: 14px;
    }
}
.cs-tag--green {
    background: #dcfce7;
    color: #166534;
}
.project-topbar .circle:hover,
.project-topbar .circle:focus,
.project-topbar.hovering .circle {
    background: #141414;
    border-color: transparent;
}
.cs-tag--blue {
    background: #dbeafe;
    color: #1e40af;
}
.cs-tag--orange {
    background: #ffedd5;
    color: #9a3412;
}
.project-topbar .circle:hover .arrow,
.project-topbar .circle:focus .arrow,
.project-topbar.hovering .circle .arrow {
    color: #fff;
}
.cs-meta-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 18px;
}
.project-topbar .circle:focus {
    outline: 2px solid rgba(0,0,0,0.06);
}
.project-topbar .top-right-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
/* Action buttons (View Website / Code / Behance / Play Store); icons are added by js/project.js */
.project-topbar a.top-tag {
    text-decoration: none;
}
.cs-meta-item {
    display: flex;
    gap: 12px;
    align-items: baseline;
}
.cs-meta-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #a0a0a0;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.project-topbar .project-text:hover,
.project-topbar .project-text:focus,
.project-topbar.hovering .project-text {
    color: #141414;
}
.cs-meta-value {
    font-size: 1.05rem;
    color: #141414;
    font-weight: 500;
}
.phone-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 24px;
}
.cs-persona-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.cs-persona {
    background: #f7f7f7;
    border-radius: 16px;
}
.cs-persona-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #141414;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cs-persona-name {
    font-size: 1rem;
    font-weight: 700;
    color: #141414;
}
.cs-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
}
.cs-persona-role {
    font-size: 0.85rem;
    color: #888;
}
.cs-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
}
.cs-flow-step {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f7f7f7;
    border-radius: 10px;
    padding: 13px 18px;
    font-size: 0.95rem;
    color: #2f2f2f;
    line-height: 1.5;
}
.cs-flow-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a0a0a0;
    min-width: 26px;
    letter-spacing: 0.04em;
}
@media (max-width: 640px) {
    .cs-two-col {
        grid-template-columns: 1fr;
    }
    .cs-wrap {
        margin-top: 48px;
    }
}
.cs-flow-arrow {
    text-align: center;
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1;
    padding: 2px 0;
    margin-left: 30px;
}
