:root {
    --dpm-accent: #E8483F;
    --dpm-accent-dark: #C93630;
    --dpm-ink: #111827;
    --dpm-muted: #687386;
    --dpm-line: #e7eaf0;
    --dpm-soft: #f5f7fa;
    --dpm-navy: #0B1F3A;
    --dpm-radius: 18px;
    --dpm-shadow: 0 14px 38px rgba(15, 23, 42, .10);
}

.dpm-portal,
.dpm-portal * {
    box-sizing: border-box;
}

.dpm-portal {
    width: min(1240px, calc(100% - 32px));
    margin: 32px auto 72px;
    color: var(--dpm-ink);
    font-family: inherit;
}

.dpm-portal a {
    color: inherit;
    text-decoration: none;
}

.dpm-portal__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}


.dpm-portal__brand {
    display: block;
    width: min(560px, 78vw);
    height: auto;
    margin: 0 0 24px;
}

.dpm-portal__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--dpm-accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dpm-portal__intro h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.dpm-portal__intro p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--dpm-muted);
    font-size: 1.06rem;
    line-height: 1.6;
}

.dpm-portal__latest-link,
.dpm-section__header > a {
    flex: 0 0 auto;
    font-weight: 800;
}

.dpm-portal__latest-link {
    padding: 12px 16px;
    border: 1px solid var(--dpm-line);
    border-radius: 999px;
    background: #fff;
}

.dpm-portal__latest-link:hover,
.dpm-portal__latest-link:focus-visible {
    border-color: var(--dpm-accent);
    color: var(--dpm-accent);
}

.dpm-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
    gap: 18px;
    min-height: 490px;
}

.dpm-feature-grid__side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
    min-width: 0;
}

.dpm-story-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--dpm-radius);
    background: var(--dpm-navy);
    box-shadow: var(--dpm-shadow);
}

.dpm-story-card > a {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}

.dpm-story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.dpm-story-card:hover img,
.dpm-story-card:focus-within img {
    transform: scale(1.035);
}

.dpm-story-card--fallback > a {
    background:
        radial-gradient(circle at 78% 22%, rgba(255,255,255,.16), transparent 24%),
        linear-gradient(135deg, #102a47 0%, #07182c 52%, #020817 100%);
}

.dpm-story-card--fallback > a::before {
    content: "DPM";
    position: absolute;
    right: -18px;
    top: -25px;
    color: rgba(255,255,255,.055);
    font-size: clamp(7rem, 15vw, 12rem);
    font-weight: 900;
    letter-spacing: -.08em;
    transform: rotate(-9deg);
}

.dpm-story-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 6, 15, .98) 0%, rgba(0, 8, 18, .78) 35%, rgba(0, 9, 20, .03) 76%);
}

.dpm-story-card__content {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    color: #fff;
}

.dpm-story-card__category {
    display: table;
    margin-bottom: 10px;
    padding: 6px 9px;
    border-radius: 4px;
    background: var(--dpm-accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .035em;
    line-height: 1;
    text-transform: uppercase;
}

.dpm-story-card__title {
    display: block;
    font-size: 1.18rem;
    font-weight: 850;
    line-height: 1.15;
    text-wrap: balance;
}

.dpm-story-card--hero .dpm-story-card__content {
    padding: clamp(24px, 4vw, 38px);
}

.dpm-story-card--hero .dpm-story-card__title {
    max-width: 920px;
    font-size: clamp(1.9rem, 3.6vw, 3.05rem);
    line-height: 1.03;
    letter-spacing: -.035em;
}

.dpm-story-card__excerpt {
    display: block;
    max-width: 780px;
    margin-top: 12px;
    color: rgba(255,255,255,.91);
    font-size: 1rem;
    line-height: 1.5;
}

.dpm-section {
    margin-top: 58px;
}

.dpm-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--dpm-line);
}

.dpm-section__header h2 {
    position: relative;
    margin: 0;
    padding: 0 0 14px;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -.025em;
}

.dpm-section__header h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 96px;
    height: 4px;
    background: var(--dpm-accent);
}

.dpm-section__header > a {
    padding-bottom: 14px;
    color: var(--dpm-accent);
}

.dpm-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dpm-story-card--standard {
    aspect-ratio: 4 / 3;
    min-height: 220px;
}

.dpm-story-card--standard .dpm-story-card__content {
    padding: 18px;
}

.dpm-story-card--standard .dpm-story-card__title {
    font-size: clamp(1rem, 1.4vw, 1.23rem);
}

.dpm-section--latest {
    scroll-margin-top: 30px;
}

.dpm-latest-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.dpm-latest-item {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--dpm-line);
}

.dpm-latest-item__image {
    display: block;
    width: 130px;
    height: 90px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #16385b, #061426);
}

.dpm-latest-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dpm-latest-item__image--fallback::after {
    content: "DPM";
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(255,255,255,.25);
    font-size: 1.8rem;
    font-weight: 900;
}

.dpm-latest-item__category {
    color: var(--dpm-accent);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dpm-latest-item h3 {
    margin: 5px 0 7px;
    font-size: 1.02rem;
    line-height: 1.25;
}

.dpm-latest-item h3 a:hover,
.dpm-latest-item h3 a:focus-visible {
    color: var(--dpm-accent);
}

.dpm-latest-item time {
    color: var(--dpm-muted);
    font-size: .78rem;
}

@media (max-width: 980px) {
    .dpm-feature-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .dpm-story-card--hero {
        min-height: 470px;
    }

    .dpm-feature-grid__side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
    }

    .dpm-story-card--side {
        min-height: 270px;
    }

    .dpm-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dpm-portal {
        width: min(100% - 20px, 1240px);
        margin-top: 20px;
    }

    .dpm-portal__intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .dpm-portal__latest-link {
        display: none;
    }

    .dpm-story-card--hero {
        min-height: 420px;
    }

    .dpm-feature-grid__side,
    .dpm-card-grid,
    .dpm-latest-list {
        grid-template-columns: 1fr;
    }

    .dpm-story-card--side,
    .dpm-story-card--standard {
        min-height: 245px;
    }

    .dpm-section {
        margin-top: 44px;
    }

    .dpm-latest-item {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .dpm-latest-item__image {
        width: 108px;
        height: 82px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dpm-story-card img {
        transition: none;
    }
}
