/* ==========================================================================
   Technology template (technology-template.php) — page styles.
   Loaded only on this template by inc/assets.php. Sections:
   1. Device journey (3D story, from the former assets/css/device-journey.css)
   2. Service sections + page overrides (former inline <style> in the template)
   ========================================================================== */

/* ---------- 1. Device journey ---------- */
body.cn-journey{margin:0;background:#000;color:#f8f4f0;font-family:"Inter", "DM Sans", sans-serif;-webkit-font-smoothing:antialiased}
.dj-page *{box-sizing:border-box}.dj-page a{color:inherit}.dj-page a:focus-visible{outline:2px solid #f9a148;outline-offset:6px}
.dj-page p{line-height:1.6}
.dj-story{position:relative;--dj-length:650;--dj-viewport-unit:1vh}.dj-stage{position:relative;height:900px;min-height:100svh;overflow:hidden;background:transparent}:is(.dj-loading,.dj-ready) .dj-story{height:calc(var(--dj-length) * var(--dj-viewport-unit))}:is(.dj-loading,.dj-ready) .dj-stage{position:sticky;top:0;height:100svh;min-height:0}.dj-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:2;opacity:0;pointer-events:none}.dj-ready .dj-canvas{opacity:1}
.dj-intro{position:absolute;top:18%;width:100%;padding:0 24px;text-align:center;z-index:3}.dj-eyebrow{font-size:11px;line-height:1.4}.dj-intro h1{font-size:clamp(34px,4.7vw,74px);line-height:1.05;font-weight:500;letter-spacing:-.02em;margin:22px auto}.dj-intro>p:last-child{font-size:13px;color:var(--cn-muted);margin-top:22px}
.dj-chapter{position:absolute;z-index:3;top:28%;left:7%;width:28%;opacity:0;visibility:hidden;pointer-events:none}.dj-chapter h2{font-size:clamp(30px,4.5vw,66px);line-height:1.05;letter-spacing:-.02em;font-weight:500;margin:26px 0}.dj-chapter p{font-size:13px;color:var(--cn-muted)}.dj-chapter--two{left:auto;right:6%;width:27%}
.dj-finish{position:absolute;z-index:3;top:14%;width:100%;text-align:center;opacity:0;visibility:hidden;color:var(--cn-white);padding:0 20px}.dj-finish h2{font-size:clamp(30px,4.2vw,62px);font-weight:500;letter-spacing:-.02em;margin:14px 0}.dj-finish p{font-size:12px}
.dj-room{position:absolute;inset:0;clip-path:inset(100% 0 0);background:radial-gradient(ellipse at 80% 30%,#124b9055,transparent 55%),radial-gradient(ellipse at 15% 45%,#f2902029,transparent 55%),linear-gradient(#080a10,#10131b)}.dj-window{position:absolute;width:55%;height:150%;top:-45%;right:-8%;transform:rotate(-27deg);background:repeating-linear-gradient(90deg,transparent 0 23%,#58a4ff12 24% 44%,transparent 45% 49%);filter:blur(5px)}.dj-desk{position:absolute;top:79%;left:-10%;width:120%;height:50%;background:linear-gradient(#151b27,#080a10);border-top:1px solid #58a4ff38;box-shadow:0 -30px 70px #124b9030}.dj-shadow{position:absolute;left:26%;top:80%;width:48%;height:6%;border-radius:50%;background:#000;filter:blur(22px);opacity:.28}
.dj-bottom{position:absolute;z-index:4;bottom:28px;left:4vw;right:4vw;display:flex;align-items:center;justify-content:center;font-size:10px;letter-spacing:.04em}.dj-progress{height:1px;width:20%;background:#89918340}.dj-progress i{display:block;height:1px;background:linear-gradient(90deg,var(--cn-orange),var(--cn-pink));transform-origin:left;transform:scaleX(0)}.dj-status{position:absolute;bottom:60px;left:0;width:100%;text-align:center;font-size:11px;color:var(--cn-muted);z-index:4}
.dj-fallback{position:absolute;top:53%;left:50%;transform:translateX(-50%);width:min(68%,720px);margin:0}.dj-fallback img{display:block;width:100%;height:auto;border:10px solid #343737;border-radius:12px}.dj-fallback figcaption{text-align:center;font-size:12px;margin-top:20px;color:var(--cn-muted)}.dj-ready .dj-fallback{display:none}
.dj-outro{padding:120px 7vw 26px;background:transparent;color:var(--cn-white);border-top:1px solid var(--cn-line);text-align:center}.dj-outro h2{font-size:clamp(40px,7vw,102px);font-weight:400;line-height:1.05;letter-spacing:-.055em;margin:32px 0}.dj-cta{display:inline-flex;gap:60px;padding:20px 0;text-decoration:none;border-bottom:1px solid #818a78;font-size:14px}.dj-footer{margin-top:110px;padding-top:26px;border-top:1px solid #c7cbbc;display:flex;justify-content:space-between;font-size:11px}.dj-credits{font-size:10px;max-width:850px;color:var(--cn-muted-2);margin:64px auto 0}.dj-skip{position:fixed;left:20px;top:-80px;padding:14px;background:#edece2;color:#101a19!important;z-index:50}.dj-skip:focus{top:16px}
@media(max-width:700px){.dj-header{padding:22px}.dj-brand{font-size:25px}.dj-header-note{display:none}.dj-contact{padding:10px 15px}.dj-contact span{margin-left:14px}.dj-intro{top:18%}.dj-intro h1{font-size:clamp(32px,8vw,49px)}.dj-intro>p:last-child{font-size:12px}.dj-chapter,.dj-chapter--two{top:17%;left:7%;right:auto;width:86%}.dj-chapter h2{font-size:34px;margin:14px 0}.dj-chapter h2 br{display:none}.dj-chapter p{font-size:12px}.dj-finish{top:17%}.dj-finish h2{font-size:34px}.dj-story{--dj-length:520}.dj-bottom{left:22px;right:22px}.dj-outro{padding-top:80px}.dj-footer{gap:20px;line-height:1.6}.dj-fallback{width:88%}}
/* Reserve the touch layout from the first paint, including while the module downloads. */
@supports (height: 100svh) {
  @media (pointer: coarse) { .dj-story { --dj-viewport-unit: 1svh; } }
}
@media (scripting: enabled) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  :where(.cn-journey:not(.dj-static)) .dj-story { height: calc(var(--dj-length) * var(--dj-viewport-unit)); }
  :where(.cn-journey:not(.dj-static)) .dj-stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
}
/* The module enables this fixed stage on iPhone, including landscape. */
.dj-story.is-ios-js-pin .dj-stage { --dj-pin-top: 0px; position: absolute; top: 0; left: 0; right: 0; }
.dj-story.is-ios-js-pin.is-pinned .dj-stage { position: fixed; top: var(--dj-pin-top); }
.dj-story.is-ios-js-pin.is-pin-after .dj-stage { top: auto; bottom: 0; }
.admin-bar .dj-story.is-ios-js-pin .dj-stage { --dj-pin-top: 32px; height: calc(100svh - var(--dj-pin-top)); }
@media (max-width: 782px) {
  .admin-bar .dj-story.is-ios-js-pin .dj-stage { --dj-pin-top: 46px; }
}
@media(prefers-reduced-motion:reduce){:is(.dj-loading,.dj-ready) .dj-story{height:auto}:is(.dj-loading,.dj-ready) .dj-stage{position:relative;height:100svh;min-height:720px}.dj-bottom{display:none}}
.cn-journey:not(.dj-ready) .dj-intro{opacity:1!important;visibility:visible!important;transform:none!important}.cn-journey:not(.dj-ready) .dj-chapter,.cn-journey:not(.dj-ready) .dj-finish,.cn-journey:not(.dj-ready) .dj-room{display:none}

/*.dj-page em{font-family:inherit;font-style:normal;font-weight:500;background:linear-gradient(266deg,var(--cn-orange) -3%,var(--cn-pink) 104%);background-clip:text;-webkit-background-clip:text;color:transparent}*/
/* Use the shared theme shell without turning body into a sticky scroll container. */
html:has(body.cn-journey),body.cn-journey{overflow-x:clip!important;overflow-y:visible!important}
.dj-page{background:transparent}
/* Avoid the extra .wwd-page clip around the pinned story; html/body clip the page. */
#main-content.dj-page {
    overflow-x: visible;
}

/* The iPhone comparison confirmed that removing CSS filters stops the scroll
   stalls, including with the full 3D scene running. Reuse the tested behavior
   on this page's iOS path, including decorative layers outside main-content.
   The optional recorder can restore the original filters for comparison. */
body.cn-journey.cn-journey-ios-no-filters:not(.cn-journey-debug-original-filters),
body.cn-journey.cn-journey-ios-no-filters:not(.cn-journey-debug-original-filters) *,
body.cn-journey.cn-journey-ios-no-filters:not(.cn-journey-debug-original-filters) *::before,
body.cn-journey.cn-journey-ios-no-filters:not(.cn-journey-debug-original-filters) *::after {
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Pull the stage's empty upper area behind this page's hero. */
.dj-page > .wwd-hero{z-index:3}
.dj-page > .dj-story{margin-top:-45svh}

/* Keep this mobile reveal edge-to-edge over the shared important padding rule. */
@media (max-width: 768px) {
  body.cn-journey #main-content .wwd-hero {
    padding-bottom: 0 !important;
  }
}

.dj-page .dj-stage{background:transparent}
.dj-page p{font-weight:400}
.dj-page .dj-intro{top:10%}
.dj-page .dj-finish{top:7%}
.dj-page .dj-intro h1,.dj-page .dj-chapter h2,.dj-page .dj-finish h2,.dj-page .dj-outro h2{font-family:var(--cn-font, "Inter", "DM Sans", sans-serif);color:var(--cn-white)}
.dj-page .dj-intro h1{font-weight:500;letter-spacing:-.02em;font-size:clamp(34px,4.7vw,74px)}
.dj-page .dj-bottom{bottom:100px}
.dj-page .dj-status{bottom:128px}
.dj-page .dj-progress{background:var(--cn-line)}
.dj-page .dj-outro{padding-bottom:70px}
.dj-page .dj-credits a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){.dj-page .dj-intro{top:12%}.dj-page .dj-intro h1{font-size:clamp(30px,7.5vw,49px)}.dj-page .dj-eyebrow{font-size:10px;padding:8px 14px}.dj-page .dj-bottom{bottom:90px}.dj-page .dj-status{bottom:116px}}
@media(min-width:1025px) and (prefers-reduced-motion:no-preference){.dj-story{--dj-length:860}}
/* Keep the existing mobile journey, then allow both additional screen slides. */
@media(max-width:700px) and (prefers-reduced-motion:no-preference){.dj-story.has-mobile-gallery{--dj-length:730}}

/* Reveal the room with two opposite transforms instead of animating clip-path:
   clip-path changes repainted the blurred room on every frame. */
.dj-room-reveal{position:absolute;inset:0;overflow:hidden;transform:translate3d(0,100%,0);will-change:transform}
.dj-room-reveal>.dj-room{clip-path:none;transform:translate3d(0,-100%,0);will-change:transform}
.dj-desk,.dj-shadow{will-change:transform}
/* The shared pill blurs whatever is behind it (backdrop-filter). Over the 3D canvas that
   is re-blurred on every frame, which caused the hitch as each chapter faded in. Same
   look on the dark stage with a solid tint instead. */
.dj-stage .wwd-eyebrow{-webkit-backdrop-filter:none;backdrop-filter:none;background:linear-gradient(rgba(248,244,240,.06),rgba(248,244,240,.06)),rgba(10,10,12,.72)}
.cn-journey:not(.dj-ready) .dj-room-reveal{display:none}

/* ---------- 2. Service sections + page overrides ---------- */
    .wwd-manifesto{
        padding: clamp(100px, 14vw, 100px) 0;
    }
    .dj-page .cn-mk-services {
        --mk-ink: var(--cn-white);
        --mk-muted: var(--cn-muted);
        --mk-orange: var(--cn-orange);
        --mk-line: var(--cn-line);
        --mk-blue: #124b90;
        border-block: 1px solid var(--mk-line);
        color: var(--mk-ink);
        padding: clamp(80px, 10vw, 140px) 0;
    }
    .dj-page .cn-mk-shell { width: 100%; max-width: var(--cn-container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 64px); }
    .dj-page .cn-mk-services-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 70px; }
    .dj-page .cn-mk-services-head :is(p, h2) { margin: 0; }
    .dj-page .cn-mk-services h2 { max-width: 640px; }
    .dj-page .cn-mk-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
    .dj-page .cn-mk-service { padding-top: 20px; border-top: 1px solid var(--mk-line); }
    .dj-page .cn-mk-service-number { font-size: 12px; color: var(--mk-orange); }
    .dj-page .cn-mk-service h3 { margin: 42px 0 0; color: inherit; font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
    .dj-page .cn-mk-service p { max-width: 340px; margin: 20px 0 0; color: var(--mk-muted); font-size: var(--full-website-paragraph-font-size); line-height: 1.65; }
    .dj-page .cn-mk-service small { display: block; margin-top: 36px; color: var(--mk-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
    @media (max-width: 1024px) {
        .dj-page .cn-mk-service-grid { gap: 25px; }
        .dj-page .cn-mk-services-head { flex-direction: column; gap: 25px; }
    }
    @media (max-width: 600px) {
        .dj-page .cn-mk-service-grid { grid-template-columns: 1fr; gap: 42px; }
        .dj-page .cn-mk-services-head { margin-bottom: 45px; }
        .dj-page .cn-mk-service h3 { margin-top: 20px; }
        .dj-page .cn-mk-service p { max-width: 100%; margin-top: 14px; }
        .dj-page .cn-mk-service small { margin-top: 20px; }
    }
    .cn-mk-services-head:has(.cn-mk-services-subtitle) {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
    }

    .cn-mk-services-head:has(.cn-mk-services-subtitle) .cn-mk-services-subtitle {
        margin: 0;
        text-align: left;
    }

    .dj-page .cn-mk-services-head.cn-mk-services-head--visual {
        width: 100%;
        flex-direction: row;
        /*align-items: flex-start;*/
        align-items: center;
        justify-content: space-between;
        gap: clamp(40px, 8vw, 120px);
    }

    .dj-page .cn-mk-services-head__copy {
        flex: 1 1 auto;
        min-width: 0;
    }

    .dj-page .cn-mk-services-head__image {
        display: block;
        flex: 0 1 360px;
        width: min(360px, 38vw);
        max-width: 100%;
        height: auto;
        margin-left: auto;
        object-fit: cover;
    }

    @media (max-width: 768px) {
        .dj-page .cn-mk-services-head.cn-mk-services-head--visual {
            flex-direction: column;
            gap: 28px;
        }

        .dj-page .cn-mk-services-head__image {
            flex-basis: auto;
            width: 100%;
            margin-left: 0;
        }
    }

    .cn-mk-service-tags {
        font-size: 0.6875rem;   /* ~11px */
        letter-spacing: 0.04em;
        white-space: nowrap;
    }
    .wwd-cta{
        padding-bottom: 30px;
    }
