/* ==========================================================================
   Deacons Publishers — content sections
   Loaded after redesign.css, which defines the custom properties.
   Written mobile-first: base rules are the phone layout, min-width queries
   progressively widen it.
   ========================================================================== */

/* ------------------------------------------------------------- marquee --- */

.dp-partners {
    display: block;
    text-align: center;
}

.dp-partners-title {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--ink-soft);
}

.dp-marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.dp-marquee-track {
    display: flex;
    align-items: center;
    gap: 42px;
    width: max-content;
    animation: dp-scroll 42s linear infinite;
}

.dp-marquee-track img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .58;
    transition: filter .25s ease, opacity .25s ease;
}

.dp-marquee:hover .dp-marquee-track { animation-play-state: paused; }
.dp-marquee-track img:hover { filter: grayscale(0); opacity: 1; }

@keyframes dp-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .dp-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ------------------------------------------------------------ scaffold --- */

.dp-section {
    padding: 56px 0;
}

.dp-section-tint {
    background: #f4f2ed;
}

/* Same centred container as the header, so every section lines up. */
.dp-wrap {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.dp-center { text-align: center; }

.dp-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0;
}

.dp-h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.12;
    letter-spacing: -.03em;
    font-weight: 700;
}

.dp-h2-lg { font-size: clamp(30px, 5.6vw, 52px); max-width: 20ch; margin-inline: auto; }
.dp-h2 em { font-style: normal; color: var(--brand); }

.dp-lead {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.68;
    color: var(--ink-soft);
}

.dp-lead-center { max-width: 58ch; margin-inline: auto; margin-bottom: 26px; }
.dp-lead a { color: var(--brand-dark); font-weight: 600; }

.dp-body {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.72;
    color: var(--ink-soft);
}

.dp-split {
    display: grid;
    gap: 36px;
}

/* -------------------------------------------------------------- values --- */

.dp-h2-tight { margin-bottom: 0; line-height: 1.04; }

.dp-values-head {
    display: grid;
    gap: 18px;
    align-items: end;
    margin-bottom: 48px;
}

.dp-values-intro {
    margin: 0;
    font-size: 15px;
    line-height: 1.66;
    color: var(--ink-soft);
}

.dp-values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px 28px;
    padding-bottom: 54px;
    border-bottom: 1px solid var(--line);
}

.dp-value-ico {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand-dark);
}
.dp-value-ico .dp-i { width: 21px; height: 21px; }

.dp-value h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.dp-value p {
    margin: 0;
    font-size: 14px;
    line-height: 1.62;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------- stats --- */

/* One straight line of figures. */
.dp-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 54px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card);
}

.dp-stat {
    padding: 26px 20px;
    text-align: center;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.dp-stat:nth-child(2n) { border-right: 0; }
.dp-stat:nth-last-child(-n+2) { border-bottom: 0; }

.dp-stat-value {
    font-size: clamp(30px, 6vw, 42px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--brand);
}

.dp-stat-label {
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------- story --- */

.dp-story-row {
    display: grid;
    gap: 14px;
    padding-bottom: 56px;
}

/* The label parks itself while its own row scrolls past. `align-self: start`
   is what lets the sticky box shrink to its content inside a grid cell —
   without it the cell stretches and the label never moves. */
.dp-story-label {
    align-self: start;
    position: sticky;
    top: 104px;
}

.dp-story-label span {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
}

.dp-story-title {
    margin: 0 0 20px;
    font-size: clamp(24px, 3.6vw, 34px);
    line-height: 1.14;
    letter-spacing: -.028em;
    font-weight: 700;
}

/* Tinted block with an accent rule down its left edge. */
.dp-note {
    position: relative;
    padding: 22px 24px;
    margin-bottom: 26px;
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: linear-gradient(90deg, var(--brand-tint), rgba(255, 244, 232, 0) 92%);
}

.dp-note p {
    margin: 0 0 14px;
    font-size: 14.6px;
    line-height: 1.72;
    color: var(--ink-soft);
}
.dp-note p:last-child { margin-bottom: 0; }

.dp-checklist {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 14px;
}

.dp-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 14.4px;
    line-height: 1.55;
    color: var(--ink);
}

.dp-checklist .dp-i {
    width: 19px;
    height: 19px;
    flex: none;
    margin-top: 1px;
    color: var(--brand);
}

.dp-story-img {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #eceae5;
}

.dp-story-img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* ----------------------------------------------------------- statement --- */

.dp-statement {
    display: grid;
    gap: 24px;
    margin: 0;
    padding-top: 52px;
    border-top: 1px solid var(--line);
}

.dp-statement-img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    object-position: top center;
}

.dp-statement-quote {
    margin: 0 0 22px;
    font-size: clamp(19px, 2.5vw, 27px);
    line-height: 1.42;
    letter-spacing: -.022em;
    font-weight: 600;
    color: var(--ink);
}

/* Second half sits back, as in the reference. */
.dp-statement-quote span { color: #a9a49c; }

.dp-statement-meta b {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
}

.dp-statement-meta span {
    font-size: 13.5px;
    color: var(--ink-soft);
}
/* ------------------------------------------------- section headers --- */

.dp-sec-head {
    display: grid;
    gap: 18px;
    align-items: end;
    margin-bottom: 42px;
}

.dp-sec-intro {
    margin: 0;
    font-size: 15px;
    line-height: 1.66;
    color: var(--ink-soft);
}

.dp-sec-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ------------------------------------------------------------- service --- */

/* Three per row on desktop, stepping down on narrower screens. */
.dp-svc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dp-svc {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dp-svc:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--shadow-card);
}

