* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #234596;
    --ink: #ffffff;
    --muted: #c8dff3;
    --accent: #9bcf53;
    --card: #1b2d63;
    --line: rgba(255, 255, 255, 0.15);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    --orange: #ff8a3d;
    --green: #35b86b;
    --violet: #8a5cff;
    --blue: #2d7ff9;
    --pink: #ff5f8f;
    --charcoal: #353f4f;
    --silver: #8c9093;
    --skin: #eabda3;
}

body {
    font-family: "Space Grotesk", sans-serif;
    background: radial-gradient(circle at top left, #2a54b0, #234596 55%, #1b2d63 100%);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(35, 69, 150, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    z-index: 10;
}

.nav__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.logo {
    font-family: "Fraunces", serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.nav__items {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav__items a {
    padding: 6px 10px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav__items a:hover {
    background: var(--accent);
    color: #0b1a3d;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 150px 20px 70px;
    text-align: center;
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

.hero__title {
    font-family: "Fraunces", serif;
    font-size: clamp(2.6rem, 4.2vw, 3.8rem);
    line-height: 1.05;
    margin: 16px auto;
    max-width: 820px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero__lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.btn {
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid var(--ink);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
}

.btn--primary {
    background: var(--accent);
    color: #0b1a3d;
    border-color: var(--accent);
}

.btn--primary:hover {
    filter: brightness(1.05);
}

.btn--ghost:hover {
    background: var(--ink);
    color: #0b1a3d;
}

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 90px;
}

.section__title {
    font-family: "Fraunces", serif;
    font-size: clamp(2.2rem, 3.2vw, 3rem);
    margin-bottom: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section__lead {
    color: var(--muted);
    max-width: 760px;
    margin-bottom: 26px;
    line-height: 1.7;
}

.iapact-section {
    background: var(--card);
    border-radius: 24px;
    padding: 52px;
    margin-top: 90px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-left: 10px solid var(--orange);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    --section-accent: var(--orange);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.section--orange { border-left-color: var(--orange); --section-accent: var(--orange); }
.section--green { border-left-color: var(--green); --section-accent: var(--green); }
.section--violet { border-left-color: var(--violet); --section-accent: var(--violet); }
.section--blue { border-left-color: var(--blue); --section-accent: var(--blue); }
.section--pink { border-left-color: var(--pink); --section-accent: var(--pink); }

.audio-line {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 1rem;
    color: var(--muted);
    margin: 24px 0;
}

.audio-line audio {
    width: 260px;
}

.iapact-title {
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 2.6vw, 2.4rem);
    margin-top: 14px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.iapact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 1rem;
    margin: 10px 0 20px;
}

.section-summary {
    margin: 14px 0 18px;
    color: var(--muted);
    max-width: 900px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.section-divider {
    height: 1px;
    background: var(--line);
    margin: 32px 0;
}

.subsections {
    display: grid;
    gap: 48px;
    margin-top: 26px;
}

.subsection {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 24px;
    align-items: start;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    padding: 36px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.slide-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--section-accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    margin: 0;
}

.subsection-text {
    background: rgba(12, 20, 48, 0.65);
    border-radius: 18px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.subsection-text p {
    font-family: "Fraunces", serif;
    color: #f3f6ff;
    line-height: 1.75;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    margin: 0;
}

.subsection-media {
    background: rgba(12, 20, 48, 0.65);
    border-radius: 18px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-color: color-mix(in srgb, var(--section-accent) 55%, rgba(255, 255, 255, 0.12));
    margin: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subsection-media img {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    width: 100%;
    max-width: 600px;
    height: 450px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
}

.subsection-media button {
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

details {
    border-top: 1px dashed var(--line);
    margin-top: 14px;
    padding-top: 12px;
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--accent);
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
}

.slides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.slides-details {
    margin-top: 16px;
}

.slides-details ol {
    margin-top: 10px;
    padding-left: 18px;
    color: var(--muted);
}

.slides-details li {
    margin-bottom: 10px;
}

.slide-thumb {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.slide-thumb img {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    align-items: center;
}

.download-link {
    font-size: 0.95rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.download-link:hover {
    color: #fff;
    text-decoration: underline;
}

.download-section {
    margin-top: 80px;
    padding: 40px;
    text-align: center;
    background: linear-gradient(130deg, rgba(155, 207, 83, 0.12), rgba(155, 207, 83, 0.05));
    border: 2px solid var(--accent);
    border-radius: 24px;
}

.download-link-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b1a3d;
    background: var(--accent);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(155, 207, 83, 0.3);
}

.download-link-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(155, 207, 83, 0.4);
    filter: brightness(1.1);
}

footer {
    padding: 40px 20px 60px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.iapact-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 8, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(94vw, 1360px);
    height: 94vh;
    max-height: 900px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 0.9rem;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    min-height: 0;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-nav {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(20, 20, 20, 0.6);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 0.85rem;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.orientation-hint {
    display: none;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(155, 207, 83, 0.95);
    color: #0b1a3d;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 50;
    animation: slideUp 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.modal-action {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
}

@media (max-width: 820px) {
    .nav__toggle {
        display: flex;
    }

    .nav__items {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(35, 69, 150, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        border-top: 1px solid var(--line);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        display: none;
    }

    .nav__items.active {
        display: flex;
    }

    .nav__items a {
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
    }

    .nav__items a:last-child {
        border-bottom: none;
    }

    .hero {
        padding: 100px 20px 40px;
    }

    .hero__title {
        font-size: 2rem;
        margin: 12px auto;
    }

    .hero__eyebrow {
        font-size: 0.7rem;
    }

    .section {
        padding: 20px 20px 60px;
    }

    .section__title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .iapact-section {
        padding: 32px 24px;
        margin-top: 40px;
    }

    .audio-line audio {
        width: 100%;
    }

    .subsection-media img {
        max-width: 100%;
        height: 300px;
    }

    .subsection {
        padding: 24px;
    }

    .subsection-text {
        padding: 24px;
    }
}

@media (max-width: 720px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
    }

    .modal-nav.prev {
        left: 10px;
    }

    .modal-nav.next {
        right: 10px;
    }
}

@media (max-width: 720px) and (orientation: portrait) {
    .orientation-hint {
        display: block;
    }
}

@media (max-width: 720px) and (orientation: landscape) {
    .modal-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 920px) and (orientation: landscape) {
    .modal-content {
        height: 98vh;
        max-height: none;
        gap: 2px;
    }

    .modal-header {
        font-size: 0.7rem;
        padding: 1px 0;
        min-height: 0;
    }

    .modal-footer {
        font-size: 0.65rem;
        padding: 1px 0;
        min-height: 0;
    }

    .modal-body {
        min-height: 0;
        height: 100%;
        gap: 8px;
    }

    .modal-image {
        max-height: calc(98vh - 50px);
        height: auto !important;
        width: auto !important;
        max-width: 95%;
        object-fit: contain;
    }

    .modal-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .modal-action {
        padding: 3px 6px;
        font-size: 0.65rem;
    }

    .modal-title {
        font-size: 0.7rem;
    }

    .modal-actions {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 16px 30px;
    }

    .hero__eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }

    .hero__title {
        font-size: 1.5rem;
        line-height: 1.15;
        margin: 10px auto;
        word-wrap: break-word;
        hyphens: auto;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .section {
        padding: 16px 16px 50px;
    }

    .section__title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .section__lead {
        font-size: 0.95rem;
    }

    .iapact-section {
        padding: 24px 16px;
        margin-top: 30px;
        border-radius: 16px;
    }

    .iapact-title {
        font-size: 1.4rem;
        word-wrap: break-word;
    }

    .section-summary {
        font-size: 1rem;
    }

    .subsection {
        padding: 20px;
        gap: 16px;
        border-radius: 16px;
    }

    .subsection-text {
        padding: 20px;
        border-radius: 14px;
    }

    .subsection-text p {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .subsection-media {
        padding: 20px;
        border-radius: 14px;
    }

    .subsection-media img {
        height: 250px;
    }

    .slide-number {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}
