/* Service and industry detail pages. Neutral backgrounds; orange only for emphasis. */
html { --dt-bg: #F4F5F6; --dt-card: #FFFFFF; --dt-text: #121315; --dt-muted: #52555A; --dt-line: #D8DADD; }
html.ch-theme-dark { --dt-bg: #08090A; --dt-card: #141619; --dt-text: #F3F4F5; --dt-muted: #A4A8AE; --dt-line: rgba(255, 255, 255, 0.12); }

html body .dt { overflow: clip; padding-bottom: clamp(60px, 8vw, 120px); background: var(--dt-bg); color: var(--dt-text); text-align: left; }
html body .dt :is(h1, h2, h3, li, summary):not(#f1):not(#f2) { margin: 0; color: var(--dt-text) !important; -webkit-text-fill-color: currentColor; }
html body .dt p:not(#f1):not(#f2) { margin: 0; color: var(--dt-muted) !important; -webkit-text-fill-color: currentColor; }
html body .dt ul:not(#f1), html body .dt ol:not(#f1) { margin: 0; padding: 0; list-style: none; }
html body .dt a:not(#f1) { z-index: auto !important; text-decoration: none; }
.dt-wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding-top: clamp(90px, 11vw, 160px); }
html body .dt h2:not(#f1):not(#f2) { font-size: clamp(32px, 4.4vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
html body .dt h3:not(#f1):not(#f2) { font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }

/* hero */
.dt-hero { position: relative; display: flex; align-items: flex-end; min-height: 100vh; overflow: hidden; background: #08090A; isolation: isolate; }
.dt-hero > img { position: absolute; left: 0; top: -8%; z-index: -2; width: 100%; height: 116%; object-fit: cover; }
.dt-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 7, 8, 0.9), rgba(6, 7, 8, 0.35)), linear-gradient(transparent 40%, rgba(6, 7, 8, 0.85)); }
.dt-hero-text { width: 100%; padding: 140px clamp(20px, 6vw, 90px) clamp(60px, 10vh, 110px); }
.dt-crumb a { display: inline-block; margin-bottom: 18px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; color: #FFFFFF; font-size: 12.5px; font-weight: 700; }
html body .dt .dt-hero h1:not(#f1):not(#f2) { max-width: 13em; font-size: clamp(40px, min(7vw, 13vh), 108px); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; color: #FFFFFF !important; }
html body .dt .dt-hero p:not(#f1):not(#f2) { max-width: 52ch; margin: 22px 0 30px; font-size: 18px; line-height: 1.55; color: #E8EAEC !important; }
.dt-actions { display: flex; flex-wrap: wrap; gap: 12px; }
html body .dt .dt-btn:not(#f1) { display: inline-block; padding: 15px 28px; border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 999px; background: transparent; color: #FFFFFF; font-size: 15px; font-weight: 800; cursor: pointer; }
html body .dt .dt-btn-solid:not(#f1) { border-color: #C2410C; background: #C2410C; }

/* statement */
html body .dt .dt-statement h2:not(#f1):not(#f2) { max-width: 18em; }
html body .dt .dt-statement p:not(#f1):not(#f2) { max-width: 28em; margin-top: 26px; font-size: clamp(20px, 2.4vw, 32px); line-height: 1.4; }

/* flowing words */
html body .dt .dt-words p:not(#f1):not(#f2) { max-width: 60ch; margin-top: 18px; font-size: 17px; line-height: 1.6; }
html body .dt .dt-words ul:not(#f1) { display: flex; flex-wrap: wrap; gap: 6px 30px; margin-top: 34px; }
html body .dt .dt-words li:not(#f1):not(#f2) { font-family: "Cabinet Grotesk", sans-serif !important; font-size: clamp(24px, 3.4vw, 48px); font-weight: 800; line-height: 1.3; letter-spacing: -0.025em; color: var(--dt-muted) !important; opacity: 0.6; transition: opacity 0.2s, color 0.2s, translate 0.3s; }
html body .dt .dt-words li:hover:not(#f1):not(#f2) { color: #E2501A !important; opacity: 1; translate: 0 -4px; }

/* split: heading and photo stay, points scroll */
.dt-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.dt-split-head { position: sticky; top: 110px; }
html body .dt .dt-split-head p:not(#f1):not(#f2) { margin-top: 18px; font-size: 16px; line-height: 1.6; }
.dt-split-head img { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 38vh; margin-top: 28px; border-radius: 20px; object-fit: cover; }
.dt-split li { padding: 34px 0; border-top: 1px solid var(--dt-line); }
html body .dt .dt-split li p:not(#f1):not(#f2) { max-width: 54ch; margin-top: 10px; font-size: 16px; line-height: 1.65; }

/* rail: sideways while scrolling down */
.dt-rail { position: relative; margin-top: clamp(90px, 11vw, 160px); }
.dt-rail-stage { position: sticky; top: 0; display: flex; align-items: center; height: 100vh; overflow: hidden; background: #101113; }
.dt-rail-track { display: flex; gap: 20px; width: max-content; padding: 0 6vw; will-change: transform; }
.dt-rail-intro { display: flex; flex-direction: column; justify-content: center; width: min(36vw, 440px); padding-right: 30px; }
html body .dt .dt-rail :is(h2, h3):not(#f1):not(#f2) { color: #FFFFFF !important; }
html body .dt .dt-rail p:not(#f1):not(#f2) { margin-top: 16px; font-size: 16px; line-height: 1.6; color: #C2C6CC !important; }
.dt-slide { display: flex; flex-direction: column; justify-content: flex-end; width: min(70vw, 400px); height: min(66vh, 480px); padding: 34px; border-radius: 24px; background: #1B1D21; }
.dt-slide:nth-child(3n) { background: #C2410C; }
.dt-slide b { margin-bottom: auto; font-family: "Cabinet Grotesk", sans-serif; font-size: 92px; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, 0.25); }
html body .dt .dt-slide:nth-child(3n) p:not(#f1):not(#f2) { color: #FFFFFF !important; }

/* stacking cards */
html body .dt .dt-stack-lead:not(#f1):not(#f2) { max-width: 60ch; margin: 18px 0 0; font-size: 17px; line-height: 1.6; }
html body .dt .dt-stack h2:not(#f1) { margin-bottom: 10px; }
.dt-card { position: sticky; top: calc(100px + var(--i) * 16px); display: flex; flex-direction: column; justify-content: center; min-height: 250px; margin-top: 26px; padding: 40px clamp(24px, 5vw, 60px); border: 1px solid var(--dt-line); border-radius: 26px; background: var(--dt-card); box-shadow: 0 -20px 40px -30px rgba(0, 0, 0, 0.45); overflow: hidden; }
html body .dt .dt-card p:not(#f1):not(#f2) { max-width: 56ch; margin-top: 12px; font-size: 16.5px; line-height: 1.65; }
.dt-card b { position: absolute; right: 30px; bottom: -34px; font-family: "Cabinet Grotesk", sans-serif; font-size: 190px; font-weight: 800; line-height: 1; color: #E2501A; opacity: 0.16; }

/* columns */
html body .dt .dt-columns-lead:not(#f1):not(#f2) { max-width: 60ch; margin-top: 18px; font-size: 17px; line-height: 1.6; }
html body .dt .dt-columns ul:not(#f1) { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(30px, 6vw, 90px); margin-top: 44px; }
html body .dt .dt-columns li:not(#f1) { position: relative; padding: 30px 0 34px; border-top: 2px solid var(--dt-line); }
.dt-columns li::before { content: ''; position: absolute; left: 0; top: -2px; width: 100%; height: 2px; background: #E2501A; transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.dt-columns li:hover::before { transform: scaleX(1); }
html body .dt .dt-columns li p:not(#f1):not(#f2) { margin-top: 10px; font-size: 15.5px; line-height: 1.65; }

/* questions */
.dt-faq { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.dt-faq details { border-bottom: 1px solid var(--dt-line); }
.dt-faq summary { padding: 22px 0; font-size: 18px; font-weight: 700; cursor: pointer; }
html body .dt .dt-faq details p:not(#f1):not(#f2) { max-width: 64ch; padding-bottom: 24px; font-size: 15.5px; line-height: 1.65; }

@media (max-width: 900px) {
    .dt-split, .dt-faq { grid-template-columns: minmax(0, 1fr); }
    .dt-split-head { position: static; }
    html body .dt .dt-columns ul:not(#f1) { grid-template-columns: minmax(0, 1fr); }
    .dt-rail { height: auto !important; }
    .dt-rail-stage { position: static; display: block; height: auto; padding: 50px 0; }
    .dt-rail-track { flex-direction: column; width: auto; padding: 0 18px; transform: none !important; }
    .dt-rail-intro { width: auto; }
    .dt-slide { width: auto; height: auto; padding: 26px; }
    .dt-slide b { font-size: 56px; margin-bottom: 20px; }
    .dt-card { position: static; }
}
@media (prefers-reduced-motion: reduce) {
    .dt-rail { height: auto !important; }
    .dt-rail-stage { position: static; overflow-x: auto; }
    .dt-rail-track { transform: none !important; }
}

/* case studies and "where next" */
html body .dt .dt-cases ul:not(#f1), html body .dt .dt-next-tiles:not(#f1) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
html body .dt .dt-next-tiles:not(#f1) { grid-template-columns: repeat(4, 1fr); }
.dt-cases a, .dt-next-tiles a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #141619; }
.dt-next-tiles a { aspect-ratio: 4 / 3; }
.dt-cases img, .dt-next-tiles img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s ease; }
.dt-cases a:hover img, .dt-next-tiles a:hover img { scale: 1.07; }
.dt-cases span, .dt-next-tiles span { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(6, 7, 8, 0.94)); color: #FFFFFF; font-size: 17px; font-weight: 800; }
.dt-cases strong { display: block; font-family: "Cabinet Grotesk", sans-serif; font-size: 28px; color: #FFFFFF; }
.dt-cases small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 500; }
html body .dt .dt-next-list:not(#f1) { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 30px; margin-top: 30px; }
html body .dt .dt-next-list a:not(#f1) { display: block; padding: 20px 0; border-bottom: 1px solid var(--dt-line); color: var(--dt-text); font-size: 20px; font-weight: 800; transition: padding 0.25s, color 0.2s; }
html body .dt .dt-next-list a:hover:not(#f1) { padding-left: 12px; color: #E2501A; }
@media (max-width: 900px) {
    html body .dt .dt-cases ul:not(#f1), html body .dt .dt-next-list:not(#f1) { grid-template-columns: minmax(0, 1fr); }
    html body .dt .dt-next-tiles:not(#f1) { grid-template-columns: 1fr 1fr; }
    .dt-cases a { aspect-ratio: 4 / 3; }
}

/* short points: a normal, readable two-column list */
.dt-list { display: grid; grid-template-columns: 5fr 7fr; column-gap: clamp(30px, 6vw, 90px); align-items: start; }
.dt-list h2 { grid-column: 1; grid-row: 1; }
html body .dt .dt-list p:not(#f1):not(#f2) { grid-column: 1; grid-row: 2; margin-top: 18px; font-size: 16px; line-height: 1.65; }
html body .dt .dt-list ul:not(#f1) { grid-column: 2; grid-row: 1 / span 3; display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
html body .dt .dt-list li:not(#f1):not(#f2) { position: relative; padding: 16px 0 16px 22px; border-bottom: 1px solid var(--dt-line); font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--dt-text) !important; }
.dt-list li::before { content: ''; position: absolute; left: 0; top: 1.5em; width: 8px; height: 8px; border-radius: 50%; background: #E2501A; }

/* The full-bleed hero is dark in both themes, so the header over it stays light until
   it gets its own background (on scroll, or when a mega menu opens) */
html body:has(.dt-hero) header.header:not(.header-scrolled):not(:has(.megaMenu:hover)):not(:has(.megaMenu:focus-within)):not(:has(.megaMenu.is-open)) nav a.menu_links {
    color: #FFFFFF !important;
}
html body:has(.dt-hero) header.header:not(.header-scrolled):not(:has(.megaMenu:hover)):not(:has(.megaMenu:focus-within)):not(:has(.megaMenu.is-open)) a[href="/"] img[src*="createhopes-logo"] {
    content: url("/images/createhopes-logo.webp");
}
html body:has(.dt-hero) header.header:not(.header-scrolled):not(:has(.megaMenu:hover)):not(:has(.megaMenu:focus-within)):not(:has(.megaMenu.is-open)) button.rounded-full {
    background: #FFFFFF !important;
    color: #0B0C0D !important;
}
html body:has(.dt-hero) header.header:not(.header-scrolled):not(:has(.megaMenu:hover)):not(:has(.megaMenu:focus-within)):not(:has(.megaMenu.is-open)) button.rounded-full span {
    color: #0B0C0D !important;
}
html body:has(.dt-hero) header.header:not(.header-scrolled):not(:has(.megaMenu:hover)):not(:has(.megaMenu:focus-within)):not(:has(.megaMenu.is-open)) button[type="button"] > img.invert {
    filter: none !important;
}
@media (max-width: 900px) {
    .dt-list { grid-template-columns: minmax(0, 1fr); }
    html body .dt .dt-list ul:not(#f1) { grid-column: 1; grid-row: auto; grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
}

html body .dt .dt-list h2:not(#f1):not(#f2) { font-size: clamp(28px, 3vw, 42px); }
