/* The studio's cover edition. A single responsive crop is shared by the archives. */
.ocean main:is(.studio-layout, .project-index, .project-case, .mag-index, .mag-detail) {
    --cover-radius: 10px;
    --card-gap: clamp(18px, 2.7vw, 38px);
}

.oc-home .oc-hero {
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    gap: clamp(22px, 4vw, 58px);
    padding-block: clamp(32px, 4.1vw, 65px);
}
.oc-home .oc-hero-copy .oc-deck {
    max-width: 48ch;
    margin-block: .8em 0;
    line-height: 1.8;
}
.oc-home .oc-hero-media {
    isolation: isolate;
    align-self: center;
    overflow: visible;
}
.oc-home .oc-hero-media::before {
    inset: 26% 10% 15%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--ocean) 17%, transparent), transparent 71%);
}
.oc-home .oc-hero-media picture {
    display: block;
    width: 100%;
}
.oc-home .oc-hero-media img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}
html[lang="fa"] .studio-layout.oc-home .oc-hero-copy h1 {
    letter-spacing: normal;
    line-height: 1.36;
}
.oc-home .oc-hero-copy .button-row { flex-wrap: wrap; }
.oc-home .oc-work-grid { gap: var(--card-gap); }

main:is(.project-index, .project-case) .ocean-project-card .project-media,
.ocean .studio-layout .st-work-media.photo img,
.mag-index .mag-issue .mag-tile:not(.mag-lead) .mag-tile-media,
.mag-detail .mag-tile .mag-tile-media,
.mag-index .mag-feature .mag-lead .mag-tile-media,
.studio-layout .svc-poster {
    aspect-ratio: 16 / 9;
    border-radius: var(--cover-radius);
    overflow: hidden;
}
.ocean .st-work-media.photo img,
main:is(.project-index, .project-case) .ocean-project-card .project-media img,
.studio-layout .svc-poster img,
.mag-index .mag-issue .mag-tile .oc-journal-photo img,
.mag-detail .mag-tile .mag-tile-media img {
    width: 100%;
    max-height: none;
    display: block;
    object-fit: cover;
}
main:is(.project-index, .project-case) .ocean-project-card .project-caption { gap: 5px; }
main:is(.project-index, .project-case) .ocean-project-card .project-meta {
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}
main:is(.project-index, .project-case) .ocean-project-card .project-meta .badge {
    position: static;
    margin: 0;
}
main:is(.project-index, .project-case) .ocean-project-card .project-caption h3,
.studio-layout .st-work-caption h3,
.mag-index .mag-issue .mag-tile .mag-tile-body h2,
.svc-subgrid .svc-card h3 {
    margin-block: .15em .25em;
    font-size: clamp(1.18rem, 1.48vw, 1.48rem);
    line-height: 1.52;
    overflow-wrap: break-word;
}
.project-card .project-caption .project-summary,
.svc-subgrid .svc-card p,
.studio-layout .st-product-row > div > p {
    line-height: 1.8;
    font-size: 1rem;
    max-width: 57ch;
}
main.mag-index .mag-issue .mag-lead .mag-tile-body h2 {
    font-size: clamp(1.42rem, 2.12vw, 2.15rem);
    line-height: 1.5;
}
.mag-index .mag-feature .mag-lead > a { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.mag-index .mag-feature .mag-lead .mag-tile-body { min-width: 0; }
.mag-index .mag-feature .mag-lead .mag-tile-body p { margin-block: .4em 1em; }
.mag-index .mag-grid, .mag-detail .mag-grid { gap: var(--card-gap); }
.mag-index .mag-issue .mag-tile .mag-meta, .mag-detail .mag-tile .mag-meta { padding-block-start: .65rem; }
.mag-detail .mag-cover.oc-journal-photo img {
    aspect-ratio: auto;
    max-height: none;
    width: min(100%, 900px);
    height: auto;
    margin-inline: auto;
}
.mag-detail .mag-cover.oc-journal-photo figcaption { text-align: center; }

main.st-app-page .st-product-list .st-product-row {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    padding: clamp(20px, 3vw, 34px) 0;
    margin-inline: 0;
    width: 100%;
    max-width: none;
    gap: clamp(20px, 4.6vw, 64px);
    border: 0;
    border-block-start: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
main.st-app-page .st-product-row .application-cover {
    display: block;
    width: 100%;
    max-height: none;
    padding: 0;
    border-radius: var(--cover-radius);
    overflow: hidden;
}
.studio-layout .st-product-row .st-product-title { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .85rem; }
.studio-layout .st-product-row .st-product-title h3 { margin: 0; font-size: clamp(1.3rem, 2.25vw, 1.95rem); }
main.st-app-page .st-product-row > div > p { margin-block: .6rem .85rem; }
.ocean .studio-layout .st-product-hero > :is(div, figure) { min-width: 0; }
.ocean .studio-layout .st-product-hero > figure { margin: 0; }
main.project-case .project-case-hero:has(.project-cover) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
main.project-case .project-case-hero .project-cover > img.project-photo,
.st-app-page .st-product-hero .application-cover > img.application-cover-photo {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: var(--cover-radius);
}
@media (min-width: 1000px) {
    main.project-index .project-grid,
    main.project-case .project-grid,
    .mag-index .mag-grid,
    .mag-detail .mag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .oc-home .oc-hero,
    main.project-case .project-case-hero:has(.project-cover),
    main.st-app-page .st-product-list .st-product-row,
    .mag-index .mag-feature .mag-lead > a {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }
    .oc-home .oc-hero { padding-block: 25px 13px; }
    .oc-home .oc-hero-media picture { max-width: 530px; margin-inline: auto; }
    .oc-home .oc-hero-media { margin-inline: auto; width: 100%; }
    .mag-index .mag-issue .mag-tile.mag-lead .mag-tile-body { padding: 0; }
}
@media (max-width: 530px) {
    main.project-index .project-grid, main.project-case .project-grid,
    .oc-home .oc-work-grid, .mag-index .mag-grid, .mag-detail .mag-grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 26px;
    }
    .oc-home .oc-hero-copy h1 { font-size: clamp(2.2rem, 8.5vw, 2.85rem); }
}
@media (prefers-reduced-motion: reduce) {
    .oc-home .oc-hero-media img { transform: none; transition: none; }
}