.dp-svc-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: var(--brand-tint);
    color: var(--brand-dark);
}
.dp-svc-ico .dp-i { width: 21px; height: 21px; }

.dp-svc h3 {
    margin: 0 0 9px;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.018em;
    line-height: 1.3;
}

.dp-svc p {
    margin: 0;
    font-size: 14.2px;
    line-height: 1.66;
    color: var(--ink-soft);
}

/* ---------------------------------------------------------------- team --- */

/* One member per column so the group stays on a single row. */
.dp-team {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
}

.dp-team-member {
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

/* Alternate columns put the card above the photo, so they interlock. */
.dp-team-member.is-flipped { flex-direction: column-reverse; }

.dp-team-photo {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #eceae5;
}

.dp-team-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    transition: transform .5s ease;
}

.dp-team-member:hover .dp-team-photo img { transform: scale(1.04); }

/* Sized to its text rather than stretched, so there is no dead space. */
.dp-team-card {
    display: block;
    padding: 18px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.dp-team-role {
    display: block;
    margin-bottom: 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #a09b93;
}

.dp-team-name {
    display: block;
    margin-bottom: 6px;
    font-size: 14.5px;
    font-weight: 650;
    letter-spacing: -.012em;
    color: var(--ink);
}

.dp-team-bio {
    display: block;
    font-size: 13.2px;
    line-height: 1.55;
    color: var(--ink-soft);
}

.dp-team-more {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

/* ----------------------------------------------------------------- faq --- */

.dp-faq-layout {
    display: grid;
    gap: 34px;
}

.dp-faq-contact {
    margin: 16px 0 0;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ink-soft);
}

/* Plain links — no highlight behind them. */
.dp-faq-contact a {
    color: var(--brand-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
}
.dp-faq-contact a:hover { color: var(--brand); }

.dp-faq-arrow {
    display: none;
    margin-top: 30px;
    color: var(--brand);
}
.dp-faq-arrow svg { width: 168px; height: auto; display: block; }

/* A single stacked list — never a grid. */
.dp-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.dp-faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 2px 20px;
    transition: border-color .2s ease;
}

.dp-faq-item[open] { border-color: #e2d6c6; }

.dp-faq-item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
}

.dp-faq-item summary::-webkit-details-marker { display: none; }
.dp-faq-item[open] summary { color: var(--brand-dark); }

.dp-faq-chev {
    width: 15px;
    height: 15px;
    flex: none;
    margin-top: 4px;
    opacity: .5;
    transition: transform .25s ease;
}
.dp-faq-item[open] .dp-faq-chev { transform: rotate(180deg); }

.dp-faq-answer { padding: 0 0 18px; }

.dp-faq-answer p {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.72;
    color: var(--ink-soft);
}
.dp-faq-answer p:last-child { margin-bottom: 0; }
.dp-faq-answer b { color: var(--ink); font-weight: 650; }


/* ------------------------------------------------------------- contact --- */

.dp-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: flex-start;
}

.dp-form {
    display: grid;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
}

.dp-form-row { display: grid; gap: 16px; }

.dp-form label { display: grid; gap: 7px; }

.dp-form span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.dp-form input,
.dp-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #e0ddd7;
    border-radius: 11px;
    background: var(--paper);
    font: inherit;
    font-size: 14.5px;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.dp-form input::placeholder,
.dp-form textarea::placeholder { color: #b3aea6; }

.dp-form input:focus,
.dp-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(204, 102, 0, .13);
}

.dp-form textarea { resize: vertical; min-height: 130px; }
.dp-form button { justify-self: start; padding: 13px 26px; }
.dp-form button:disabled { opacity: .6; cursor: not-allowed; }

.dp-form-note {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
}
.dp-form-note:empty { display: none; }
.dp-form-note.is-ok    { color: #1c7a3c; }
.dp-form-note.is-error { color: #c0392b; }

.dp-contact-info {
    display: grid;
    gap: 24px;
    align-content: start;
    padding: 26px 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.dp-info-block h3 {
    margin: 0 0 7px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: 0;
}

.dp-info-block p {
    margin: 0;
    font-size: 14.8px;
    line-height: 1.62;
    color: var(--ink-soft);
}

.dp-info-block a { color: inherit; text-decoration: none; }
.dp-info-block a:hover { color: var(--brand); }

/* ------------------------------------------------------------- socials --- */

/* Icon buttons, no names. */
.dp-socials { display: flex; flex-wrap: wrap; gap: 9px; }

.dp-socials a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--card);
    color: var(--ink-soft);
    text-decoration: none;
    transition: background .18s ease, color .18s ease,
                border-color .18s ease, transform .18s ease;
}

.dp-socials a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

.dp-soc-i { width: 18px; height: 18px; display: block; }

/* -------------------------------------------------------------- footer --- */

.dp-footer {
    background: #16181c;
    color: #c9ccd2;
    padding: 50px 0 0;
}

.dp-footer-top {
    display: grid;
    gap: 34px;
    padding-bottom: 38px;
}

.dp-footer-brand img {
    max-width: 170px;
    height: auto;
    margin-bottom: 14px;
}

.dp-footer-brand p {
    margin: 0 0 13px;
    font-size: 13.5px;
    color: #8f949d;
}

.dp-footer .dp-socials a {
    background: #22252b;
    border-color: #2e3239;
    color: #c9ccd2;
}
.dp-footer .dp-socials a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.dp-footer-col { display: grid; gap: 10px; align-content: start; }

.dp-footer-col h4 {
    margin: 0 0 4px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
}

.dp-footer-col a,
.dp-footer-col p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #8f949d;
    text-decoration: none;
    transition: color .18s ease;
}

