.photo-story {
    --story-cream: #fffdf9;
    --story-warm: #f7f1eb;
    --story-ink: #24201d;
    --story-muted: #746b64;
    --story-teal: #148f83;
    --story-deep-teal: #0f766e;
    --story-yellow: #ffd04f;
    --story-aqua: #e8f5f2;
    --story-line: #e5d9ca;
    color: var(--story-ink);
    background: var(--story-cream);
    overflow: hidden;
}

.photo-story__container {
    width: min(var(--layout-container-max), calc(100% - 32px));
    max-width: var(--layout-container-max);
    margin-inline: auto;
}

.photo-story__section {
    scroll-margin-top: 6rem;
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-top: 1px solid var(--story-line);
}

.photo-story__section--intro {
    padding-top: clamp(4.5rem, 9vw, 8rem);
    border-top: 0;
    background: var(--story-cream);
}

.photo-story__section--evidence {
    background: var(--story-aqua);
}

.photo-story__section--flow {
    background: var(--story-warm);
}

.photo-story__section--outputs {
    background: var(--story-cream);
}

.photo-story__section--specs {
    background: var(--story-aqua);
}

.photo-story__section--faq {
    background: var(--story-warm);
}

.photo-story__intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5.75rem);
    align-items: center;
}

.photo-story__intro-copy {
    min-width: 0;
}

.photo-story__kicker {
    margin: 0 0 1.1rem;
    color: var(--story-deep-teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.5;
    text-transform: uppercase;
}

.photo-story__title,
.photo-story__section-title {
    margin: 0;
    color: var(--story-ink);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.photo-story__title {
    max-width: 20ch;
    font-size: clamp(1.8rem, 5.6vw, 3rem);
}

.photo-story__section-title {
    max-width: 27ch;
    font-size: clamp(1.75rem, 4vw, 2.65rem);
}

.photo-story__definition {
    max-width: 42rem;
    margin: 1.6rem 0 0;
    color: var(--story-muted);
    font-size: 1.08rem;
    line-height: 1.9;
}

.photo-story__scene-label {
    margin: 2.2rem 0 0;
    color: var(--story-ink);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.photo-story__scene-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.4rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--story-ink);
}

.photo-story__scene-list li {
    position: relative;
    padding: 0.95rem 0 0.95rem 1.1rem;
    border-bottom: 1px solid var(--story-line);
    color: var(--story-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.photo-story__scene-list li::before {
    position: absolute;
    top: 1.35rem;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--story-teal);
    content: "";
}

.photo-story__figure {
    position: relative;
    margin: 0;
    border: 2px solid var(--story-ink);
    border-radius: 2px;
    background: var(--story-cream);
    box-shadow: 9px 10px 0 var(--story-yellow);
    transform: rotate(1.15deg);
}

.photo-story__figure::after {
    position: absolute;
    right: -1.1rem;
    bottom: -1.1rem;
    width: 3.6rem;
    height: 3.6rem;
    border: 2px solid var(--story-ink);
    border-radius: 50%;
    background: var(--story-teal);
    content: "";
    z-index: 0;
}

.photo-story__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1448 / 1086;
    object-fit: cover;
}

.photo-story__caption {
    position: relative;
    z-index: 1;
    padding: 0.85rem 1rem 0.95rem;
    background: var(--story-cream);
    color: var(--story-ink);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.photo-story__advantages-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: clamp(2.5rem, 6vw, 5.75rem);
    align-items: center;
}

.photo-story__advantages-copy {
    min-width: 0;
}

.photo-story__advantages-heading {
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.photo-story__advantages-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--story-ink);
}

.photo-story__advantage-item {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--story-line);
}

.photo-story__advantage-index {
    color: var(--story-deep-teal);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.8;
}

.photo-story__advantage-copy {
    min-width: 0;
}

