/* ==========================================================================
   V26 - sir's feedback round
   ========================================================================== */

/* 1. Highlighted (dark) trust tile */
/* 2. Problem section: the paragraph under the heading is two balanced lines */
.dmc-lead--two { max-width: 900px; text-wrap: balance; }

/* 3. Patient journey: labels stay on one line and no word is ever cut */
.dmc-flow__title, .dmc-flow__text { overflow-wrap: normal; word-break: normal; hyphens: none; }
.dmc-flow--journey .dmc-flow__title { white-space: nowrap; font-size: clamp(.8rem, 1.2vw, .95rem); }
@media (max-width: 999px) { .dmc-flow--journey .dmc-flow__title { white-space: normal; font-size: 1rem; } }

/* sentence under the journey circles: bigger, one line on desktop */
.dmc-lead--big { max-width: none; font: 600 clamp(1.15rem, 2.1vw, 1.55rem)/1.4 var(--font-heading); color: var(--navy); text-wrap: balance; }
@media (min-width: 1000px) { .dmc-lead--big { white-space: nowrap; } }

/* "How it works": every step text gets the same room */
.dmc-flow--process .dmc-flow__text { max-width: 230px; text-wrap: balance; }

/* 4. Exit popup: light email box, dark readable text */
.dmc-exitpopup .form-input, .dmc-exitpopup input[type="email"] {
    background: #f3f8fa; color: #0f2233; border: 1.5px solid #cfdbe4; caret-color: var(--teal-d);
}
.dmc-exitpopup .form-input::placeholder { color: #51657a; opacity: 1; }
.dmc-exitpopup .form-input:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 165, 168, .18); outline: none; }

/* 5. "What we do" panels: the picture fills the whole panel width, no white sides */
.dmc-expand--art .dmc-expand__item.has-img.is-active::before {
    background-size: cover; background-position: center; background-color: transparent;
}

