.story-page {
    width: 100%;
}

.ar-page {
    background: #fcf8f7;
}

.story-page .lead {
    max-width: 38rem;
}

.story-page .ar-title {
    color: var(--color-primary);
}

.story-page .ar-device-frame {
    max-width: 390px;
    margin: 0 auto;
    padding: 14px;
    overflow: hidden;
    border-radius: 48px;
    background: #fff;
    box-shadow: 0 18px 50px rgb(174 47 52 / 12%);
    transform: rotate(2deg);
}

.story-page .ar-device-frame img {
    display: block;
    width: 100%;
    border-radius: 38px;
}

.story-page .ar-steps {
    padding: 0;
    margin: 0;
    list-style: none;
}

.story-page .ar-steps .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    text-align: center;
}

.story-page .ar-steps p {
    line-height: 1.55;
}

.story-page .step-number {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 600;
}

.story-page .step-coral {
    background: #ffdad8;
    color: var(--color-primary);
}

.story-page .step-mint {
    background: var(--color-mint);
    color: #007167;
}

.story-page .step-gold {
    background: #f1e1b6;
    color: #785a00;
}

.story-page .step-art {
    width: 80px;
    height: 80px;
    margin-top: auto;
    object-fit: contain;
}

.story-page .step-photo {
    width: 100%;
    height: 170px;
    margin-top: auto;
    border-radius: 18px;
    object-fit: cover;
}

.story-page .gallery-details {
    max-width: 768px;
    margin: 0 auto;
}

.story-page .gallery-details summary {
    width: fit-content;
    margin: 0 auto;
    cursor: pointer;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.story-page .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.story-page .gallery-grid img {
    display: block;
    width: 100%;
    height: 320px;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    object-fit: cover;
}

.story-page .ar-download-panel,
.story-page .story-card {
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: space-between;
}

.story-page .ar-download-panel > div:first-child,
.story-page .story-card > div {
    display: grid;
    gap: 16px;
}

.story-page .story-card > .button {
    flex-shrink: 0;
}

.story-page .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
    gap: 64px;
    align-items: start;
}

.story-page .contact-intro,
.story-page .contact-form-wrap,
.story-page .contact-form-heading,
.story-page .contact-direct {
    display: grid;
    gap: 16px;
}

.story-page .contact-direct {
    margin-top: 16px;
}

.story-page .contact-direct h2,
.story-page .contact-form-heading h2 {
    font-size: 24px;
}

.story-page .text-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.story-page .contact-form-enhanced {
    display: none;
}

.js .story-page .contact-form-enhanced {
    display: grid;
}

.js .story-page .contact-fallback {
    display: none;
}

.story-page .form-field {
    display: grid;
    gap: 6px;
}

.story-page .form-field label {
    padding-left: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.65px;
}

.story-page .form-field input,
.story-page .form-field textarea {
    width: 100%;
    border: 2px solid #e0bfbd;
    border-radius: 999px;
    background: #f8f9fa;
    color: var(--color-heading);
    padding: 14px 18px;
}

.story-page .form-field textarea {
    min-height: 144px;
    border-radius: 20px;
    resize: vertical;
}

.story-page .form-field input:focus,
.story-page .form-field textarea:focus {
    border-color: var(--color-primary);
    outline: 3px solid rgb(174 47 52 / 15%);
}

.story-page .field-error {
    min-height: 20px;
    color: var(--color-primary);
    font-size: 14px;
}

.story-page .form-note {
    font-size: 14px;
    line-height: 1.45;
}

@media (prefers-color-scheme: dark) {
    .ar-page {
        background: var(--color-background);
    }

    .story-page .ar-device-frame {
        background: var(--color-surface);
        box-shadow: none;
    }

    /* These numbered chips stay deliberately light so their labels remain easy to scan. */
    .story-page .step-coral {
        background: #ffdad8;
        color: #7d2529;
    }

    .story-page .step-mint {
        background: var(--color-mint);
        color: #005b53;
    }

    .story-page .step-gold {
        background: #f1e1b6;
        color: #634900;
    }

    .story-page .form-field input,
    .story-page .form-field textarea {
        border-color: #8f8175;
        background: var(--color-background);
        color: var(--color-heading);
    }

    .story-page .form-field input::placeholder,
    .story-page .form-field textarea::placeholder {
        color: #b5aaa0;
    }

    .story-page .form-field input:focus,
    .story-page .form-field textarea:focus {
        border-color: var(--color-primary);
        outline-color: rgb(241 170 165 / 30%);
    }
}

@media (max-width: 767px) {
    .story-page .ar-device-frame {
        max-width: 300px;
    }

    .story-page .gallery-grid {
        grid-template-columns: 1fr;
    }

    .story-page .gallery-grid img {
        height: auto;
        max-height: 440px;
    }

    .story-page .ar-download-panel,
    .story-page .story-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .story-page .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 1000px) {
    .story-page .contact-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .story-page .ar-download-panel .app-store-links,
    .story-page .story-card > .button {
        width: 100%;
    }
}

.about-experience,
.about-narrative,
.about-joy {
    display: grid;
}

.about-experience {
    padding: 40px;
}

.about-experience h2 {
    font-size: 24px;
}

.about-experience-number {
    display: block;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.2;
    color: var(--color-primary);
    margin-block: 8px;
}

.about-origin {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.about-narrative p {
    font-size: 18px;
    line-height: 1.65;
}

.about-joy {
    border-left: 4px solid var(--color-teal);
}

.about-joy p {
    margin: 0;
}

@media (max-width: 1000px) {
    .about-hero .hero-grid,
    .about-origin {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .about-experience {
        padding: 24px;
    }

    .about-narrative p {
        font-size: 16px;
    }
}

.policy-content {
    max-width: 880px;
    margin-inline: auto;
    padding: 48px;
    overflow-wrap: anywhere;
}

.policy-content p,
.policy-content ul {
    margin-block: 16px;
    line-height: 1.75;
}

.policy-content ul {
    list-style: disc;
    padding-left: 24px;
}

.policy-content li + li {
    margin-top: 12px;
}

.policy-content h2 {
    margin-top: 40px;
    font-size: 28px;
}

.policy-content h3 {
    margin-top: 28px;
    font-size: 23px;
}

.policy-content h4 {
    margin-top: 24px;
    font-size: 19px;
}

.policy-content a,
.policy-source {
    color: var(--color-primary);
    text-decoration: underline;
}

.policy-content > p:first-child {
    margin-top: 0;
    font-weight: 500;
}

@media (max-width: 767px) {
    .policy-content {
        padding: 24px;
    }

    .policy-content h2 {
        font-size: 24px;
    }
}

.policy-container {
    max-width: 880px;
    margin-inline: auto;
}

.policy-navigation {
    padding: 24px 32px;
    margin-bottom: 24px;
}

.policy-navigation summary {
    color: var(--color-primary);
    cursor: pointer;
    font-weight: 600;
}

.policy-navigation ul {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.policy-navigation a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.legal-actions {
    justify-content: center;
    margin-top: 24px;
}

.legal-page .policy-content h2 {
    scroll-margin-top: 24px;
}

@media (max-width: 767px) {
    .policy-navigation {
        padding: 24px;
    }
}

/* Ink is part of the complete system, alongside the team and its expertise. */
#our-ink {
    scroll-margin-top: 2rem;
}

.ink-grid {
    align-items: stretch;
}

.ink-grid h3 {
    margin-top: 1rem;
}

.ink-natural {
    background: #eaf4ef;
}

@media (prefers-color-scheme: dark) {
    .ink-natural {
        background: #29332e;
    }
}