.photo-story__advantage-title {
    margin: 0;
    color: var(--story-ink);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.photo-story__advantage-text {
    margin: 0.25rem 0 0;
    color: var(--story-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.photo-story__advantages-figure {
    min-width: 0;
    margin: 0 0.75rem 0 0;
    border: 2px solid var(--story-ink);
    border-radius: 2px;
    background: var(--story-cream);
    box-shadow: -10px 12px 0 var(--story-teal);
    transform: rotate(-1.15deg);
}

.photo-story__advantages-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1448 / 1086;
    object-fit: cover;
}

.photo-story__advantages-caption {
    padding: 0.9rem 1rem 1rem;
    border-top: 2px solid var(--story-ink);
    background: var(--story-yellow);
    color: var(--story-ink);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.photo-story__section-heading {
    max-width: 48rem;
    margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.photo-story__section-intro {
    max-width: 39rem;
    margin: 1.2rem 0 0;
    color: var(--story-muted);
    font-size: 1rem;
    line-height: 1.85;
}

.photo-story__evidence-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--story-ink);
}

.photo-story__evidence-item {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding: 1.45rem 0;
    border-bottom: 1px solid var(--story-line);
}

.photo-story__evidence-index {
    color: var(--story-deep-teal);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.8;
}

.photo-story__evidence-copy {
    display: grid;
    grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: baseline;
}

.photo-story__item-title {
    margin: 0;
    color: var(--story-ink);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.photo-story__item-copy {
    margin: 0;
    color: var(--story-muted);
    font-size: 1rem;
    line-height: 1.85;
}

.photo-story__step-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin: 0;
    padding: 1.3rem 0 0;
    list-style: none;
}

.photo-story__step-track::before {
    position: absolute;
    top: 3.05rem;
    right: 12.5%;
    left: 12.5%;
    height: 2px;
    background: var(--story-line);
    content: "";
}

.photo-story__step-item {
    position: relative;
    min-width: 0;
}

.photo-story__step-number {
    position: relative;
    z-index: 1;
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    margin-bottom: 1.25rem;
    border: 2px solid var(--story-ink);
    border-radius: 50%;
    background: var(--story-yellow);
    color: var(--story-ink);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.photo-story__step-copy {
    padding-right: 0.25rem;
}

.photo-story__feature-guide-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    border-top: 1px solid var(--story-line);
    background: var(--story-warm);
}

.photo-story__feature-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--story-line);
}

.photo-story__feature-section {
    scroll-margin-top: 6rem;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
    background: var(--story-aqua);
}

.photo-story__feature-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
}

.photo-story__feature-card .photo-story__kicker {
    margin-bottom: 0.8rem;
}

.photo-story__feature-card .photo-story__section-title {
    max-width: none;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.photo-story__feature-copy,
.photo-story__feature-use-case {
    max-width: 38rem;
    color: var(--story-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.photo-story__feature-copy {
    margin: 1rem 0 0;
}

.photo-story__feature-use-case {
    margin: 1rem 0 0;
}

.photo-story__feature-use-case strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--story-ink);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.photo-story__feature-card .photo-story__cta {
    margin-top: auto;
    padding-top: 0.7rem;
}

.photo-story__output-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 6vw, 5rem);
}

.photo-story__output-item {
    min-width: 0;
    padding-top: 1.2rem;
    border-top: 2px solid var(--story-ink);
}

.photo-story__output-label {
    margin: 0 0 1.15rem;
    color: var(--story-deep-teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
}

.photo-story__output-item .photo-story__item-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.photo-story__output-item .photo-story__item-copy {
    margin-top: 1rem;
}

.photo-story__spec-list {
    margin: 0;
    border-top: 2px solid var(--story-ink);
}

.photo-story__spec-row {
    display: grid;
    grid-template-columns: minmax(10rem, 0.36fr) minmax(0, 1fr);
    gap: 2rem;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--story-line);
}

.photo-story__spec-term {
    color: var(--story-ink);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.7;
}