.dp-footer-col a:hover { color: var(--brand); }

.dp-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.dp-footer-bottom {
    border-top: 1px solid #24272d;
    padding: 20px 0 26px;
}

.dp-footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #70747c;
    text-align: center;
}

/* ===================================================== responsive steps == */

/* ------------------------------------------------------------ carousel --- */

/* Shared by testimonials and blog: a flex track that slides sideways,
   with dots and prev/next controls underneath. */
.dp-car { position: relative; }

.dp-car-viewport {
    overflow: hidden;
    margin: 0 -4px;
    padding: 4px;
}

.dp-car-track {
    display: flex;
    align-items: stretch;
    gap: 18px;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

/* Item width is set per breakpoint; flex keeps them equal. */
.dp-car-item {
    flex: 0 0 100%;
    min-width: 0;
}

.dp-car-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
}

.dp-car-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dp-car-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: #cfcbc4;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.dp-car-dots button.is-active {
    width: 26px;
    background: var(--ink);
}

.dp-car-nav {
    display: flex;
    gap: 9px;
    margin-left: auto;
}

.dp-car-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    transition: background .18s ease, color .18s ease,
                border-color .18s ease, opacity .18s ease;
}

.dp-car-btn svg { width: 18px; height: 18px; }

.dp-car-btn:hover:not(:disabled) {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.dp-car-btn:disabled { opacity: .35; cursor: not-allowed; }

/* -------------------------------------------------------- testimonials --- */

.dp-quote {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0;
    padding: 30px 28px;
    background: #1e2a2e;
    border-radius: var(--radius-lg);
    color: #e7eaec;
}

.dp-quote-mark {
    font-size: 62px;
    line-height: .55;
    font-weight: 700;
    color: var(--brand);
    height: 30px;
}

.dp-quote blockquote {
    margin: 0;
    flex: 1;
    font-size: 15.2px;
    line-height: 1.68;
    color: #e7eaec;
}

.dp-quote-by {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-quote-avatar {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: var(--radius-pill);
    object-fit: cover;
    object-position: top center;
    border: 2px solid rgba(255, 255, 255, .14);
}

.dp-quote-avatar.is-initials {
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: 0;
}

.dp-quote-by b {
    display: block;
    font-size: 14.4px;
    font-weight: 650;
    color: #fff;
}

.dp-quote-by small {
    display: block;
    margin-top: 2px;
    font-size: 12.8px;
    color: #9aa4a8;
}

/* ---------------------------------------------------------------- blog --- */

.dp-blog-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 42px;
}

.dp-blog-more { flex: none; }

/* Three featured cards in a flex row — no carousel here. */
.dp-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: stretch;
}

.dp-post {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* The card itself does not move on hover — only the image zooms. */

.dp-post-media {
    display: block;
    background: #eceae5;
    overflow: hidden;
}

.dp-post-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .5s ease;
}

.dp-post:hover .dp-post-media img { transform: scale(1.04); }

/*
 * A post with a cover video shows the video's still frame. The badge marks
 * it as a video — the card still links to the article, and the embed only
 * plays there.
 */
.dp-post-media.is-video { position: relative; }

.dp-post-media .dp-video-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(23, 23, 25, .58);
    color: #fff;
    backdrop-filter: blur(2px);
    transition: background .2s ease, transform .2s ease;
    pointer-events: none;
}

.dp-post-media .dp-video-badge svg { width: 28px; height: 28px; }

.dp-post:hover .dp-post-media .dp-video-badge {
    background: var(--brand);
    transform: translate(-50%, -50%) scale(1.06);
}

.dp-post-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 20px;
}

.dp-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.dp-post-tags span {
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-size: 11.5px;
    font-weight: 600;
}

.dp-post-meta {
    margin: 0;
    font-size: 12.5px;
    color: var(--ink-soft);
}

.dp-post-body h3 {
    margin: 0;
    font-size: 17.5px;
    font-weight: 650;
    line-height: 1.32;
    letter-spacing: -.018em;
}

.dp-post-body h3 a {
    color: var(--ink);
    text-decoration: none;
}
.dp-post-body h3 a:hover { color: var(--brand-dark); }

.dp-post-excerpt {
    margin: 0;
    flex: 1;
    font-size: 14px;
    line-height: 1.62;
    color: var(--ink-soft);
}

/* Sits at the bottom of every card regardless of excerpt length. */
.dp-post-btn {
    align-self: flex-start;
    margin-top: 6px;
    padding: 9px 18px;
    font-size: 13.6px;
}

.dp-post-btn .dp-arrow { width: 12px; height: 12px; }

@media (min-width: 620px) {
    .dp-section { padding: 68px 0; }
    .dp-values-grid { grid-template-columns: repeat(2, 1fr); }
    .dp-footer-top { grid-template-columns: repeat(2, 1fr); }
    .dp-form { padding: 30px 28px; }
    .dp-form-row { grid-template-columns: repeat(2, 1fr); }

    .dp-statement { grid-template-columns: auto 1fr; gap: 30px; align-items: start; }
    .dp-statement-img { width: 150px; height: 150px; }

    .dp-svc-grid { grid-template-columns: repeat(2, 1fr); }
    .dp-car-item { flex: 0 0 calc((100% - 18px) / 2); }
}

