.section-page {
    display: grid;
    gap: var(--space-10);
}

.page-hero,
.page-feature,
.page-grid,
.page-cta {
    display: grid;
}

.page-hero-panel,
.page-feature-panel,
.page-cta-panel {
    display: grid;
    gap: var(--space-7);
}

.page-hero-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
}

.event-hero-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.page-title {
    max-width: 12ch;
}

.page-feature-panel,
.page-cta-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.feature-visual,
.page-side-note {
    min-height: 100%;
}

.feature-visual {
    margin: 0;
}

.visual-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-4);
    width: 100%;
    max-width: 360px;
    justify-self: end;
    align-self: start;
}

.visual-card img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.02);
}

.page-side-note {
    display: grid;
    gap: var(--space-4);
}

.services-hero-side {
    display: grid;
    gap: var(--space-5);
    align-self: center;
    align-content: start;
}

.services-header-visual {
    position: relative;
    margin: 0;
    align-self: start;
    width: min(100%, 420px);
    justify-self: end;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-lg);
}

.services-header-visual picture {
    display: block;
    position: absolute;
    inset: 0;
}

.services-header-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(17, 20, 38, 0.18), transparent 34%),
        linear-gradient(180deg, transparent 54%, rgba(17, 20, 38, 0.24));
}

.services-header-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-hero-copy {
    gap: var(--space-5);
}

.event-hero-side {
    justify-items: end;
    align-content: start;
    gap: var(--space-5);
}

.event-header-visual {
    width: 100%;
    max-width: 420px;
    justify-self: end;
}

.event-header-visual img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.02);
}

.event-hero-contact {
    display: grid;
    gap: var(--space-4);
    width: 100%;
    max-width: 420px;
}

.status-label {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(228, 63, 90, 0.32);
    background: rgba(228, 63, 90, 0.12);
    color: #ffd0d7;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-list,
.service-list {
    display: grid;
    gap: var(--space-4);
}

.product-collection {
    display: grid;
    gap: var(--space-6);
}

.collection-intro {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
    align-items: start;
}

.notebook-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
}

.notebook-card {
    display: grid;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(16, 24, 46, 0.72));
    box-shadow: var(--shadow-md);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

.notebook-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: var(--shadow-lg);
}

.notebook-link {
    display: grid;
    gap: var(--space-4);
    height: 100%;
    padding: var(--space-4);
    text-decoration: none;
}

.notebook-cover {
    width: 100%;
    aspect-ratio: 790 / 594;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(6, 9, 20, 0.28);
}

.notebook-meta {
    display: grid;
    gap: var(--space-3);
}

.notebook-meta .button-tertiary {
    width: fit-content;
}

.notebook-meta h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    line-height: 1.15;
}

.timeline-item,
.service-item {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.section-page .card-grid .card-surface,
.timeline-item,
.service-item {
    box-shadow: var(--shadow-md);
}

.product-top-grid .card-surface {
    display: flex;
}

.card-stack-fill {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.card-stack-fill .button-secondary {
    margin-top: auto;
}

.event-flyer-card {
    width: 100%;
    max-width: 420px;
    justify-self: end;
    align-self: start;
}

.event-flyer-card img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.02);
}

.past-event-panel {
    gap: var(--space-6);
    padding-block: clamp(18px, 3vw, 28px);
}

.past-event-copy {
    gap: var(--space-3);
    align-content: center;
}

.past-event-visual {
    align-self: center;
}

.archive-section {
    display: grid;
    gap: var(--space-5);
}

.archive-intro-panel {
    display: grid;
    gap: var(--space-4);
}

.archive-heading {
    max-width: 720px;
}

.archive-scroll-hint {
    margin: 0;
    color: var(--soft-text);
    font-size: 0.95rem;
}