.photo-story__spec-detail {
    margin: 0;
    color: var(--story-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.photo-story__faq-container {
    max-width: 800px;
}

.photo-story__faq-list {
    border-top: 2px solid var(--story-ink);
}

.photo-story__faq-item {
    border-bottom: 1px solid var(--story-line);
}

.photo-story__faq-summary {
    display: flex;
    min-height: 4.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    cursor: pointer;
    list-style: none;
    color: var(--story-ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.6;
}

.photo-story__faq-summary::-webkit-details-marker {
    display: none;
}

.photo-story__faq-summary::after {
    flex: 0 0 auto;
    color: var(--story-deep-teal);
    content: "+";
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1;
}

.photo-story__faq-item[open] .photo-story__faq-summary::after {
    content: "−";
}

.photo-story__faq-answer {
    max-width: 44rem;
    margin: 0 3rem 1.35rem 0;
    color: var(--story-muted);
    font-size: 1rem;
    line-height: 1.85;
}

.photo-story__final-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: clamp(3rem, 7vw, 5.5rem);
    padding-top: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--story-line);
    text-align: center;
}

.photo-story__cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--story-ink);
    border-radius: 999px;
    background: var(--story-cream);
    color: var(--story-ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.photo-story__cta:hover {
    color: var(--story-ink);
    box-shadow: 4px 4px 0 var(--story-yellow);
    transform: translate(-1px, -1px);
}

.photo-story__cta--primary {
    border-color: var(--story-ink);
    background: var(--story-teal);
    color: #ffffff;
}

.photo-story__cta--primary:hover {
    background: var(--story-deep-teal);
    color: #ffffff;
}

.photo-story__cta-note {
    margin: 1rem 0 0;
    color: var(--story-muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

.photo-story__cta:focus-visible,
.photo-story__faq-summary:focus-visible {
    outline: 3px solid var(--story-yellow);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .photo-story__intro-grid {
        gap: 3rem;
    }

    .photo-story__evidence-copy {
        grid-template-columns: minmax(10rem, 0.5fr) minmax(0, 1fr);
        gap: 1rem;
    }

    .photo-story__step-track {
        gap: 1rem;
    }
}

@media (max-width: 760px) {
    .photo-story__container {
        width: min(var(--layout-container-max), calc(100% - 28px));
    }

    .photo-story__section {
        scroll-margin-top: 9rem;
        padding: 3.75rem 0;
    }

    .photo-story__section--intro {
        padding-top: 4.25rem;
    }

    .photo-story__intro-grid,
    .photo-story__advantages-grid,
    .photo-story__output-layout,
    .photo-story__feature-guide {
        grid-template-columns: minmax(0, 1fr);
    }

    .photo-story__feature-section {
        scroll-margin-top: 6rem;
    }

    .photo-story__figure {
        max-width: 42rem;
        margin-inline: 0.35rem 0.8rem;
    }

    .photo-story__advantages-figure {
        max-width: 42rem;
        margin-inline: 0.8rem 0.35rem;
    }

    .photo-story__scene-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .photo-story__evidence-copy {
        display: block;
    }

    .photo-story__evidence-copy .photo-story__item-copy {
        margin-top: 0.3rem;
    }

    .photo-story__step-track {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.7rem;
        padding-top: 0.5rem;
    }

    .photo-story__step-track::before {
        top: 1.75rem;
        right: auto;
        bottom: 1.75rem;
        left: 1.7rem;
        width: 2px;
        height: auto;
    }

    .photo-story__step-item {
        display: grid;
        grid-template-columns: 3.5rem minmax(0, 1fr);
        gap: 1rem;
        align-items: start;
    }

    .photo-story__step-number {
        margin-bottom: 0;
    }

    .photo-story__step-copy {
        padding-top: 0.55rem;
    }

    .photo-story__spec-row {
        grid-template-columns: minmax(7.5rem, 0.42fr) minmax(0, 1fr);
        gap: 1rem;
    }

    .photo-story__faq-summary {
        min-height: 4rem;
    }

    .photo-story__faq-answer {
        margin-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .photo-story__cta {
        transition: none;
    }

    .photo-story__cta:hover {
        box-shadow: none;
        transform: none;
    }

    .photo-story__figure,
    .photo-story__advantages-figure {
        transform: none;
    }
}