@media (min-width: 900px) {
    .dp-section { padding: 88px 0; }
    .dp-split { grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
    .dp-footer-top { grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr; gap: 40px; }
    .dp-marquee-track img { height: 46px; }

    .dp-values-head { grid-template-columns: 1fr 1fr; gap: 40px; }
    .dp-values-intro { padding-bottom: 4px; }
    .dp-values-grid { grid-template-columns: repeat(4, 1fr); }

    .dp-stats { grid-template-columns: repeat(4, 1fr); }
    .dp-stat { border-bottom: 0; }
    .dp-stat:nth-child(2n) { border-right: 1px solid var(--line); }
    .dp-stat:last-child { border-right: 0; }

    .dp-story-row { grid-template-columns: 240px 1fr; gap: 40px; padding-bottom: 88px; }
    .dp-story-label span { font-size: 16px; }
    .dp-note { padding: 26px 30px; }
    .dp-statement-img { width: 170px; height: 170px; }

    .dp-sec-head { grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 52px; }
    .dp-sec-head-team { align-items: end; }
    .dp-sec-head-team .dp-sec-actions { justify-content: flex-end; }

    /* Three featured blog cards on one row. */
    .dp-post { flex: 1 1 0; }

    /* Three carousel items per view. */
    .dp-car-item { flex: 0 0 calc((100% - 36px) / 3); }

    /* Three services per row. */
    .dp-svc-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }

    /* Four members sharing one flex row. */
    .dp-team-member { flex: 1 1 0; min-width: 0; }
    .dp-team-member.is-flipped { margin-top: 30px; }

    /* Two columns: heading left, one stacked list of questions right. */
    .dp-faq-layout { grid-template-columns: 340px 1fr; gap: 52px; align-items: start; }
    .dp-faq-aside { position: sticky; top: 104px; }
    .dp-faq-arrow { display: block; }

    /* Details on the left, form on the right. */
    .dp-contact { flex-wrap: nowrap; gap: 24px; }
    .dp-contact-info { flex: 0 1 360px; }
    .dp-form { flex: 1 1 auto; }
}

@media (min-width: 1200px) {
    .dp-section { padding: 100px 0; }
    .dp-story-row { grid-template-columns: 300px 1fr; gap: 56px; }
    .dp-faq-layout { grid-template-columns: 380px 1fr; gap: 64px; }
    .dp-contact { gap: 28px; }
    .dp-contact-info { flex: 0 1 400px; }
}

/* ------------------------------------------------- footer additions --- */

.dp-footer-office { margin-bottom: 14px; }

.dp-footer-office b {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #d8dae0;
}

.dp-footer-office p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #8f949d;
}

.dp-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 22px;
}

.dp-footer-legal { display: flex; gap: 20px; }

.dp-footer .dp-footer-legal a {
    font-size: 13px;
    font-weight: 500;
    color: #9aa0a9;
    text-decoration: none;
    transition: color .18s ease;
}
.dp-footer .dp-footer-legal a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 620px) {
    .dp-footer-bottom { justify-content: space-between; }
}

/* ------------------------------------------------------- inner pages --- */

/* Compact hero for pages below the homepage. */
.dp-page-hero {
    position: relative;
    z-index: 1;
    padding: 46px 0 8px;
    text-align: center;
}

.dp-page-title {
    margin: 0 auto 16px;
    max-width: 18ch;
    font-size: clamp(32px, 5.4vw, 56px);
    line-height: 1.06;
    letter-spacing: -.034em;
    font-weight: 700;
}

.dp-page-title em { font-style: normal; color: var(--brand); }

.dp-page-lead {
    margin: 0 auto 26px;
    max-width: 62ch;
    font-size: 16px;
    line-height: 1.62;
    color: var(--ink-soft);
}

/* Every team member, four to a row. */
.dp-team-all .dp-team-member { flex: 1 1 210px; }

/* Closing call to action. */
.dp-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 34px 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.dp-cta .dp-h2 { margin-bottom: 10px; }
.dp-cta .dp-sec-intro { max-width: 52ch; }

.dp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: none;
}

@media (min-width: 900px) {
    .dp-page-hero { padding: 58px 0 10px; }
    .dp-cta { padding: 40px 44px; }
}

/* ---------------------------------------------------------- about page --- */

.dp-about-intro { padding-top: 34px; }

/* Heading on the left, statement on the right. */
.dp-lede {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px 40px;
    margin-bottom: 34px;
}

.dp-lede-title {
    flex: 1 1 320px;
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 700;
}

.dp-lede-text {
    flex: 1 1 380px;
    margin: 0;
    padding-top: 8px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.dp-lede-text p { margin: 0 0 14px; }
.dp-lede-text p:last-child { margin-bottom: 0; }

/* Full-width photograph between blocks. */
.dp-wide-img {
    margin: 0 0 44px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #eceae5;
}

.dp-wide-img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

/* Plain figures on one line — no boxes, no borders. */
.dp-figures {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 44px;
    margin-bottom: 56px;
}

.dp-figure { flex: 1 1 140px; min-width: 0; }

.dp-figure-value {
    font-size: clamp(30px, 4.4vw, 44px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--ink);
}

.dp-figure-label {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--ink-soft);
}

/* Vision and mission, stacked with a rule between. */
.dp-defs { flex: 1 1 380px; }

.dp-def { padding-bottom: 20px; }

.dp-def + .dp-def {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.dp-def h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--ink);
}

.dp-def p {
    margin: 0;
    font-size: 14.4px;
    line-height: 1.68;
    color: var(--ink-soft);
}

