/* DEVOIO – site-specific styles on top of the Gilroy theme */

/* smooth anchor navigation, keep the sticky header out of the way */
html { scroll-behavior: smooth; }
#services, #about, #projects, #process, #contact { scroll-margin-top: 90px; }

/* main nav: plain links, no dropdown arrows left over from the demo */
#main-nav > li > a::after { display: none !important; }

/* project cards (bootstrap grid instead of elementor columns) */
#projects .gly-portfolio-2-item .main-img { min-height: 220px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#projects .gly-portfolio-2-item .main-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
#projects .gly-portfolio-2-tabs-btn { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
#projects .tab-pane { animation: dvFade .35s ease both; }
@keyframes dvFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* services slider: self-hosted illustrations */
.gly-project-2-item.img-cover img[src$=".svg"] { object-fit: contain; padding: 24px; }

/* contact section */
.dv-contact { background: #0b0d14; padding: 110px 0; color: #fff; }
.dv-contact .gly-section-title-2 { color: #fff; margin-bottom: 18px; }
.dv-contact-lead { color: #9ca3af; font-size: 18px; line-height: 1.7; max-width: 440px; margin-bottom: 30px; }
.dv-contact-list li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; color: #d1d5db; font-size: 16px; line-height: 1.6; }
.dv-contact-list li i { color: #ff3259; font-size: 18px; margin-top: 4px; width: 22px; text-align: center; }
.dv-contact-list a { color: #fff; font-weight: 600; text-decoration: none; }
.dv-contact-list a:hover { color: #ff3259; }
.dv-contact-form { background: #12151f; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 34px; }
.dv-contact-form label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #9ca3af; margin-bottom: 8px; }
.dv-contact-form input, .dv-contact-form textarea { width: 100%; background: #0b0d14; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: #fff; padding: 14px 16px; font-size: 16px; line-height: 1.5; outline: none; transition: border-color .15s, box-shadow .15s; }
.dv-contact-form input::placeholder, .dv-contact-form textarea::placeholder { color: #6b7280; }
.dv-contact-form input:focus, .dv-contact-form textarea:focus { border-color: #ff3259; box-shadow: 0 0 0 3px rgba(255,50,89,.2); }
.dv-contact-form textarea { resize: vertical; min-height: 150px; }
.dv-contact-form .dv-submit { border: 0; cursor: pointer; }
.dv-contact-form .dv-submit[disabled] { opacity: .6; cursor: progress; }
.dv-form-note { color: #6b7280; font-size: 14px; }
.dv-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.dv-alert { border-radius: 12px; padding: 14px 16px; font-size: 15px; margin: 0 0 18px; }
.dv-alert[hidden] { display: none; }
.dv-alert-ok { background: rgba(52,211,153,.12); color: #6ee7b7; border: 1px solid rgba(52,211,153,.35); }
.dv-alert-err { background: rgba(255,50,89,.12); color: #fda4af; border: 1px solid rgba(255,50,89,.35); }
#cf-success, #cf-error { margin: 18px 0 0; }
.dv-contact-form .is-invalid { border-color: #ff3259; }

@media (max-width: 767px) {
  .dv-contact { padding: 70px 0; }
  .dv-contact-form { padding: 22px; }
  .dv-contact .gly-section-title-2 { font-size: 34px; }
}

/* project card artwork: neutralise the theme's global .elementor img sizing */
#projects .gly-portfolio-2-item .main-img img { height: auto; max-width: 100%; max-height: 260px; }
.gly-project-2-item.img-cover img[src$=".svg"] { height: 100%; max-width: 100%; }

/* language switcher */
.dv-lang { display: inline-flex; align-items: center; gap: 2px; margin-right: 14px; padding: 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.dv-lang a { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #cbd5e1; text-decoration: none; line-height: 1; transition: background .15s, color .15s; }
.dv-lang a:hover { color: #fff; }
.dv-lang a.is-active { background: var(--gly-gd-1); color: #fff; }
.mobile-menu .dv-lang { margin: 30px 0 0; }
.mobile-menu .dv-lang a { padding: 10px 16px; font-size: 14px; }
@media (max-width: 991px) { .gly-header-1-action-link .dv-lang { margin-right: 10px; } }
@media (max-width: 480px) { .gly-header-1-action-link .dv-lang { padding: 3px; margin-right: 8px; } .gly-header-1-action-link .dv-lang a { padding: 6px 7px; font-size: 11px; letter-spacing: .03em; } }

/* blog */
.dv-page { background: #0b0d14; color: #fff; padding: 160px 0 100px; min-height: 60vh; }
.dv-page .gly-section-title-2 { color: #fff; }
.dv-page-lead { color: #9ca3af; font-size: 18px; max-width: 640px; }
.dv-post-list { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); margin-top: 50px; }
.dv-post-card { display: flex; flex-direction: column; background: #12151f; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 28px; transition: transform .2s, border-color .2s; }
.dv-post-card:hover { transform: translateY(-4px); border-color: rgba(255,50,89,.5); }
.dv-post-card time, .dv-post-meta { color: #6b7280; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.dv-post-card h3 { color: #fff; font-size: 22px; margin: 12px 0 10px; line-height: 1.3; }
.dv-post-card h3 a { color: inherit; text-decoration: none; }
.dv-post-card p { color: #9ca3af; flex: 1; }
.dv-post-card .dv-more { color: #ff3259; font-weight: 700; text-decoration: none; }
.dv-empty { background: #12151f; border: 1px dashed rgba(255,255,255,.16); border-radius: 18px; padding: 40px; text-align: center; color: #9ca3af; margin-top: 50px; }
.dv-article { max-width: 780px; margin: 0 auto; }
.dv-article h1 { color: #fff; font-size: 44px; line-height: 1.15; margin: 14px 0 26px; }
.dv-article-body { color: #d1d5db; font-size: 18px; line-height: 1.75; }
.dv-article-body h2 { color: #fff; font-size: 28px; margin: 40px 0 14px; }
.dv-article-body h3 { color: #fff; font-size: 22px; margin: 30px 0 10px; }
.dv-article-body p { margin: 0 0 20px; }
.dv-article-body ul, .dv-article-body ol { margin: 0 0 20px 22px; }
.dv-article-body li { margin-bottom: 8px; }
.dv-article-body a { color: #ff3259; }
.dv-article-body blockquote { border-left: 3px solid #ff3259; margin: 24px 0; padding: 4px 0 4px 20px; color: #9ca3af; }
.dv-back { display: inline-block; margin-top: 40px; color: #9ca3af; text-decoration: none; }
.dv-back:hover { color: #fff; }
@media (max-width: 767px) { .dv-page { padding: 120px 0 70px; } .dv-article h1 { font-size: 32px; } .dv-article-body { font-size: 17px; } }

/* nav labels: the theme capitalises every word, which is wrong for German and Serbian */
html:not([lang="en"]) #main-nav a, html:not([lang="en"]) #m-main-nav a, html:not([lang="en"]) .gly-footer-2-menu a { text-transform: none !important; }

/* phones: logo + language switcher + menu button must fit on one row */
@media (max-width: 480px) {
  header.tx-header .gly-header-1-logo img { max-width: 136px !important; }
  header.tx-header .gly-header-1-row { gap: 8px; }
  header.tx-header .gly-header-1-action-link { margin-left: auto; flex-shrink: 0; gap: 8px; }
  header.tx-header .gly-header-1-action-link .dv-lang { margin-right: 0; }
}
@media (max-width: 360px) {
  header.tx-header .gly-header-1-logo img { max-width: 112px !important; }
}

/* German compounds ("Systemintegrationen") are wider than a small phone: let them hyphenate */
html[lang="de"] body { -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 480px) {
  html[lang="de"] h1, html[lang="de"] h2, html[lang="de"] h3, html[lang="de"] h4, html[lang="de"] h5, html[lang="de"] h6,
  html[lang="de"] p, html[lang="de"] li, html[lang="de"] a { overflow-wrap: anywhere; }
}

/* ---------- preloader ---------- */
#preloader { height: 100vh; height: 100dvh; transition-duration: .7s; }   /* lift faster than the theme's 1 s */
/* the theme lifts it on window "load"; only our timer (dv-done) may, so the logo always finishes */
#preloader.preloaded:not(.dv-done) { transform: none; }
#preloader.dv-done { pointer-events: none; }
#preloader .preloader-wrap .loading { width: 100%; max-width: 620px; padding: 0 24px; }
/* "We are": own class, so the theme's hero intro (GSAP .gly-hero-2-title: scale 1.3, y 100) cannot move it onto the wordmark;
   same typography as the hero title */
#preloader .dv-pre-title { margin: 0 0 4px; color: #fff; font-family: 'Unbounded', sans-serif; font-size: 60px; font-weight: 600; line-height: 1.41; text-align: center; opacity: 0; animation: dv-pre-in .4s ease .05s forwards; }
@media (min-width: 992px) and (max-width: 1199px) { #preloader .dv-pre-title { font-size: 55px; } }
@media (min-width: 768px) and (max-width: 991px) { #preloader .dv-pre-title { font-size: 44px; } }
#preloader svg { display: block; width: 100%; max-width: 557px; height: auto; margin: 0 auto; }
@media (max-width: 767px) {
  #preloader svg { max-width: min(72vw, 320px); }
  #preloader .dv-pre-title { font-size: 20px; line-height: 1.3; }
}
/* draw the wordmark as soon as it is painted (was: JS class after every script had run) */
#preloader svg .st0 { animation: dv-draw .45s cubic-bezier(.47,0,.745,.715) var(--d, 0s) forwards, dv-fill .3s ease calc(var(--d, 0s) + .35s) forwards; }
#preloader svg .svg-elem-2 { --d: .08s; }
#preloader svg .svg-elem-3 { --d: .16s; }
#preloader svg .svg-elem-4 { --d: .24s; }
#preloader svg .svg-elem-5 { --d: .32s; }
#preloader svg .svg-elem-6 { --d: .4s; }
@keyframes dv-draw { to { stroke-dashoffset: 0; } }
@keyframes dv-fill { to { fill: #fff; } }
@keyframes dv-pre-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #preloader svg .st0 { animation: none; stroke-dashoffset: 0; fill: #fff; }
  #preloader .dv-pre-title { animation: none; opacity: 1; }
  #preloader { transition-duration: .2s !important; }
}

/* services: titles are written in their proper case (iGaming, iOS, eCommerce); don't let the theme capitalise */

/* projects: real screenshots instead of the old line drawings */
#projects .dv-project .main-img { display: block; min-height: 0; padding: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 20px; background: #111520; }
#projects .dv-project .main-img img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: top center; padding: 0; transition: transform .6s var(--cube-1, ease); }
#projects .dv-project:hover .main-img img { transform: scale(1.04); }
#projects .dv-project .content-wrap .left { min-width: 0; }
#projects .dv-project-text { color: #9ca3af; font-size: 15px; line-height: 1.55; margin: 8px 0 6px; max-width: 460px; }
#projects .dv-project-domain { color: #6b7280; font-size: 13px; letter-spacing: .04em; }
/* the theme reveals the caption only on hover (never on phones): show it under the image instead */
#projects .gly-portfolio-2-item.dv-project { height: auto !important; }
#projects .dv-project .main-img, #projects .gly-portfolio-2-item.dv-project:hover .main-img { height: auto !important; aspect-ratio: 16 / 10; border-radius: 24px; }
#projects .dv-project .content-wrap { position: static; padding: 22px 6px 8px; align-items: flex-start; flex-wrap: nowrap; }
#projects .dv-project .content-wrap .title { line-height: 1.3; margin-bottom: 0; }
#projects .dv-project .gly-arrow-btn-1 { flex-shrink: 0; }
#projects .gly-portfolio-2-tabs-btn .gd-border { text-transform: none; }
@media (max-width: 767px) {
  #projects .dv-project .main-img { border-radius: 18px; }
  #projects .dv-project .content-wrap { padding: 16px 2px 4px; }
  #projects .dv-project-text { font-size: 14px; }
}
#projects .dv-project .subtitle, #projects .dv-project .title, #projects .dv-project .title a { text-transform: none !important; }
#projects .dv-project .gly-arrow-btn-1 { background: var(--gly-gd-1); color: #fff; }
#projects .dv-project .gly-arrow-btn-1 i { color: #fff; }
@media (max-width: 767px) { #projects .dv-project .gly-arrow-btn-1 { width: 52px; height: 52px; font-size: 18px; } }

/* office locations */
.dv-contact-list .dv-offices > div { display: flex; flex-direction: column; gap: 8px; }
.dv-offices-title { color: #9ca3af; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.dv-office { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.dv-office strong { color: #fff; font-weight: 600; }
.dv-office em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--gly-gd-1); border-radius: 999px; padding: 2px 9px; }
.dv-office small { flex-basis: 100%; color: #9ca3af; font-size: 14px; }
.dv-footer-offices { margin: 14px 0 0; color: #d1d5db; font-size: 16px; line-height: 1.7; }
.dv-footer-offices span:not(:last-child)::after, .dv-drawer-offices span:not(:last-child)::after { content: " · "; color: #6b7280; }
.dv-drawer-offices { color: #9ca3af; margin-top: 4px; font-size: 15px; }
.gly-footer-2-location .dv-footer-offices { color: rgba(255,255,255,.88); }
.gly-footer-2-location .dv-footer-offices span:not(:last-child)::after { color: rgba(255,255,255,.6); }
.mobile-menu-contact a { text-transform: none !important; }
html:not([lang="en"]) .gly-footer-2-location .title { text-transform: none !important; }

/* ---------- privacy: cookie consent, legal pages, footer links ---------- */
.dv-cc[hidden], .dv-cc-modal[hidden] { display: none !important; }
.dv-cc, .dv-cc-modal { -webkit-hyphens: manual; hyphens: manual; }

/* banner: bottom-left card, never blocks the page */
.dv-cc { position: fixed; left: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 100000; width: calc(100% - 48px); max-width: 470px; opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease; }
.dv-cc.is-in { opacity: 1; transform: none; }
.dv-cc-card { background: #12151f; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 24px; color: #c4c9d4; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.dv-cc-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: #fff; font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 700; line-height: 1.3; }
.dv-cc-title i, .dv-cc-mhead h2 i { color: #ff3259; font-size: 19px; }
.dv-cc-text { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: #c4c9d4; }
.dv-cc-text a, .dv-cc-intro a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dv-cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* "Accept all" and "Reject all" look the same on purpose: no nudging */
.dv-cc-btn { appearance: none; margin: 0; border: 1px solid #fff; border-radius: 999px; background: #fff; color: #0b0d14; padding: 12px 18px; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.dv-cc-btn-outline { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.dv-cc-more { grid-column: 1 / -1; justify-self: center; appearance: none; margin: 0; border: 0; background: none; padding: 6px 10px; color: #c4c9d4; font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dv-cc-btn:focus-visible, .dv-cc-more:focus-visible, .dv-cc-x:focus-visible, .dv-cc-inline:focus-visible, .dv-cc-details summary:focus-visible, .dv-legal-links a:focus-visible { outline: 3px solid rgba(255,50,89,.65); outline-offset: 2px; }

/* settings dialog */
.dv-cc-modal { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .2s ease; }
.dv-cc-modal.is-in { opacity: 1; }
.dv-cc-backdrop { position: absolute; inset: 0; background: rgba(3,4,6,.74); }
.dv-cc-dialog { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); background: #12151f; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; color: #c4c9d4; box-shadow: 0 30px 80px rgba(0,0,0,.55); outline: none; }
.dv-cc-mhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dv-cc-mhead h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: #fff; font-family: 'Unbounded', sans-serif; font-size: 20px; font-weight: 700; line-height: 1.3; }
.dv-cc-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: transparent; color: #fff; font-size: 16px; cursor: pointer; }
.dv-cc-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 8px; }
.dv-cc-intro { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: #c4c9d4; }
.dv-cc-cat { margin-bottom: 12px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.02); }
.dv-cc-cat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dv-cc-cat h3 { margin: 0 0 4px; color: #fff; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.4; }
.dv-cc-cat p { margin: 0; font-size: 14px; line-height: 1.55; color: #9ca3af; }
.dv-cc-always { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(52,211,153,.3); border-radius: 999px; background: rgba(52,211,153,.1); color: #6ee7b7; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.dv-cc-switch { flex: none; position: relative; display: inline-block; width: 48px; height: 28px; margin: 2px 0 0; cursor: pointer; }
.dv-cc-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dv-cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.18); transition: background .15s; }
.dv-cc-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.dv-cc-switch input:checked + span { background: #ff3259; }
.dv-cc-switch input:checked + span::after { transform: translateX(20px); }
.dv-cc-switch input:focus-visible + span { outline: 3px solid rgba(255,50,89,.65); outline-offset: 2px; }
.dv-cc-details { margin-top: 12px; }
.dv-cc-details summary { color: #c4c9d4; font-size: 13px; font-weight: 600; cursor: pointer; }
.dv-cc-table-wrap { overflow-x: auto; margin: 12px 0 4px; }
.dv-cc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; }
.dv-cc-table th { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.12); color: #9ca3af; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.dv-cc-table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.06); color: #d1d5db; vertical-align: top; }
.dv-cc-table code { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.07); color: #fff; font-size: 12.5px; white-space: nowrap; }
.dv-cc-mfoot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 24px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.dv-cc-mfoot .dv-cc-btn { flex: 1 1 150px; }
html.dv-cc-open, html.dv-cc-open body { overflow: hidden; }

/* legal pages (privacy policy, legal notice) */
.dv-legal .dv-article-body h2, .dv-legal .dv-article-body h3 { scroll-margin-top: 110px; }
.dv-legal .dv-article-body code { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.07); color: #fff; font-size: .85em; }
.dv-legal .dv-cc-table { font-size: 15px; }
.dv-legal .dv-cc-table-wrap { margin-bottom: 26px; }
.dv-cc-table-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dv-cc-table-title small { padding: 4px 9px; border: 1px solid rgba(52,211,153,.3); border-radius: 999px; background: rgba(52,211,153,.1); color: #6ee7b7; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dv-cc-inline { appearance: none; margin: 0; padding: 11px 20px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: transparent; color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }

/* footer: privacy policy · legal notice · cookie settings */
.dv-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin: 10px 0 0; font-size: 15px; }
.dv-legal-links a { color: #9ca3af; text-decoration: none; }
.dv-legal-links span { color: #4b5563; }

/* contact form: privacy note */
.dv-form-privacy { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 0; color: #6b7280; font-size: 13.5px; line-height: 1.55; }
.dv-form-privacy i { margin-top: 3px; color: #ff3259; }
.dv-form-privacy a { color: #c4c9d4; text-decoration: underline; text-underline-offset: 3px; }

/* hover colours only where a pointer really hovers: on phones a tap must not leave "Accept all" highlighted */
@media (hover: hover) {
  .dv-cc-text a:hover, .dv-cc-intro a:hover { color: #ff3259; }
  .dv-cc-btn:hover { background: #ff3259; border-color: #ff3259; color: #fff; }
  .dv-cc-more:hover, .dv-cc-details summary:hover, .dv-legal-links a:hover, .dv-form-privacy a:hover { color: #fff; }
  .dv-cc-x:hover, .dv-cc-inline:hover { border-color: #ff3259; color: #ff3259; }
}

@media (max-width: 575px) {
  .dv-cc { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; }
  .dv-cc-card { padding: 18px; }
  .dv-cc-title { font-size: 16px; }
  .dv-cc-text { margin-bottom: 14px; font-size: 14px; }
  .dv-cc-btn { padding: 11px 14px; }
  .dv-cc-modal { align-items: flex-end; padding: 0; }
  .dv-cc-dialog { max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .dv-cc-mhead, .dv-cc-body, .dv-cc-mfoot { padding-left: 18px; padding-right: 18px; }
  .dv-cc-mfoot .dv-cc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-cc, .dv-cc-modal { transition: none; }
}

/* ---------- project banners: each project's own logo on one shared backdrop ----------
   Dark panel and a glow in the brand colour
   (--brand: "r g b" from config/site.php). Logo width comes from App\Support\ProjectLogo (--logo-w). */
#projects .dv-project .main-img.dv-banner {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(70% 80% at 50% 118%, rgb(var(--brand) / .40), transparent 68%),
    radial-gradient(45% 55% at 92% -12%, rgb(var(--brand) / .14), transparent 70%),
    linear-gradient(180deg, #12151f 0%, #0a0c12 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.07);
  transition: box-shadow .45s ease;
}
#projects .dv-project .main-img.dv-banner::after {
  content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; width: 58%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, rgb(var(--brand) / .20), transparent 62%);
  transform: translate(-50%, -50%); transition: transform .8s var(--cube-1, ease), opacity .45s ease; opacity: .85;
}
#projects .dv-project .main-img.dv-banner img.dv-banner-logo {
  width: var(--logo-w, 38%); height: auto; max-width: 60%; max-height: 40%; padding: 0; object-fit: contain; object-position: center;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.45)); transition: transform .6s var(--cube-1, ease);
}
@media (hover: hover) {
  #projects .dv-project:hover .main-img.dv-banner { box-shadow: inset 0 0 0 1px rgb(var(--brand) / .38), inset 0 1px 0 rgba(255,255,255,.09); }
  #projects .dv-project:hover .main-img.dv-banner::after { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
  #projects .dv-project:hover .main-img.dv-banner img.dv-banner-logo { transform: scale(1.05); }
}
@media (max-width: 767px) {
  #projects .dv-project .main-img.dv-banner img.dv-banner-logo { width: calc(var(--logo-w, 38%) * 1.2); max-width: 68%; }
}

/* ---------- our services: one card per service, same backdrop as the project banners ----------
   Dark panel, fading grid, red glow from below; light UI illustrations from /assets/img/work. */
.dv-services { position: relative; padding: 0 0 120px; }
.dv-services-head { max-width: 720px; margin: 0 auto 50px; }
.dv-services-lead { max-width: 640px; margin: 16px auto 0; color: #9ca3af; }
.dv-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dv-svc {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border-radius: 24px; color: #fff;
  background:
    radial-gradient(85% 50% at 50% 112%, rgba(255,50,89,.22), transparent 70%),
    radial-gradient(55% 40% at 100% -5%, rgba(255,50,89,.08), transparent 70%),
    linear-gradient(180deg, #12151f 0%, #0a0c12 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.07);
  transition: box-shadow .45s ease, transform .45s var(--cube-1, ease);
}
.dv-svc::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 36px 36px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 42% at 50% 24%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 42% at 50% 24%, #000 10%, transparent 75%);
}
.dv-svc-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; padding: 26px 22px 6px; }
.dv-services .dv-svc-art img { display: block; width: 100%; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .6s var(--cube-1, ease); }
.dv-svc-body { display: flex; flex-direction: column; flex: 1; padding: 6px 28px 30px; }
.dv-svc-sub { margin: 0 0 8px; color: #9ca3af; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; line-height: 1.3; text-transform: uppercase; }
.dv-svc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dv-services .dv-svc-title { margin: 0; color: #fff; font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 800; line-height: 1.25; text-transform: none; }
.dv-svc-link, .dv-svc-link:hover, .dv-svc-link:focus { color: inherit; text-decoration: none; }
.dv-svc-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }   /* the whole card is the link */
.dv-svc-arrow {
  flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -2px;
  border-radius: 50%; background: var(--gly-gd-1, #ff3259); color: #fff; font-size: 15px; transition: transform .35s ease;
}
.dv-svc-text { margin: 14px 0 0; color: #9ca3af; font-size: 15.5px; line-height: 1.6; }
.dv-svc:focus-within { outline: 3px solid rgba(255,50,89,.65); outline-offset: 3px; }
@media (hover: hover) {
  .dv-svc:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255,50,89,.4), inset 0 1px 0 rgba(255,255,255,.09); }
  .dv-svc:hover .dv-svc-art img { transform: scale(1.04); }
  .dv-svc:hover .dv-svc-arrow { transform: rotate(45deg); }
}
@media (max-width: 1199px) {
  .dv-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .dv-services { padding: 0 0 80px; }
  .dv-services-head { margin-bottom: 34px; }
  .dv-services-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dv-svc-art { aspect-ratio: 16 / 9; padding: 20px 20px 4px; }
  .dv-svc-body { padding: 4px 22px 24px; }
  .dv-services .dv-svc-title { font-size: 19px; }
  .dv-svc-arrow { width: 40px; height: 40px; }
  .dv-svc-text { font-size: 15px; }
}
/* section titles keep the case they are written in: the theme capitalised every word, also in the split-text
   animation ("Naše Usluge", "Entwicklung Von A Bis Z"); English titles are written in title case already */
html .gly-section-title-2, html .gly-split-text .split-line div div:nth-child(1) { text-transform: none; }

/* ---------- development cycle (#process): the five outlined circles, now animated ----------
   Same look as before (beige panel, black outline circles, dark icons, red accents). While the section
   is on screen the steps light up in turn: the ring fills like a progress dial, the icon lifts, a
   red line grows from step to step and the dashed connector flows. Script: devoio.js "development
   cycle" (adds .js-cycle, .is-inview, .is-vertical, .is-active / .is-done, --progress, track position). */
.dv-process { position: relative; overflow: hidden; padding: 110px 0 100px; background: #f4f3ee; color: #181717; }
.dv-process::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(24,23,23,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(24,23,23,.045) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 58%, #000 15%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 58%, #000 15%, transparent 80%);
}
.dv-process .container { position: relative; }
.dv-process .dv-process-head { margin-bottom: 70px; }
.dv-process .dv-process-head .gly-section-title-2 { color: #181717; }   /* dark title on the light panel (the theme default is white) */
.dv-cycle { position: relative; --step-ms: 2600ms; }
.dv-cycle-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 52px; margin: 0; padding: 0; list-style: none; }
.dv-step { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.dv-step-circle {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; aspect-ratio: 1; padding: 15%; border-radius: 50%;
  transition: box-shadow .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.dv-step-circle::after {   /* pulse around the active step */
  content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(255,50,89,.35); opacity: 0; pointer-events: none;
}
.dv-step-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); pointer-events: none; }
.dv-step-ring-base { fill: #f4f3ee; stroke: #181717; stroke-width: 1.1; transition: fill .5s ease; }
.dv-step-ring-arc { fill: none; stroke: url(#dvCycleGradient); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; opacity: 0; }
.dv-step-num {
  position: absolute; top: 0; left: 50%; z-index: 2; transform: translate(-50%, -50%);
  padding: 4px 12px; border: 1px solid #181717; border-radius: 999px; background: #f4f3ee; color: #181717;
  font-family: 'Unbounded', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.2;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.dv-step-icon { position: relative; z-index: 1; color: #111520; font-size: 50px; line-height: 1; transition: color .4s ease; }
.dv-process .dv-step-title { position: relative; z-index: 1; margin: 0; color: #181717; font-size: 18px; line-height: 1.2; text-align: center; text-transform: none; }
.dv-step-text { max-width: 220px; margin: 24px auto 0; color: #5b5f66; font-size: 15px; line-height: 1.55; }

/* states */
.dv-step.is-active .dv-step-circle { box-shadow: 0 18px 40px rgba(24,23,23,.10); transform: translateY(-6px); }
.dv-step.is-active .dv-step-circle::after { animation: dvPulse 1.8s ease-out infinite; }
.dv-step.is-active .dv-step-ring-base { fill: #fff; }
.dv-step.is-active .dv-step-ring-arc { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset var(--step-ms) linear, opacity .2s ease; }
.dv-step.is-done .dv-step-ring-arc { opacity: .35; stroke-dashoffset: 0; transition: opacity .5s ease; }
.dv-step.is-active .dv-step-icon { color: #ff3259; animation: dvLift 1.6s ease-in-out infinite; }
.dv-step.is-active .dv-step-num, .dv-step.is-done .dv-step-num { border-color: transparent; background: var(--gly-gd-1, #ff3259); color: #fff; }
@keyframes dvLift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes dvPulse { 0% { opacity: .9; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.1); } }

/* connector between the ring centres (position set by the script) */
.dv-cycle-track { display: none; position: absolute; z-index: 0; height: 2px; background-image: repeating-linear-gradient(90deg, rgba(24,23,23,.4) 0 8px, transparent 8px 16px); background-size: 16px 2px; animation: dvFlowX 1s linear infinite; }
.js-cycle .dv-cycle-track { display: block; }
.dv-cycle-fill { position: absolute; inset: 0; background: var(--gly-gd-1, #ff3259); transform: scaleX(var(--progress, 0)); transform-origin: left center; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
@keyframes dvFlowX { to { background-position: 16px 0; } }
@keyframes dvFlowY { to { background-position: 0 16px; } }
.dv-cycle.is-vertical .dv-cycle-track { width: 2px; background-image: repeating-linear-gradient(180deg, rgba(24,23,23,.4) 0 8px, transparent 8px 16px); background-size: 2px 16px; animation-name: dvFlowY; }
.dv-cycle.is-vertical .dv-cycle-fill { transform: scaleY(var(--progress, 0)); transform-origin: center top; }

/* reveal when the section scrolls in */
.js-cycle .dv-step { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 110ms); }
.js-cycle:not(.is-inview) .dv-step { opacity: 0; transform: translateY(26px); }
.js-cycle .dv-cycle-track { clip-path: inset(0 0 0 0); transition: clip-path 1.2s ease .3s; }
.js-cycle:not(.is-inview) .dv-cycle-track { clip-path: inset(0 100% 0 0); }
.js-cycle.is-vertical:not(.is-inview) .dv-cycle-track { clip-path: inset(0 0 100% 0); }

/* "the cycle starts again" */
.dv-cycle-loop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 64px auto 0; color: #181717; font-size: 16px; font-weight: 600; line-height: 1.5; text-align: center; }
.dv-cycle-loop-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gly-gd-1, #ff3259); color: #fff; }
.dv-cycle-loop-icon i { animation: dvSpin 6s linear infinite; }
@keyframes dvSpin { to { transform: rotate(360deg); } }
.dv-cycle-loop a { color: #e11d48; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dv-cycle-loop a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* tablets and phones: vertical timeline (ring on the left, text on the right) */
@media (max-width: 991px) {
  .dv-process { padding: 80px 0; }
  .dv-process .dv-process-head { margin-bottom: 46px; }
  .dv-cycle-steps { grid-template-columns: minmax(0, 1fr); gap: 34px; max-width: 560px; margin: 0 auto; }
  .dv-step { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 22px; row-gap: 6px; align-items: start; text-align: left; }
  .dv-step-circle { display: contents; }
  .dv-step-circle::after { display: none; }
  .dv-step-ring { position: relative; inset: auto; grid-column: 1; grid-row: 1 / span 2; width: 88px; height: 88px; }
  .dv-step-icon { grid-column: 1; grid-row: 1 / span 2; justify-self: center; margin-top: 27px; font-size: 32px; }
  .dv-step-num { position: relative; top: auto; left: auto; grid-column: 1; grid-row: 1 / span 2; justify-self: center; align-self: start; transform: translateY(-50%); padding: 3px 9px; font-size: 11px; }
  .dv-process .dv-step-title { grid-column: 2; grid-row: 1; align-self: end; padding-top: 14px; font-size: 18px; text-align: left; }
  .dv-step-text { grid-column: 2; grid-row: 2; max-width: none; margin: 0; font-size: 15px; text-align: left; }
  .dv-step.is-active .dv-step-ring { filter: drop-shadow(0 10px 18px rgba(24,23,23,.12)); }
  .dv-cycle-loop { margin-top: 48px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-cycle-track, .dv-step-icon, .dv-cycle-loop-icon i, .dv-step-circle::after { animation: none !important; }
  .js-cycle .dv-step, .js-cycle .dv-cycle-track { transition: none; }
}

/* ---------- handwritten "IT professionals" under the header logo (Caveat, self-hosted) ---------- */
header.tx-header .gly-header-1-logo { position: relative; }
header.tx-header .dv-logo-tag {
  position: absolute; right: -6px; top: 100%; margin-top: -4px; z-index: 1; pointer-events: none;
  color: #ff3259; font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; font-size: 24px; font-weight: 700; line-height: 1;
  white-space: nowrap; transform: rotate(-4deg); transform-origin: right top;
}
@media (max-width: 767px) {
  header.tx-header .dv-logo-tag { right: -4px; margin-top: -1px; font-size: 17px; }
}

/* ---------- under the hood (#code): an editor types a controller, the terminal runs tests and a deploy ----------
   Script: devoio.js "code terminal". Pending lines stay in the layout (visibility: hidden), so nothing jumps. */
.dv-code { position: relative; overflow: hidden; padding: 120px 0; background: #030406; color: #fff; }
.dv-code::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(45% 55% at 78% 55%, rgba(255,50,89,.14), transparent 70%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) center / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) center / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 60% 50%, #000 25%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 75% at 60% 50%, #000 25%, transparent 85%);
}
.dv-code .container { position: relative; }
.dv-code .gly-section-title-2 { margin-bottom: 18px; color: #fff; }
.dv-code-lead { max-width: 460px; margin: 0 0 34px; color: #9ca3af; font-size: 18px; line-height: 1.7; }

.dv-code-window {
  position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: #0d1017;
  box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 80px rgba(255,50,89,.08);
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}
.dv-code-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.06); background: #12151f; color: #9ca3af; font-size: 12.5px; }
.dv-code-dots { display: inline-flex; gap: 7px; }
.dv-code-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dv-code-dots i:nth-child(2) { background: #febc2e; }
.dv-code-dots i:nth-child(3) { background: #28c840; }
.dv-code-tab { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.05); color: #e5e7eb; white-space: nowrap; text-overflow: ellipsis; }
.dv-code-tab i { color: #8993be; font-size: 16px; }
.dv-code-tab .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-code-status { display: inline-flex; flex: none; align-items: center; gap: 7px; margin-left: auto; color: #6ee7b7; font-size: 12px; letter-spacing: .04em; }
.dv-code-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.16); }
.dv-code-status.is-busy { color: #fbbf24; }
.dv-code-status.is-busy .dot { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.16); animation: dvBusy 1s ease-in-out infinite; }
@keyframes dvBusy { 50% { opacity: .35; } }

.dv-code-editor { margin: 0; padding: 18px 18px 14px 0; overflow-x: auto; border: 0; border-radius: 0; background: transparent; color: #d1d5db; font: inherit; font-size: 13.5px; line-height: 1.75; white-space: pre; tab-size: 4; scrollbar-width: none; }
.dv-code-editor::-webkit-scrollbar { display: none; }
.dv-code-editor code { padding: 0; background: none; color: inherit; font: inherit; }
.dv-code-line .ln { display: inline-block; width: 3.4em; padding-right: 1.3em; color: #4b5563; text-align: right; user-select: none; }
.dv-code-line.is-pending, .dv-term-line.is-pending { visibility: hidden; }
.dv-code-window .k { color: #ff7a90; }
.dv-code-window .t { color: #c4b5fd; }
.dv-code-window .v { color: #fcd34d; }
.dv-code-window .f { color: #7dd3fc; }
.dv-code-window .s { color: #86efac; }
.dv-code-window .n { color: #f9a8d4; }
.dv-code-window .a { color: #fca5a5; }
.dv-caret { display: inline-block; width: .55em; height: 1.2em; margin-left: 1px; vertical-align: -.22em; background: #ff3259; animation: dvBlink 1s steps(1) infinite; }
@keyframes dvBlink { 50% { opacity: 0; } }

.dv-term { border-top: 1px solid rgba(255,255,255,.07); background: #07090d; }
.dv-term-head { display: flex; justify-content: space-between; padding: 8px 18px; border-bottom: 1px solid rgba(255,255,255,.04); color: #6b7280; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.dv-term-body { padding: 12px 18px 16px; overflow-x: auto; color: #d1d5db; font-size: 13px; line-height: 1.75; scrollbar-width: none; }
.dv-term-body::-webkit-scrollbar { display: none; }
.dv-term-line { min-height: 1.75em; white-space: pre; }   /* only inside a line: the template's line breaks between lines must not render */
.dv-code-window .pr { color: #ff3259; font-weight: 700; }
.dv-code-window .dir { color: #7dd3fc; font-weight: 700; }
.dv-code-window .git { color: #a78bfa; }
.dv-code-window .br { color: #fca5a5; }
.dv-code-window .ok { color: #34d399; }
.dv-code-window .dim { color: #6b7280; }
.dv-code-window .hl { color: #fbbf24; }

@media (max-width: 991px) {
  .dv-code { padding: 90px 0; }
  .dv-code-lead { max-width: none; }
}
@media (max-width: 575px) {
  .dv-code { padding: 70px 0; }
  .dv-code-window { border-radius: 14px; }
  .dv-code-bar { gap: 10px; height: 42px; padding: 0 12px; font-size: 11.5px; }
  .dv-code-editor { padding: 14px 12px 12px 0; font-size: 11.5px; }
  .dv-code-line .ln { width: 2.8em; padding-right: 1em; }
  .dv-term-head { padding: 7px 12px; }
  .dv-term-body { padding: 10px 12px 14px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-caret, .dv-code-status .dot { animation: none !important; }
}

/* ---------- partners & clients: endless logo strip + cloud & hosting tiles ----------
   Logo sizes come in as --w / --h (App\Support\LogoSize: the same area for every logo). */
.dv-partners { position: relative; overflow: hidden; padding: 100px 0 110px; background: #000; }
.dv-partners-head { margin-bottom: 44px; }
.dv-partners .gly-section-title-2 { color: #fff; }
.dv-marquee {
  position: relative; overflow: hidden; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.dv-marquee-track { display: flex; align-items: center; width: max-content; margin: 0; padding: 0; animation: dvMarquee 48s linear infinite; }
.dv-marquee:hover .dv-marquee-track { animation-play-state: paused; }
.dv-marquee-item { display: flex; flex: none; align-items: center; justify-content: center; height: 84px; padding: 0 46px; }
.dv-partners .dv-marquee-item img, .dv-partners .dv-cloud-item img { display: block; width: var(--w); height: var(--h); max-width: none; object-fit: contain; }
.dv-partners .dv-marquee-item img { opacity: .78; transition: opacity .3s ease, transform .3s ease; }
.dv-marquee-item:hover img { opacity: 1; transform: scale(1.06); }
@keyframes dvMarquee { to { transform: translateX(-50%); } }

.dv-cloud-label { margin: 64px 0 22px; color: #9ca3af; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.dv-cloud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; padding: 0; }
.dv-cloud-item {
  display: flex; align-items: center; justify-content: center; height: 100px; border-radius: 18px;
  background: radial-gradient(70% 90% at 50% 120%, rgba(255,255,255,.06), transparent 70%), linear-gradient(180deg, #11141d 0%, #0a0c12 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); transition: transform .35s ease, box-shadow .35s ease;
}
@media (hover: hover) {
  .dv-cloud-item:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255,50,89,.35); }
}
@media (max-width: 767px) {
  .dv-partners { padding: 70px 0 80px; }
  .dv-partners-head { margin-bottom: 30px; }
  .dv-marquee-item { height: 70px; padding: 0 30px; }
  .dv-partners .dv-marquee-item img { width: calc(var(--w) * .78); height: calc(var(--h) * .78); }
  .dv-cloud-label { margin-top: 44px; }
  .dv-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dv-cloud-item { height: 82px; }
  .dv-partners .dv-cloud-item img { width: calc(var(--w) * .78); height: calc(var(--h) * .78); }
}
@media (prefers-reduced-motion: reduce) {
  .dv-marquee { -webkit-mask-image: none; mask-image: none; }
  .dv-marquee-track { flex-wrap: wrap; justify-content: center; width: auto; animation: none; }
  .dv-marquee-item[aria-hidden="true"] { display: none; }
}

/* ---------- hero astronaut (h2-il-3.webp): larger and blended into the black background ----------
   The image carries a semi-transparent dark backdrop that showed as a box with a hard bottom edge.
   "lighten" lets the page background win over that backdrop, the elliptical mask fades every edge.
   Size only via width/top/left: the theme's intro animation moves it with transform. */
.gly-hero-2-area .gly-hero-2-il-3 {
  top: 8%; left: 2%; width: 560px; height: auto; max-width: none;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 56% 58% at 48% 42%, #000 40%, rgba(0,0,0,.55) 62%, transparent 84%);
          mask-image: radial-gradient(ellipse 56% 58% at 48% 42%, #000 40%, rgba(0,0,0,.55) 62%, transparent 84%);
}
@media (min-width: 768px) and (max-width: 1199px) {
  .gly-hero-2-area .gly-hero-2-il-3 { width: 500px; }
}
@media (max-width: 767px) {
  .gly-hero-2-area .gly-hero-2-il-3 { top: 10%; left: calc(50% - 230px); width: 460px; opacity: .8; }   /* behind the headline on phones */
}

/* ---------- 404 page ---------- */
.dv-404 { display: flex; align-items: center; min-height: 80vh; min-height: 80dvh; }
.dv-404-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.dv-404-code {
  margin: 0; font-family: 'Unbounded', sans-serif; font-size: clamp(96px, 18vw, 180px); font-weight: 800; line-height: 1;
  background: var(--gly-gd-1, linear-gradient(90deg, #7a1d33, #ff3259)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dv-404-title { margin: 18px 0 14px; color: #fff; font-family: 'Unbounded', sans-serif; font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.2; }
.dv-404-text { margin: 0 auto 34px; max-width: 520px; color: #9ca3af; font-size: 18px; line-height: 1.6; }
.dv-404-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; }
.dv-404-ghost { display: inline-flex; align-items: center; padding: 14px 26px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; }
.dv-404-ghost:hover { border-color: #ff3259; color: #ff3259; }
.dv-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 40px 0 0; padding: 0; }
.dv-404-links a { color: #9ca3af; text-decoration: none; }
.dv-404-links a:hover { color: #fff; }
