/* ═══════════════════════════════════════════════════════════════════
   PrimeStudio — page-specific styles only.
   Base styles (header, nav, .hero, .butt, .about-box, .specialization-box,
   contact card, footer) come from ../css/screen.css.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────────────── */
#first-view {
    height: auto;
    min-height: 100vh;
}

.hero {
    padding-top: 64px;
    padding-bottom: 128px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
}

.hero p.ps-tagline {
    font-size: 2.4rem;
    line-height: 3.2rem;
    font-weight: 500;
    margin-top: 0;
}

.ps-ctas {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 64px;
}

.ps-ctas .butt {
    margin-top: 0;
}

.ps-link {
    font-size: 1.938rem;
    font-weight: 500;
    border-bottom: 3.2px solid #FFFFFF;
    padding-bottom: 4px;
}

.ps-link:hover {
    border-color: transparent;
}

/* ── Banner ────────────────────────────────────────────────────────── */
.ps-banner {
    background: #FFFFFF;
    color: #000000;
}

.ps-banner__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 128px 192px;
    text-align: center;
}

.ps-banner h2 {
    font-size: 2.907rem;
    font-weight: 700;
    line-height: 1.2;
}

.ps-banner p {
    font-size: 1.938rem;
    line-height: 2.907rem;
    margin: 32px auto 0;
    max-width: 1000px;
}

.ps-oneline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin: 48px 0 0;
    padding: 0;
}

.ps-oneline li {
    font-size: 1.454rem;
    font-weight: 700;
    padding: 10px 28px;
    border: 3.2px solid #000000;
    border-radius: 999px;
}

/* ── Shared section layout ─────────────────────────────────────────── */
.ps-section {
    align-items: flex-start;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.ps-section--center {
    align-items: center;
    text-align: center;
}

.ps-section h3 {
    font-size: 1.454rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.about-box.ps-section p,
.specialization-box.ps-section p {
    width: auto;
    font-size: 1.454rem;
    line-height: 2.3rem;
}

.ps-section p + p {
    margin-top: 24px;
}

.ps-section .ps-lead,
.about-box.ps-section p.ps-lead,
.specialization-box.ps-section p.ps-lead {
    font-size: 1.938rem;
    line-height: 2.907rem;
    max-width: 1100px;
    margin-top: 64px;
}

.ps-lead--left {
    text-align: left;
}

.ps-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 96px;
    margin-top: 64px;
    width: 100%;
}

.ps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px;
    margin-top: 64px;
    width: 100%;
}

.ps-grid > div {
    border-top: 3.2px solid #FFFFFF;
    padding-top: 32px;
}

.ps-chips,
.ps-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 64px 0 0;
    padding: 0;
}

.ps-chips li {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 8px 20px;
    border: 2px solid #FFFFFF;
    border-radius: 999px;
}

.ps-formats li {
    font-size: 1.938rem;
    font-weight: 700;
    padding: 20px 36px;
    border: 3.2px solid #FFFFFF;
    border-radius: 16px;
}

/* ── Film strip ────────────────────────────────────────────────────── */
.ps-strip {
    width: 100%;
    margin-top: 64px;
    overflow: hidden;
    background: #111111;
    border-radius: 16px;
    padding: 28px 0;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* sprocket holes, top and bottom */
.ps-strip::before,
.ps-strip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 12px;
    background-image: repeating-linear-gradient(90deg, transparent 0 14px, #E8E8E8 14px 30px, transparent 30px 44px);
    border-radius: 3px;
}

.ps-strip::before { top: 8px; }
.ps-strip::after  { bottom: 8px; }

.ps-strip__track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: ps-roll 48s linear infinite;
}

.ps-strip:hover .ps-strip__track {
    animation-play-state: paused;
}

@keyframes ps-roll {
    to { transform: translateX(calc(-50% - 6px)); }
}

.ps-frame {
    position: relative;
    width: 240px;
    height: 160px;
    border-radius: 6px;
    flex: none;
}