@media (min-width: 900px) {
    .dp-lede { gap: 20px 64px; margin-bottom: 44px; }
    .dp-lede-split { align-items: flex-start; }
    .dp-figures { gap: 28px 56px; }
    .dp-wide-img { margin-bottom: 56px; }
}

/* --------------------------------------------------- layout corrections --- */

/* More air between the header and the first heading on inner pages. */
.dp-about-intro { padding-top: 58px; }

/* Blog and team list pages: fixed column count so a short final row cannot
   stretch its items to full width. */
.dp-posts-page .dp-post,
.dp-team-all .dp-team-member { flex: 0 1 100%; }

/* Post titles use h2 on the blog index — style them like the h3 elsewhere
   so they never fall back to the browser's blue underlined link. */
.dp-post-body h2 {
    margin: 0;
    font-size: 17.5px;
    font-weight: 650;
    line-height: 1.32;
    letter-spacing: -.018em;
}

.dp-post-body h2 a,
.dp-post-body h3 a {
    color: var(--ink);
    text-decoration: none;
}

.dp-post-body h2 a:hover,
.dp-post-body h3 a:hover { color: var(--brand-dark); }

@media (min-width: 620px) {
    .dp-posts-page .dp-post { flex: 0 1 calc((100% - 18px) / 2); }
    .dp-team-all .dp-team-member { flex: 0 1 calc((100% - 18px) / 2); }
}

@media (min-width: 900px) {
    .dp-about-intro { padding-top: 76px; }
    .dp-posts-page .dp-post { flex: 0 1 calc((100% - 36px) / 3); }
    .dp-team-all .dp-team-member { flex: 0 1 calc((100% - 54px) / 4); }
}

/* ------------------------------------------------------- product page --- */

/* Category cards. Given their own section so they are not crowding the
   hero buttons above them. */
.dp-cats { padding-top: 42px; padding-bottom: 0; }

.dp-cats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.dp-cat {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 240px;
    min-width: 0;
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.dp-cat:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--shadow-card);
}

.dp-cat-ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand-dark);
    transition: background .2s ease, color .2s ease;
}
.dp-cat-ico .dp-i { width: 20px; height: 20px; }
.dp-cat:hover .dp-cat-ico { background: var(--brand); color: #fff; }

.dp-cat-text { flex: 1; min-width: 0; }

.dp-cat-text b {
    display: block;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.014em;
    color: var(--ink);
}

.dp-cat-text small {
    display: block;
    margin-top: 2px;
    font-size: 12.4px;
    line-height: 1.4;
    color: var(--ink-soft);
}

.dp-cat-count {
    flex: none;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
}

.dp-books {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: stretch;
}

.dp-book {
    flex: 0 1 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dp-book-cover {
    background: #f1efea;
    overflow: hidden;
}

.dp-book-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform .5s ease;
}

.dp-book:hover .dp-book-cover img { transform: scale(1.04); }

.dp-book-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    flex: 1;
    padding: 18px 16px;
}

.dp-book-body h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.34;
    letter-spacing: -.012em;
    color: var(--ink);
}

/* Rating */
.dp-stars { display: inline-flex; gap: 2px; color: var(--brand); }