/* 6. Review band: video clips + numbers, in the site's navy and teal */
.dmc-showcase {
    position: relative; isolation: isolate; overflow: hidden; max-width: 1060px; margin: 2.6rem auto 0;
    padding: clamp(1rem, 2.4vw, 1.8rem); border-radius: 28px;
    background: radial-gradient(120% 90% at 88% 0%, rgba(0, 165, 168, .42), transparent 60%),
                radial-gradient(80% 70% at 0% 100%, rgba(255, 176, 32, .14), transparent 60%),
                linear-gradient(160deg, #0a1a2b 0%, #0b3150 60%, #0b4a5e 100%);
    box-shadow: 0 30px 70px -24px rgba(10, 26, 43, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.dmc-showcase .dmc-videos { max-width: none; margin: 0; }
.dmc-showcase .dmc-video { border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 18px 40px rgba(0, 0, 0, .38); }
.dmc-showcase__stats { list-style: none; margin: 1.6rem 0 0; padding: 1.4rem 0 .3rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .14); }
.dmc-showcase__stats li { padding: 0 1rem; border-left: 1px solid rgba(255, 255, 255, .18); text-align: left; }
.dmc-showcase__stats li:first-child { border-left: 0; padding-left: 0; }
.dmc-showcase__stats b { display: block; font: 800 clamp(1.8rem, 3.4vw, 2.6rem)/1.05 var(--font-heading); color: #fff; }
.dmc-showcase__stats span { display: block; margin-top: .4rem; color: rgba(255, 255, 255, .82); font: 600 .88rem/1.35 var(--font-heading); }
@media (max-width: 860px) {
    .dmc-showcase__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 0; }
    .dmc-showcase__stats li:nth-child(odd) { border-left: 0; padding-left: 0; }
    .dmc-showcase__stats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* 7. Who we help page: smaller photo cards, sectors in the same style */
.dmc-card--compact { padding: .9rem .9rem 1.3rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.dmc-card--compact .dmc-card__photo { aspect-ratio: 16 / 10; margin-bottom: 1rem; border-radius: 14px; }
.dmc-card--compact .dmc-card__icon { width: 2.8rem; height: 2.8rem; border-radius: 14px; margin-bottom: .7rem; }
.dmc-card--compact .dmc-card__icon .dmc-icon { width: 1.35rem; height: 1.35rem; }
.dmc-card--compact .dmc-card__photo + .dmc-card__icon { margin-top: -2.1rem; }
.dmc-card--compact h3 { font-size: 1rem; line-height: 1.3; margin: 0 0 .4rem; }
.dmc-card--compact p { font-size: .9rem; line-height: 1.55; margin: 0; max-width: none; padding: 0 .3rem; }
a.dmc-card--sector { color: inherit; text-decoration: none; }
a.dmc-card--sector:hover h3 { color: var(--teal-d); }
@media (min-width: 1001px) { .dmc-who-grid .dmc-card--compact h3 { white-space: nowrap; } }

/* 8. Site-wide rule: headings and texts of cards in one row use the same height (set by v26.js) */
.dmc-card h3, .dmc-card h4, .dmc-trust__card strong { text-wrap: balance; overflow-wrap: normal; }

/* ==========================================================================
   V27
   ========================================================================== */

/* 9. Footer contact list: roomier rows so a wrapped email never touches the phone row,
      and a brand column wide enough to keep the email on one line on desktop */
.dmc-ft__contact { gap: 1.15rem; }
.dmc-ft__contact li { margin: 0; }
.dmc-ft__contact a { align-items: center; line-height: 1.45; }
.dmc-ft__contact a span { line-height: 1.45; padding: .1rem 0; }
@media (min-width: 1131px) { .dmc-ft__main { grid-template-columns: 320px minmax(0, 1fr); gap: 3rem; } }
@media (min-width: 1131px) { .dmc-ft__contact a span { white-space: nowrap; } }

/* 10. Clutch review cards */
.dmc-review__c { color: #fff; background: #17313b; border-color: #17313b; font-family: var(--font-heading); position: relative; }
.dmc-review__c::after { content: ""; position: absolute; right: 3px; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: #ef4335; }
.dmc-review figcaption { display: flex; align-items: center; gap: .6rem; }
.dmc-reviews + .dmc-yt-channel, .dmc-head + .dmc-yt-channel { margin-top: 1.6rem; text-align: center; }

/* 11. Equal cards, everywhere: cards in one row share height, headings sit on one baseline,
      and the text blocks line up (min-heights are set per row by v26.js) */
.dmc-card, .dmc-trust__card, .dmc-badge, .dmc-review, .dmc-logo-card { height: auto; }
.dmc-grid, .dmc-trust__grid, .dmc-reviews, .dmc-badges, .dmc-who-grid, .dmc-flow__list { align-items: stretch; }
.dmc-card h3, .dmc-card h4, .dmc-badge b { overflow-wrap: normal; word-break: normal; hyphens: none; }

/* 12. Clutch review cards (3 in a row) */
.dmc-reviews--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1160px; }
@media (max-width: 960px) { .dmc-reviews--3 { grid-template-columns: 1fr; max-width: 560px; } }
.dmc-review { display: flex; flex-direction: column; }
.dmc-review blockquote { flex: 1 1 auto; }
.dmc-review__top { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.dmc-review__top .dmc-stars { margin: 0; }
.dmc-review__score { font: 800 1rem var(--font-heading); color: var(--navy); }
.dmc-review__proj { margin: 0 0 .7rem; font: 700 .8rem/1.4 var(--font-heading); letter-spacing: .02em; color: var(--teal-d); }
.dmc-review figcaption { align-items: center; }
.dmc-review figcaption small { display: block; margin-top: .15rem; font-weight: 500; font-size: .78rem; color: #51657a; }

/* ==========================================================================
   V27b - equal text in every card
   ========================================================================== */

/* even line lengths inside cards */
.dmc-card p, .dmc-trust__card small, .dmc-flow__text, .dmc-industry-card p, .dmc-case p, .dmc-review blockquote { text-wrap: balance; }
.dmc-case { display: flex; flex-direction: column; text-align: center; }
.dmc-case__result { margin-top: auto; }

/* trust strip: same height; 4th card is a link */
.dmc-trust__grid { align-items: stretch; }
a.dmc-trust__card--hl { color: inherit; text-decoration: none; cursor: pointer; position: relative; }
a.dmc-trust__card--hl:focus-visible { outline: 3px solid #ffb22e; outline-offset: 3px; }
.dmc-trust__go { position: absolute; top: .7rem; right: .9rem; color: #7ff0f0; font: 800 1.05rem/1 var(--font-heading); transition: transform .25s var(--ease), color .25s; }
a.dmc-trust__card--hl:hover .dmc-trust__go { transform: translate(3px, -3px); color: #fff; }

/* "Why DMC" lead: exactly two even lines on desktop */
.dmc-lead--pair { max-width: none; text-wrap: balance; }
.dmc-lead--pair span { display: inline; }
@media (min-width: 1000px) {
    .dmc-lead--pair span { display: block; white-space: nowrap; }
}

/* industries photo cards: 2 even lines, no "..." */
.dmc-ind-marquee .dmc-industry-card--photo p { display: block; -webkit-line-clamp: unset; min-height: 3.1em; }

/* Clutch review cards: no reviewer names, centred footer */
.dmc-review figcaption { justify-content: center; text-align: center; }
.dmc-review figcaption > span:last-child { color: var(--navy); font-weight: 700; font-size: .9rem; }
.dmc-review blockquote { text-align: center; }
.dmc-review__proj { text-align: center; }
.dmc-review__top { justify-content: center; }

/* metric ("how we measure") cards: one centred line each, same height */
.dmc-measure, .dmc-measure > * { text-align: center; }

/* ==========================================================================
   V28 - strict equal text: team page uses the same 4-per-row grid as About
   ========================================================================== */
@media (min-width: 1001px) {
    .dmc-team--center .dmc-member { flex: 0 1 calc((100% - 3.9rem) / 4); max-width: calc((100% - 3.9rem) / 4); }
}
a.dmc-card--cta, a.dmc-card[href] { color: inherit; text-decoration: none; }

/* V28. Review band: one big in-page player, glowing stage, playlist, stats */
.dmc-showcase { max-width: 1120px; padding: clamp(.9rem, 2.2vw, 1.6rem) clamp(.9rem, 2.2vw, 1.6rem) clamp(1.2rem, 2.4vw, 1.8rem); }
.dmc-showcase::before { content: ""; position: absolute; inset: auto -10% -45% -10%; height: 70%; z-index: -1; background: radial-gradient(60% 100% at 50% 100%, rgba(0, 240, 255, .28), transparent 70%); filter: blur(30px); pointer-events: none; }
.dmc-stage__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #050b14;
    box-shadow: 0 0 0 1px rgba(0, 240, 255, .35), 0 0 60px -6px rgba(0, 165, 168, .55), 0 30px 60px -20px rgba(0, 0, 0, .7); }
.dmc-stage__poster, .dmc-stage__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.dmc-stage__poster { transition: transform .8s var(--ease, ease), filter .4s; }
.dmc-stage__frame:hover .dmc-stage__poster { transform: scale(1.03); }
.dmc-stage__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 11, 20, .15) 0%, rgba(5, 11, 20, 0) 40%, rgba(5, 11, 20, .6) 100%); }
.dmc-stage__frame.is-playing::after, .dmc-stage__frame.is-playing .dmc-stage__badge { display: none; }
.dmc-stage__play { position: absolute; z-index: 2; top: 50%; left: 50%; width: clamp(68px, 9vw, 96px); aspect-ratio: 1; margin: calc(clamp(68px, 9vw, 96px) / -2) 0 0 calc(clamp(68px, 9vw, 96px) / -2); border: 0; border-radius: 50%; cursor: pointer;
    background: linear-gradient(135deg, #00F0FF, #00A5A8); color: #04202a; display: grid; place-items: center; box-shadow: 0 12px 40px rgba(0, 240, 255, .45); transition: transform .3s var(--ease, ease); }
.dmc-stage__play svg { width: 42%; height: 42%; fill: currentColor; margin-left: 6%; }
.dmc-stage__play:hover { transform: scale(1.1); }
.dmc-stage__play:focus-visible, .dmc-stage__item:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.dmc-stage__ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(0, 240, 255, .6); animation: dmcPulse 2.4s ease-out infinite; }
@keyframes dmcPulse { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.dmc-stage__badge { position: absolute; z-index: 2; left: 1rem; bottom: 1rem; padding: .45rem .9rem; border-radius: 999px; color: #fff; font: 700 .82rem var(--font-heading); background: rgba(5, 11, 20, .6); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .2); }
.dmc-stage__list { display: flex; gap: .8rem; margin-top: 1rem; }
.dmc-stage__item { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: .8rem; padding: .5rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #fff; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.dmc-stage__item img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; flex: none; }
.dmc-stage__item b { display: block; font: 700 .95rem var(--font-heading); }
.dmc-stage__item small { color: rgba(255, 255, 255, .7); font-size: .8rem; }
.dmc-stage__item:hover { background: rgba(255, 255, 255, .1); }
.dmc-stage__item.is-active { border-color: #00F0FF; background: rgba(0, 240, 255, .12); }
.dmc-showcase__stats { position: relative; margin-top: 1.4rem; }
.dmc-showcase__stats b { background: linear-gradient(180deg, #fff, #9fefff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 640px) { .dmc-stage__list { flex-direction: column; } .dmc-stage__frame { border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .dmc-stage__ring { animation: none; } .dmc-stage__poster { transition: none; } }

/* V28.1 compact layout: player left, playlist + button right, so the band is much shorter */
.dmc-showcase { max-width: 1040px; padding: clamp(.8rem, 1.8vw, 1.2rem); }
.dmc-stage { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 1.1rem; align-items: stretch; }
.dmc-stage__frame { border-radius: 18px; align-self: start; }
.dmc-stage__side { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.dmc-stage__lead { margin: 0; color: #fff; font: 800 1.15rem/1.3 var(--font-heading); }
.dmc-stage__list { flex-direction: column; margin-top: 0; gap: .6rem; flex: 1 1 auto; }
.dmc-stage__item { flex: 0 0 auto; }
.dmc-stage__item img { width: 84px; }
.dmc-stage__cta { margin-top: auto; justify-content: center; text-align: center; }
.dmc-showcase__stats { margin-top: 1rem; padding: 1rem 0 0; }
.dmc-showcase__stats b { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.dmc-showcase__stats span { font-size: .8rem; }
@media (max-width: 860px) { .dmc-stage { grid-template-columns: 1fr; } .dmc-stage__list { flex-direction: row; } }
@media (max-width: 640px) { .dmc-stage__list { flex-direction: column; } }

/* ==========================================================================
   V29 - Team cards (LinkedIn first, one uniform layout) + footer polish
   ========================================================================== */

/* --- Team: every card has the same shape; the LinkedIn button always sits at the bottom --- */
.dmc-member { height: 100%; box-sizing: border-box; }
.dmc-member h3, .dmc-member__role, .dmc-member__bio { text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: none; }
.dmc-member h3 { white-space: nowrap; }
.dmc-member__role { min-height: 1.4em; display: flex; align-items: flex-start; justify-content: center; margin: 0 0 .5rem; }
.dmc-member__bio { margin: 0 0 1.1rem; }
.dmc-member__li {
    margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 40px; box-sizing: border-box;
    padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid rgba(0, 165, 168, .45); background: #fff; color: var(--teal-d);
    font: 700 .86rem/1 var(--font-heading, inherit); text-decoration: none; white-space: nowrap;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.dmc-member__li .dmc-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.dmc-member__li:hover, .dmc-member__li:focus-visible { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(0, 165, 168, .6); }
.dmc-member__li.is-company { border-style: dashed; color: #4a6a7a; border-color: rgba(10, 26, 43, .22); }
.dmc-member__li.is-company:hover, .dmc-member__li.is-company:focus-visible { background: #0f2740; border-color: #0f2740; color: #fff; }

/* 4 per row on desktop (4 + 4 for 8 people), 2 on tablets, 1 on small phones; a short last row is centered.
   The tiny extra gap in the sum stops browsers from wrapping the 4th card because of rounding. */
.dmc-team, .dmc-team--center { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.3rem; }
.dmc-team > .dmc-member, .dmc-team--center > .dmc-member { box-sizing: border-box; flex: 0 1 calc((100% - 4.2rem) / 4); max-width: calc((100% - 4.2rem) / 4); min-width: 0; }
@media (max-width: 1100px) { .dmc-team > .dmc-member, .dmc-team--center > .dmc-member { flex-basis: calc((100% - 1.8rem) / 2); max-width: calc((100% - 1.8rem) / 2); } }
@media (max-width: 440px)  { .dmc-team > .dmc-member, .dmc-team--center > .dmc-member { flex-basis: 100%; max-width: 100%; } }
@media (min-width: 1001px) { .dmc-team--center .dmc-member { flex: 0 1 calc((100% - 4.2rem) / 4); max-width: calc((100% - 4.2rem) / 4); } }
@media (min-width: 1001px) and (max-width: 1100px) { .dmc-team--center .dmc-member { flex-basis: calc((100% - 1.8rem) / 2); max-width: calc((100% - 1.8rem) / 2); } }

/* --- Footer: no mid-word breaks, tidy text, centered bottom bar --- */
.dmc-ft a, .dmc-ft p, .dmc-ft li, .dmc-ft span { overflow-wrap: normal; word-break: normal; hyphens: none; }
.dmc-ft__contact span { overflow-wrap: anywhere; }            /* only the long email may break, and only if it truly cannot fit */
.dmc-ft h2, .dmc-ft p, .dmc-ft__tag, .dmc-ft__col li a { text-wrap: balance; }
.dmc-ft__cta h2 { max-width: 20ch; }
.dmc-ft__cta p { max-width: 52ch; text-wrap: pretty; }
.dmc-ft__tag { max-width: 30ch; }
.dmc-ft__cols { align-items: start; }
.dmc-ft__col li a { text-wrap: pretty; }
.dmc-ft__markets { justify-content: center; text-align: center; }
.dmc-ft__bar { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .9rem; padding-top: 1.7rem; }
.dmc-ft__copy { text-wrap: balance; }
.dmc-ft__legal { justify-content: center; gap: .35rem 0; }
.dmc-ft__legal a { position: relative; padding: .2rem 1.05rem; white-space: nowrap; }
.dmc-ft__legal a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.dmc-ft__col li a, .dmc-ft__markets a { white-space: normal; }
.dmc-ft__markets a { white-space: nowrap; }

@media (max-width: 768px) {
    .dmc-ft__bar { align-items: center; }
    .dmc-ft__legal a { padding: .25rem .75rem; }
}
/* Phones: link lists become tidy chips (short footer, no awkward line breaks) */
@media (max-width: 700px) {
    .dmc-ft__cols { grid-template-columns: minmax(0, 1fr); gap: 1.9rem; }
    .dmc-ft__col ul { display: flex; flex-wrap: wrap; gap: .5rem; }
    .dmc-ft__col li a { padding: .5rem .95rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #cddae6; font-size: .88rem; white-space: nowrap; }
    .dmc-ft__col li a::before { display: none; }
    .dmc-ft__col li a:hover { transform: none; background: var(--teal); border-color: var(--teal); color: #fff; }
    .dmc-ft__title { margin-bottom: 1rem; }
    .dmc-ft__markets { flex-direction: column; }
    .dmc-ft__legal a + a::before { display: none; }
    .dmc-ft__legal { gap: .3rem .2rem; }
}
@media (prefers-reduced-motion: reduce) { .dmc-member__li { transition: none; } }