.event-archive-gallery {
    display: flex;
    gap: clamp(18px, 2vw, 28px);
    overflow-x: auto;
    padding: 6px 6px var(--space-4);
    scroll-padding-inline: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

.event-archive-gallery::-webkit-scrollbar {
    height: 10px;
}

.event-archive-gallery::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.archive-event-card {
    flex: 0 0 min(440px, calc(100vw - 72px));
    scroll-snap-align: start;
    display: grid;
    gap: var(--space-5);
    min-height: 100%;
    padding: clamp(18px, 2vw, 24px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at top, rgba(228, 63, 90, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(13, 22, 44, 0.9));
    box-shadow: var(--shadow-lg);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.archive-event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.24);
}

.archive-event-card--aries {
    grid-auto-rows: auto;
}

.archive-event-media {
    position: relative;
    aspect-ratio: 4 / 5;
    min-height: 0;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 18px 40px rgba(6, 9, 20, 0.32);
}

.archive-event-hero {
    display: block;
    width: 100%;
    height: 100%;
}

.archive-event-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.archive-event-inset {
    position: absolute;
    right: clamp(14px, 2vw, 20px);
    bottom: clamp(14px, 2vw, 20px);
    width: min(34%, 180px);
    display: block;
}

.archive-event-inset img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 28px rgba(6, 9, 20, 0.42);
}

.archive-event-body {
    align-content: start;
}

.archive-event-body h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    line-height: 1.06;
}

.archive-event-body p {
    margin: 0;
}

.lead-panel,
.signup-panel {
    display: grid;
    gap: var(--space-7);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.lead-summary {
    display: grid;
    gap: var(--space-4);
}

.lead-points {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.lead-points li {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-text);
}

.lead-points strong {
    color: var(--text);
}

.lead-actions {
    display: grid;
    gap: var(--space-4);
    justify-items: start;
}

.lead-actions .button-primary,
.lead-actions .button-secondary {
    width: fit-content;
}

.journey-grid {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-card {
    display: grid;
    gap: var(--space-4);
    min-height: 100%;
}

.journey-card .cta-row {
    margin-top: auto;
}

.journey-card .button-primary,
.journey-card .button-secondary {
    width: fit-content;
}

.article-shell {
    display: grid;
    gap: var(--space-7);
}

.article-body {
    display: grid;
    gap: var(--space-5);
}

.article-body h2,
.article-body h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.15;
}

.article-body h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.article-body h3 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.article-body p {
    margin: 0;
    color: var(--muted-text);
    font-size: clamp(1rem, 1.3vw, 1.08rem);
}

.article-body ul {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted-text);
}

.article-body li::marker {
    color: var(--accent);
}

.guide-card-link {
    display: grid;
    gap: var(--space-3);
    height: 100%;
    text-decoration: none;
}

.guide-card-link .button-tertiary {
    width: fit-content;
    margin-top: auto;
}

@media (max-width: 1024px) {
    .page-hero-panel,
    .page-feature-panel,
    .page-cta-panel,
    .collection-intro,
    .lead-panel,
    .signup-panel,
    .journey-grid {
        grid-template-columns: 1fr;
    }

    .notebook-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .visual-card {
        margin: 0 auto;
    }

    .services-header-visual {
        justify-self: center;
    }

    .event-flyer-card {
        max-width: 360px;
        justify-self: start;
    }

    .event-archive-gallery {
        gap: var(--space-4);
    }

    .event-header-visual {
        justify-self: start;
    }

    .event-hero-side {
        justify-items: start;
    }

    .event-hero-contact {
        max-width: 100%;
    }

    .past-event-visual {
        justify-self: start;
    }

    .lead-actions .button-primary,
    .lead-actions .button-secondary,
    .journey-card .button-primary,
    .journey-card .button-secondary {
        width: 100%;
    }

}

@media (max-width: 768px) {
    .section-page {
        gap: var(--space-8);
    }

    .notebook-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .page-title,
    .page-intro,
    .page-side-note,
    .visual-card,
    .event-flyer-card {
        text-align: center;
    }

    .archive-scroll-hint {
        text-align: center;
    }

    .event-flyer-card {
        margin: 0 auto;
    }

    .event-archive-gallery {
        padding-bottom: var(--space-3);
    }

    .archive-event-card {
        flex-basis: min(88vw, 360px);
        gap: var(--space-4);
        padding: var(--space-4);
    }

    .archive-event-inset {
        width: min(38%, 140px);
    }
}

@media (max-width: 560px) {
    .notebook-grid {
        grid-template-columns: 1fr;
    }
}