.dp-star {
    width: 15px;
    height: 15px;
    fill: #ded9d1;
}
.dp-star.is-full { fill: currentColor; }
.dp-star.is-half { fill: url(#half1); fill: currentColor; opacity: .55; }

.dp-book-price {
    margin: auto 0 0;
    padding-top: 4px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
}

.dp-book-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13.6px;
}
.dp-book-btn .dp-arrow { width: 12px; height: 12px; }

@media (min-width: 480px) {
    .dp-book { flex: 0 1 calc((100% - 18px) / 2); }
}

@media (min-width: 760px) {
    .dp-book { flex: 0 1 calc((100% - 36px) / 3); }
}

@media (min-width: 1040px) {
    .dp-book { flex: 0 1 calc((100% - 54px) / 4); }
    .dp-cats { padding: 18px 0 8px; }
}

/* Basic has only two books — give them half the row each, so they read as
   featured rather than stranded at subject-card size. */
@media (min-width: 760px) {
    .dp-books--basic .dp-book { flex: 0 1 calc((100% - 18px) / 2); }
    /* Portrait covers shown whole rather than cropped to a wide box. */
    .dp-books--basic .dp-book-cover {
        display: grid;
        place-items: center;
        padding: 22px;
        background: var(--paper);
    }
    .dp-books--basic .dp-book-cover img {
        aspect-ratio: auto;
        max-height: 460px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        border-radius: 8px;
    }
    .dp-books--basic .dp-book-body { padding: 24px 22px; }
    .dp-books--basic .dp-book-body h3 { font-size: 19px; }

    /* Combination packs: three per row. */
    .dp-books--packs .dp-book { flex: 0 1 calc((100% - 36px) / 3); }
}

@media (min-width: 1040px) {
    .dp-books--basic .dp-book { flex: 0 1 calc((100% - 18px) / 2); }
    .dp-books--packs .dp-book { flex: 0 1 calc((100% - 36px) / 3); }
}

/* --------------------------------------------------------- article page --- */

.dp-article-tags { justify-content: center; margin-bottom: 14px; }

.dp-article-meta {
    margin: 0;
    font-size: 13.5px;
    color: var(--ink-soft);
}

.dp-article-body {
    max-width: 72ch;
    margin: 0 auto;
    padding-bottom: 30px;
}

.dp-article-lead {
    margin: 0 0 22px;
    font-size: 19px;
    line-height: 1.7;
    color: var(--ink);
    font-weight: 500;
}

.dp-article-body h1,
.dp-article-body h2,
.dp-article-body h3,
.dp-article-body h4,
.dp-article-body h5,
.dp-article-body h6 {
    color: var(--ink);
    letter-spacing: -0.02em;
    /* A heading needs to sit closer to the text it introduces than to the
       paragraph it follows, but not so far that the article feels loose. */
    margin-top: 1.15em;
    margin-bottom: 0.45em;
    line-height: 1.28;
}

.dp-article-body h1 {
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 800;
}

.dp-article-body h2 {
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 750;
}

.dp-article-body h3 {
    font-size: clamp(19px, 2.2vw, 23px);
    font-weight: 700;
}

.dp-article-body h4 {
    font-size: clamp(17px, 1.8vw, 20px);
    font-weight: 650;
}

.dp-article-body h5 {
    font-size: 17px;
    font-weight: 650;
    color: var(--brand-dark, #cc6600);
}

.dp-article-body h6 {
    font-size: 14.5px;
    font-weight: 700;
    /* No uppercase anywhere on this site — the weight and colour carry it. */
    letter-spacing: 0.02em;
    color: var(--ink-soft);
}

.dp-article-body p {
    font-size: 17px;
    line-height: 1.76;
    color: var(--ink);
    margin: 0 0 17px;
}

/* Share — sits under the article, separated by a rule rather than a gap. */
.dp-share {
    display: flex;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.dp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
}

.dp-share-ico {
    width: 18px;
    height: 18px;
    flex: none;
}

.dp-article-body strong,
.dp-article-body b {
    font-weight: 700;
    color: var(--ink);
}

.dp-article-body em,
.dp-article-body i {
    font-style: italic;
}

.dp-article-body a {
    color: var(--brand, #cc6600);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.dp-article-body a:hover {
    color: var(--brand-dark, #a85200);
}

.dp-article-body blockquote {
    border-left: 3.5px solid var(--brand, #cc6600);
    background: #fff8f2;
    padding: 18px 24px;
    border-radius: 0 12px 12px 0;
    margin: 22px 0 22px;
    font-size: 17.5px;
    font-style: italic;
    line-height: 1.66;
    color: var(--ink);
}

.dp-article-body blockquote p:last-child {
    margin-bottom: 0;
}

.dp-article-body ul,
.dp-article-body ol {
    margin: 0 0 18px;
    padding-left: 28px;
    font-size: 17px;
    line-height: 1.72;
    color: var(--ink);
}

.dp-article-body li {
    margin-bottom: 8px;
}

.dp-article-body code {
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(23, 23, 25, .06);
    font-size: .92em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dp-article-body hr {
    border: 0;
    height: 1px;
    background: var(--line, #e8e6e1);
    margin: 22px 0;
}

/* Standalone single image inside article */
.dp-article-body > img,
.dp-article-body figure > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg, 16px);
    margin: 22px 0;
    box-shadow: 0 8px 24px rgba(23, 23, 25, .08);
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
}

.dp-article-body > img:hover,
.dp-article-body figure > img:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(23, 23, 25, .12);
}

/* Sub-image Gallery: 3 in each row */
.dp-gallery {
    display: grid;
    gap: 16px;
    margin: 22px 0 26px;
    width: 100%;
}

.dp-gallery-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dp-gallery-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 820px) {
    .dp-gallery-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .dp-gallery-2,
    .dp-gallery-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.dp-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--line, #e8e6e1);
    background: var(--card, #fff);
    box-shadow: 0 4px 14px rgba(23, 23, 25, .06);
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
}

.dp-gallery img:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 22px rgba(23, 23, 25, .13);
}

/* Video embed */
.dp-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 28px 0;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(23, 23, 25, .12);
    background: #000;
}

.dp-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Interactive Image Lightbox & Resizer Modal */
.dp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 22, 25, 0.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    padding: 20px;
    user-select: none;
}

.dp-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.dp-lightbox-stage {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dp-lightbox-img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.1, 1);
    transform-origin: center center;
    cursor: grab;
}

.dp-lightbox-img:active {
    cursor: grabbing;
}

.dp-lightbox-toolbar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 36, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
    color: #fff;
    z-index: 10000;
}

.dp-lightbox-btn {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
}

.dp-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ff9436;
}

.dp-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30, 36, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, transform .2s;
    z-index: 10000;
}

.dp-lightbox-close:hover {
    background: rgba(230, 60, 60, 0.9);
    transform: scale(1.05);
}

.dp-lightbox-zoom-val {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    min-width: 48px;
    text-align: center;
    color: #e0deda;
    font-family: ui-monospace, monospace;
}

/* ---------------------------------------------------------- career page --- */

.dp-jobs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dp-job {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    padding: 22px 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dp-job:hover {
    border-color: transparent;
    box-shadow: var(--shadow-card);
}

.dp-job-main { flex: 1 1 260px; min-width: 0; }

.dp-job-dept {
    display: block;
    margin-bottom: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-dark);
}

.dp-job-role {
    display: block;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.34;
    letter-spacing: -.016em;
    color: var(--ink);
}

.dp-job-meta { display: flex; flex-wrap: wrap; gap: 7px; }

.dp-job-tag {
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-soft);
}

.dp-job-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
    white-space: nowrap;
}

.dp-job-go .dp-arrow { width: 12px; height: 12px; transition: transform .2s ease; }
.dp-job:hover .dp-job-go .dp-arrow { transform: translate(2px, -2px); }

/* Culture grid has no closing rule under it. */
.dp-values-grid--flat { padding-bottom: 0; border-bottom: 0; }