.ps-frame b {
    position: absolute;
    left: 12px;
    bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Illustrative palettes — sky, light and shadow tones loosely inspired by each stock */
.ps-f-portra     { background: linear-gradient(180deg, #C9D3D6 0%, #E8C8A9 52%, #B98A68 78%, #5C4A3E 100%); }
.ps-f-ektar      { background: linear-gradient(180deg, #2F7FC1 0%, #7FB8E3 45%, #E5533B 70%, #5A2A1C 100%); }
.ps-f-gold       { background: linear-gradient(180deg, #F2D49B 0%, #E8A85A 50%, #B5652F 78%, #4A2E1E 100%); }
.ps-f-vision     { background: linear-gradient(180deg, #13303F 0%, #2D5E6E 45%, #C98F55 75%, #1A1512 100%); }
.ps-f-kodachrome { background: linear-gradient(180deg, #1E5FA8 0%, #6EA0C9 42%, #D9342B 66%, #2B1A12 100%); }
.ps-f-cinestill  { background: linear-gradient(180deg, #0D1B2E 0%, #234E73 40%, #E04A3C 68%, #0A0A0F 100%); }
.ps-f-velvia     { background: linear-gradient(180deg, #0F4FA8 0%, #2FA0D8 40%, #3F9E3A 68%, #12301A 100%); }
.ps-f-trix       { background: linear-gradient(180deg, #EDEDED 0%, #A8A8A8 45%, #4A4A4A 75%, #0E0E0E 100%); }
.ps-f-hp5        { background: linear-gradient(180deg, #D8D8D8 0%, #9A9A9A 50%, #5C5C5C 78%, #1E1E1E 100%); }

.about-box.ps-section p.ps-strip-note {
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 16px;
}

/* ── Profiles: three sources ───────────────────────────────────────── */
.ps-sources {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    margin: 64px 0 0;
    padding: 0;
}

.ps-sources li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.454rem;
    font-weight: 500;
    padding: 20px 32px;
    border: 3.2px solid #FFFFFF;
    border-radius: 16px;
}

.ps-sources span {
    font-weight: 700;
}

/* ── Typography section ────────────────────────────────────────────── */
.ps-type {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 96px;
    align-items: center;
    margin-top: 64px;
    width: 100%;
}

.about-box.ps-section p.ps-type__sample {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    hanging-punctuation: first last;
    text-indent: -0.42em;           /* optical margin: the opening quote hangs outside */
    border-left: 3.2px solid #FFFFFF;
    padding: 24px 0 24px calc(0.42em + 32px);
}

/* ── Download ──────────────────────────────────────────────────────── */
.ps-download {
    max-width: 1600px;
    margin: 0 auto;
    padding: 192px;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-download h2 {
    font-size: 2.907rem;
    font-weight: 700;
}

.ps-download__intro {
    font-size: 1.938rem;
    line-height: 2.907rem;
    margin-top: 32px;
    max-width: 1100px;
}

.ps-os-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.ps-os {
    position: relative;
    padding: 48px;
    border: 3.2px solid rgba(255, 255, 255, 0.25);
    border-radius: 32px;
}

.ps-os.is-recommended {
    border-color: #FFFFFF;
}

.ps-os__badge {
    display: none;
    position: absolute;
    top: -18px;
    left: 40px;
    font-size: 1rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #000000;
}

.ps-os.is-recommended .ps-os__badge {
    display: inline-block;
}

.ps-os h3 {
    font-size: 2.4rem;
    font-weight: 700;
}

.ps-os__file {
    font-size: 1.2rem;
    margin-top: 12px;
}

.ps-os .butt {
    margin-top: 32px;
}

.ps-os .butt a {
    font-size: 1.454rem;
    line-height: 2.4rem;
}

.ps-os .butt {
    min-height: 0;
    padding: 8px 28px;
}

.ps-os details {
    margin-top: 32px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.ps-os summary {
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ps-os ol {
    margin: 16px 0 0;
    padding-left: 1.3em;
}

.ps-os li + li {
    margin-top: 8px;
}

.ps-os code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.95em;
    background: #1A1A1A;
    padding: 2px 6px;
    border-radius: 6px;
    word-break: break-all;
}

.ps-hash {
    margin-top: 20px;
    font-size: 1rem;
}

.ps-mobile-note {
    font-size: 1.454rem;
    line-height: 2.2rem;
    margin-top: 32px;
}

.ps-buy {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 96px;
    padding-top: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-buy p {
    font-size: 1.938rem;
    font-weight: 500;
}

.ps-buy .butt {
    margin-top: 0;
}

.butt.butt--outline {
    background: transparent;
}

.butt.butt--outline a {
    color: #FFFFFF;
}

.butt.butt--outline:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
}

.butt.butt--outline:hover a {
    color: #000000;
}

[hidden] {
    display: none !important;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 100em) {
    .ps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ps-os {
        padding: 40px 32px;
    }
}

@media (max-width: 80em) {
    .ps-os-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
    }
}

@media (max-width: 64em) {
    .hero {
        padding-top: 0;
        padding-bottom: 64px;
    }

    .hero h1 {
        font-size: 2.907rem;
    }

    .hero p.ps-tagline {
        font-size: 1.6rem;
        line-height: 2.2rem;
    }

    .hero p {
        font-size: 1.2rem;
        line-height: 1.9rem;
        max-width: 100%;
    }

    .ps-os .butt a {
        font-size: 1.2rem;
        line-height: 2rem;
        white-space: nowrap;
    }

    .ps-os .butt {
        padding: 6px 20px;
    }

    .ps-mobile-note {
        font-size: 1.2rem;
        line-height: 1.9rem;
        margin: 32px 0 0;
        padding: 20px 24px;
        border: 2px solid #FFFFFF;
        border-radius: 16px;
    }

    .ps-ctas {
        gap: 24px;
        margin-top: 32px;
    }

    .ps-link {
        font-size: 1.454rem;
    }

    .ps-ctas .butt {
        min-height: 0;
        padding: 8px 24px;
    }

    .ps-ctas .butt a {
        font-size: 1.454rem;
        line-height: 2.2rem;
        white-space: nowrap;
    }

    .ps-banner__inner {
        padding: 64px 32px;
    }

    .ps-banner h2 {
        font-size: 1.938rem;
    }

    .ps-banner p {
        font-size: 1.454rem;
        line-height: 2.2rem;
    }

    .ps-oneline li {
        font-size: 1rem;
        padding: 6px 16px;
        border-width: 2px;
    }

    .ps-cols,
    .ps-grid,
    .ps-type {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ps-section .ps-lead,
    .about-box.ps-section p.ps-lead,
    .specialization-box.ps-section p.ps-lead {
        font-size: 1.454rem;
        line-height: 2.2rem;
        text-align: left;
    }

    .ps-section--center {
        align-items: flex-start;
        text-align: left;
    }

    .ps-sources {
        justify-content: flex-start;
    }

    .ps-frame {
        width: 180px;
        height: 120px;
    }

    .about-box.ps-section p.ps-type__sample {
        font-size: 2.6rem;
    }

    .ps-formats li {
        font-size: 1.2rem;
        padding: 12px 20px;
    }

    .ps-download {
        padding: 64px 32px;
    }

    .ps-download__intro {
        font-size: 1.454rem;
        line-height: 2.2rem;
    }

    .ps-os {
        padding: 32px;
    }

    .ps-buy p {
        font-size: 1.454rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ps-strip__track {
        animation: none;
    }

    .ps-strip {
        overflow-x: auto;
    }
}