@media (min-width: 620px) {
    .dp-job { padding: 24px 28px; }
}

/* --------------------------------------------------------- contact page --- */

.dp-form-head { margin-bottom: 4px; }

.dp-form-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.022em;
}

.dp-form-head p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-soft);
}

.dp-map {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #eceae5;
}

.dp-map iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

@media (min-width: 900px) {
    .dp-map iframe { height: 560px; }
}

/* ------------------------------------------------------------ role page --- */

.dp-role-hero .dp-page-title { max-width: 22ch; }

.dp-role-perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}

.dp-role-perks span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--card);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
}

.dp-role-perks .dp-i { width: 15px; height: 15px; color: var(--brand); }

.dp-role {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    align-items: flex-start;
}

.dp-role-side { flex: 1 1 260px; }

.dp-role-card {
    padding: 24px 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.dp-role-card h2 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.dp-role-card dl { margin: 0 0 20px; }

.dp-role-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.dp-role-card dl > div:last-child { border-bottom: 0; }

.dp-role-card dt {
    font-size: 13.5px;
    color: var(--ink-soft);
}

.dp-role-card dd {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    text-align: right;
    color: var(--ink);
}

.dp-role-card .dp-btn { width: 100%; justify-content: center; }

.dp-role-body { flex: 1 1 420px; min-width: 0; }

.dp-role-intro {
    margin: 0 0 30px;
    font-size: 16.5px;
    line-height: 1.72;
    color: var(--ink-soft);
}

.dp-role-h2 {
    margin: 0 0 18px;
    font-size: clamp(21px, 3vw, 27px);
    font-weight: 700;
    letter-spacing: -.024em;
}

.dp-role-body .dp-checklist { margin-bottom: 34px; }

/* Application form */
.dp-role-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.dp-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1 1 260px;
    min-width: 0;
}

.dp-field.is-wide { flex: 1 1 100%; }

.dp-field > span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.dp-field > span i {
    font-style: normal;
    color: var(--brand);
}

.dp-role-form select,
.dp-role-form input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0ddd7;
    border-radius: 11px;
    background: var(--paper);
    font: inherit;
    font-size: 14.5px;
    color: var(--ink);
}

.dp-role-form input[type="file"] { padding: 10px 14px; font-size: 13.5px; }

.dp-role-form select:focus,
.dp-role-form input:focus,
.dp-role-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(204, 102, 0, .13);
}

@media (min-width: 900px) {
    .dp-role { gap: 44px; flex-wrap: nowrap; }
    .dp-role-side { flex: 0 0 300px; position: sticky; top: 104px; }
    .dp-role-form { gap: 18px 20px; }
}

/* ------------------------------------------------- application layout --- */

.dp-apply {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    align-items: flex-start;
}

.dp-apply-side {
    flex: 1 1 300px;
    min-width: 0;
}

.dp-apply-art {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto 22px;
}

.dp-apply-note {
    padding: 22px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.dp-apply-note h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.014em;
}

.dp-apply-note .dp-checklist { margin-bottom: 0; gap: 11px; }
.dp-apply-note .dp-checklist li { font-size: 13.6px; }

/* Form sits on the right and takes the remaining width. */
.dp-apply .dp-role-form {
    flex: 1 1 420px;
    min-width: 0;
    align-content: flex-start;
}

@media (min-width: 1040px) {
    .dp-apply { flex-wrap: nowrap; gap: 44px; }
    .dp-apply-side { flex: 0 0 340px; position: sticky; top: 104px; }
    .dp-apply .dp-role-form { flex: 1 1 auto; }
}

/* ----------------------------------------------------------- app page --- */

.dp-app-hero {
    position: relative;
    z-index: 1;
    padding: 44px 0 10px;
}

.dp-app-hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.dp-app-hero-text { flex: 1 1 340px; min-width: 0; }

.dp-app-title {
    margin: 0 0 18px;
    font-size: clamp(34px, 5.4vw, 60px);
    line-height: 1.04;
    letter-spacing: -.036em;
    font-weight: 700;
}
.dp-app-title em { font-style: normal; color: var(--brand); }

.dp-app-lead {
    margin: 0 0 28px;
    max-width: 48ch;
    font-size: 16.5px;
    line-height: 1.64;
    color: var(--ink-soft);
}

.dp-app-cta { justify-content: flex-start; }

.dp-app-note {
    margin: 18px 0 0;
    font-size: 13.5px;
    color: var(--ink-soft);
}

.dp-app-hero-art { flex: 1 1 320px; min-width: 0; }

.dp-phone-art {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
}

/* Store button with the two-line label. */
.dp-btn-store {
    gap: 11px;
    padding: 11px 22px;
    text-align: left;
}

.dp-btn-store .dp-play { width: 22px; height: 22px; }
.dp-btn-store span { display: block; line-height: 1.15; }

.dp-btn-store small {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    opacity: .85;
}

.dp-btn-store b {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

/* Steps */
.dp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-reset: step;
}

.dp-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dp-step:hover { border-color: transparent; box-shadow: var(--shadow-card); }

.dp-step-no {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-size: 14.5px;
    font-weight: 700;
}

.dp-step-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
}

/* Closing band */
.dp-app-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 34px 30px;
    background: #1e2a2e;
    border-radius: var(--radius-lg);
    color: #e7eaec;
}

.dp-app-band-text { flex: 1 1 320px; min-width: 0; }

.dp-app-band h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.12;
    letter-spacing: -.028em;
    font-weight: 700;
    color: #fff;
}

.dp-app-band p {
    margin: 0 0 22px;
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.66;
    color: #9aa4a8;
}

.dp-btn-store-light {
    background: #fff;
    color: var(--ink);
}
.dp-btn-store-light:hover { background: #f1efea; }

.dp-app-band-art {
    flex: 0 1 300px;
    width: 100%;
    max-width: 300px;
    height: auto;
}

@media (min-width: 900px) {
    .dp-app-hero { padding: 58px 0 14px; }
    .dp-app-hero-row { flex-wrap: nowrap; gap: 44px; }
    .dp-app-band { padding: 44px 48px; }
}

/* ------------------------------------------------------- back to top --- */

.dp-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    box-shadow: 0 12px 28px -10px rgba(23, 23, 25, .45);
    transition: opacity .25s ease, transform .25s ease,
                visibility .25s ease, background .2s ease;
}

.dp-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dp-top:hover { background: var(--brand-dark); }
.dp-top svg { width: 19px; height: 19px; }

@media (min-width: 900px) {
    .dp-top { right: 28px; bottom: 28px; width: 50px; height: 50px; }
}

/* Steps beside their artwork. */
.dp-steps-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.dp-steps-row .dp-steps { flex: 1 1 340px; min-width: 0; }

.dp-steps-visual { flex: 1 1 320px; min-width: 0; }

.dp-steps-art {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    margin: 0 auto;
}

@media (min-width: 980px) {
    .dp-steps-row { flex-wrap: nowrap; gap: 48px; }
    .dp-steps-visual { flex: 0 0 420px; }
}

/* ---------------------------------------------------------------- toasts --- */

.dp-toasts {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.dp-toast {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    background: var(--card);
    border: 0;
    border-radius: var(--radius-md);
    /* No border — depth comes from the shadow alone. */
    box-shadow: 0 16px 38px -14px rgba(23, 23, 25, .35);
    opacity: 0;
    transform: translateY(14px) scale(.98);
    transition: opacity .26s ease, transform .26s cubic-bezier(.22, .61, .36, 1);
    pointer-events: auto;
}

.dp-toast.is-in { opacity: 1; transform: translateY(0) scale(1); }

.dp-toast svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

.dp-toast p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
}

.dp-toast button {
    flex: none;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}
.dp-toast button:hover { background: rgba(23, 23, 25, .06); color: var(--ink); }

.dp-toast.is-ok    svg { color: #1c7a3c; }
.dp-toast.is-error svg { color: #c0392b; }
.dp-toast.is-info  svg { color: var(--brand); }

@media (min-width: 900px) {
    .dp-toasts { right: 24px; bottom: 24px; }
}

/* Keep toasts clear of the back-to-top button. */
@media (max-width: 899px) {
    .dp-toasts { bottom: 78px; }
}

/* ------------------------------------------------- form width fixes --- */

/* Stacked on narrow screens both panels must take the full width. Without
   an explicit basis they fall back to flex: 0 1 auto and shrink to their
   content, which left the form floating narrow beside empty space. */
.dp-contact-info,
.dp-contact .dp-form {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}

.dp-apply-side,
.dp-apply .dp-role-form {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}

/* Inputs must never exceed their column. */
.dp-form input,
.dp-form select,
.dp-form textarea,
.dp-role-form input,
.dp-role-form select,
.dp-role-form textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.dp-form textarea,
.dp-role-form textarea { resize: vertical; }

/* On phones the submit button spans the form rather than hugging its text. */
@media (max-width: 619px) {
    .dp-form button[type="submit"],
    .dp-role-form button[type="submit"] {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 900px) {
    /* Details fixed, form takes the rest. */
    .dp-contact-info { flex: 0 1 360px; width: auto; }
    .dp-contact .dp-form { flex: 1 1 auto; width: auto; }
}

@media (min-width: 1040px) {
    .dp-apply-side { flex: 0 0 340px; width: auto; }
    .dp-apply .dp-role-form { flex: 1 1 auto; width: auto; }
}

/* --------------------------------------------------- quick contact --- */

.dp-quick { padding-top: 34px; padding-bottom: 0; }

.dp-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
}

.dp-quick-card {
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dp-quick-card:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--shadow-card);
}

.dp-quick-ico {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand-dark);
    transition: background .2s ease, color .2s ease;
}
.dp-quick-ico .dp-i { width: 20px; height: 20px; }
.dp-quick-card:hover .dp-quick-ico { background: var(--brand); color: #fff; }

.dp-quick-card h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
}

.dp-quick-card p {
    margin: 0;
    flex: 1;
    font-size: 14.4px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* The action is the whole point of the card, so it reads as a button. */
.dp-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--paper);
    font-size: 13.8px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    text-align: center;

    /*
     * An email address stays on one line. It used to carry
     * word-break: break-word, which split deaconspublishers@gmail.com across
     * two lines inside the narrow four-up card. The nowrap forbids that, and
     * the font-size steps down below where the card is too tight to hold it.
     */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.dp-quick-action:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

@media (min-width: 620px) {
    .dp-quick-card { flex: 1 1 calc((100% - 16px) / 2); }
}

@media (min-width: 980px) {
    .dp-quick { padding-top: 44px; }
    .dp-quick-card { flex: 1 1 calc((100% - 48px) / 4); }

    /*
     * Four to a row is where the pill is narrowest — around 145px of text
     * width at 980px, widening to the full 13.8px as the container reaches
     * its 1240px cap. Scaling with the viewport keeps the address on one
     * line the whole way across that range.
     */
    .dp-quick-action { font-size: clamp(11px, 1.15vw, 13.8px); }
}


