.home-content,
.news-article,
body:not(.home) .entry,
.site-footer {
  --studio-bg: #070e19;
  --studio-ink: #f1f7ff;
  --studio-muted: #b3c7da;
  --studio-accent: var(--dns-blue-light);
  --studio-edge: #75baff38;
  --studio-pane: linear-gradient(145deg, #1a354ce8, #101e32e8 46%, #111c34e8);
  --studio-shadow: 0 20px 44px #02061350, inset 0 1px 0 #d5f4ff22;
  --studio-radius: clamp(18px, 2.5vw, 31px);
  --bg: var(--studio-bg);
  --ink: var(--studio-ink);
  --muted: var(--studio-muted);
  --accent: var(--studio-accent);
  --line: var(--studio-edge);
  --surface: #132238;
  color: var(--ink);
}

html[data-directsol-theme="light"] :is(.home-content, .news-article, body:not(.home) .entry) {
  --studio-bg: #eaf2fb;
  --studio-ink: #14263d;
  --studio-muted: #34516b;
  --studio-accent: var(--dns-blue);
  --studio-edge: #3e679e4d;
  --studio-pane: linear-gradient(145deg, #ffffffef, #e5f0fdee 62%, #e1e9f7ee);
  --studio-shadow: 0 16px 42px #304d6b1e, inset 0 1px 0 #fff;
  --surface: #f0f7fd;
}

.home-content, .site-footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
body {
  --wallpaper-opacity: .42;
  --wallpaper-x: 70%;
  isolation: isolate;
  background: #0b1727;
}
html[data-directsol-theme="light"] body {
  --wallpaper-opacity: .46;
  background: #eaf2fb;
}
body::before,
.studio-wallpaper {
  position: fixed;
  z-index: -1;
  inset: -13% 0;
  opacity: var(--wallpaper-opacity);
  transform: translate3d(0, var(--studio-drift, 0px), 0);
  pointer-events: none;
}
body::before {
  content: "";
  background: url("./studio-scenery.webp") var(--wallpaper-x) center / cover no-repeat;
}
.studio-wallpaper { display: none; }
@media (prefers-reduced-motion: no-preference) {
  body:has(> .studio-wallpaper)::before { content: none; }
  .studio-wallpaper {
    display: block;
    overflow: hidden;
    container-type: size;
  }
  .studio-wallpaper > svg {
    position: absolute;
    top: 50%;
    left: var(--wallpaper-x);
    width: max(100cqw, 100cqh * 16 / 9);
    height: max(100cqh, 100cqw * 9 / 16);
    transform: translate(calc(-1 * var(--wallpaper-x)), -50%);
  }
  .studio-wind-rotor {
    transform-origin: 0 0;
    animation: studio-wind-spin var(--rotor-period) linear infinite;
  }
  @keyframes studio-wind-spin {
    from { transform: rotate(var(--rotor-phase)); }
    to { transform: rotate(calc(var(--rotor-phase) + 1turn)); }
  }
}
html[data-directsol-theme="light"] body::before,
html[data-directsol-theme="light"] .studio-wallpaper {
  filter: brightness(1.65) saturate(1.08);
  mask-image: linear-gradient(90deg, #0005 12%, #0008 45%, #000 78%);
}
@media (max-width: 760px) {
  body.home { --wallpaper-x: 80%; }
  body.home::before,
  body.home .studio-wallpaper { top: -27%; }
  html[data-directsol-theme="light"] body { --wallpaper-opacity: .34; }
  html[data-directsol-theme="light"] body::before,
  html[data-directsol-theme="light"] .studio-wallpaper {
    mask-image: linear-gradient(90deg, #0008, #000b 56%, #000);
  }
}

.home-content:has(> .home-content-section) { padding-block: clamp(20px, 3.4vw, 51px); }
.home-section-heading { margin-bottom: clamp(24px, 3.5vw, 47px); }
.home-section-heading h2 {
  margin-bottom: 9px;
  font-size: clamp(1.52rem, 4.4vw, 3.85rem);
  line-height: 1.01;
  letter-spacing: -.056em;
  text-wrap: balance;
}
.home-section-heading h2::before {
  flex-basis: .12em;
  border-radius: 8px;
  background: linear-gradient(0deg, #2860d7, var(--dns-blue-light));
  box-shadow: 0 0 14px #55aaff70;
}
.home-section-heading p { font-size: clamp(.93rem, 1.4vw, 1.16rem); line-height: 1.55; }
.home-services-grid { gap: clamp(15px, 2.3vw, 28px); }

:is(.home-service-card, .home-value-card, .home-values-image, .home-news-card, .home-partner-card,
    .career-card, .news-article-cover, .news-gallery-slide) {
  background: var(--studio-pane);
  border: 1px solid var(--studio-edge);
  border-radius: var(--studio-radius);
  box-shadow: var(--studio-shadow);
}
.home-service-card, .home-value-card, .home-partner-card { position: relative; }
.home-service-image::after { background: linear-gradient(transparent, #050e23b5); }
.home-services :is(button, a).home-service-title,
.home-services :is(button, a).home-service-title:is(:hover, :active, :focus),
html[data-directsol-theme="light"] .home-services :is(button, a).home-service-title:is(:hover, :active, :focus) {
  background: #fff;
  border-top: 1px solid var(--studio-edge);
  color: #14263d;
  font-size: clamp(.98rem, 1.45vw, 1.25rem);
  letter-spacing: -.022em;
}
.home-service-card:has(a.home-service-title:hover) { border-color: var(--studio-accent); }
.home-value-icon {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #7abfff63, #536ee52e 74%);
  box-shadow: inset 0 1px 0 #e1efff52, 0 0 20px #459bff38;
}
.home-values-image { overflow: hidden; }
.home-news-card, .home-partner-card { box-shadow: inset 0 1px 0 #d5f4ff22; }
:is(.home-news, .home-partnerships) .home-carousel-track {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.home-news-image, .news-article-cover { background-color: var(--surface); }
.home-news-copy { padding: clamp(19px, 2.45vw, 31px); }
.home-news-copy time {
  display: inline-block;
  width: fit-content;
  color: var(--studio-accent);
  border: 1px solid var(--studio-edge);
  border-radius: 999px;
  padding: 3px 9px;
}
.home-partner-brand { border-radius: 18px; }
.home-strategic-logo {
  background: linear-gradient(145deg, #fff, #e9f0f7);
  border-color: #b6dcf2b0;
  border-radius: var(--studio-radius);
  box-shadow: inset 0 1px 0 #fff;
}
.home-strategic-logo img { mix-blend-mode: multiply; }
.home-carousel-frame .home-carousel-controls button {
  background: var(--studio-pane);
  border: 1px solid var(--studio-edge);
  border-radius: 999px;
  color: var(--studio-ink);
  box-shadow: inset 0 1px 0 #d5f4ff22;
}
.home-carousel-frame .home-carousel-controls button:hover { color: var(--studio-accent); }

.news-article .news-article-heading,
body:not(.home) main.entry {
  padding: clamp(23px, 5vw, 61px);
  margin-bottom: clamp(20px, 4vw, 40px);
  background: var(--studio-pane);
  border: 1px solid var(--studio-edge);
  border-radius: var(--studio-radius);
  box-shadow: var(--studio-shadow);
}
.news-article .news-article-heading { max-width: none; }
.news-article h1 { text-wrap: balance; }
.news-article-body {
  max-width: min(100%, 77ch);
  padding: clamp(18px, 4vw, 43px);
  background: var(--studio-pane);
  border: 1px solid var(--studio-edge);
  border-radius: var(--studio-radius);
}

.site-footer {
  --footer-ink: var(--studio-ink);
  --footer-muted: var(--studio-muted);
  --footer-accent: var(--studio-accent);
  --footer-card-background: var(--studio-pane);
  --footer-card-filter: none;
  --footer-card-gap: clamp(13px, 2.4vw, 30px);
  background: transparent;
}
.footer-columns {
  grid-template-columns: 1.3fr .75fr 1fr;
  gap: var(--footer-card-gap);
}
.footer-columns > div {
  padding: clamp(19px, 2.5vw, 31px);
  background: var(--footer-card-background);
  backdrop-filter: var(--footer-card-filter);
  border: 1px solid var(--studio-edge);
  border-radius: var(--studio-radius);
  box-shadow: var(--studio-shadow);
}
.site-footer h2 { letter-spacing: .095em; }
.footer-bottom { text-align: center; }
html[data-directsol-theme="light"] .site-footer .footer-bottom { color: #14263d; }
html[data-directsol-theme="light"] .footer-bottom small { font-weight: 600; }

@media (max-width: 760px) {
  .home-section-heading h2 { text-wrap: wrap; }
  .footer-columns {
    grid-template-columns: 1fr;
    padding-bottom: var(--footer-card-gap);
  }
  .footer-bottom {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--footer-card-background);
    backdrop-filter: var(--footer-card-filter);
    border: 1px solid var(--studio-edge);
    border-radius: var(--studio-radius);
    box-shadow: var(--studio-shadow);
  }
  .footer-bottom small { color: var(--footer-ink); }
}
@media (max-width: 530px) {
  .home-carousel-frame .home-carousel-controls button { border-color: transparent; background: transparent; box-shadow: none; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .studio-tilt {
    transform: perspective(1000px) rotateX(var(--studio-rx, 0deg)) rotateY(var(--studio-ry, 0deg));
    transition: transform .24s ease-out, border-color .24s ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  body::before { transform: none; }
}

@supports (backdrop-filter: blur(12px)) {
  .site-footer {
    --footer-card-background: linear-gradient(145deg, #1a354cc5, #101e32bc 48%, #111c34c5);
    --footer-card-filter: blur(14px) saturate(145%);
  }
  :is(.home-service-card, .home-value-card, .home-partner-card) {
    background: linear-gradient(145deg, #1a354cc5, #101e32bc 48%, #111c34c5);
    backdrop-filter: blur(14px) saturate(145%);
  }
  html[data-directsol-theme="light"] :is(.home-service-card, .home-value-card, .home-partner-card) {
    background: linear-gradient(145deg, #ffffffd9, #e5f0fdc9 62%, #e1e9f7d9);
  }
}

body header.site {
  --header-edge: #97bfff42;
  --header-glass: linear-gradient(115deg, #192e43e8, #101a2ae0 60%, #172840e8);
  --header-control: linear-gradient(145deg, #27465bd9, #152438da);
  --header-highlight: var(--dns-blue-light);
  isolation: isolate;
  background: transparent;
  border-bottom: 1px solid var(--header-edge);
  backdrop-filter: none;
}
body header.site::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--header-glass);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 10px 28px #02061245, inset 0 1px 0 #e2f6ff29;
  pointer-events: none;
}
html[data-directsol-theme="light"] body header.site {
  --header-edge: #5d87ab45;
  --header-glass: linear-gradient(115deg, #f5fbffe8, #e1eff7ed 65%, #e9eff9e8);
  --header-control: linear-gradient(145deg, #fff, #e5eff9);
  --header-highlight: var(--dns-blue);
  background: transparent;
}
header.site .brand svg { color: var(--header-highlight); }
header.site .appearance-dock :is(.language-switch, .appearance-control),
header.site button.mobile-navigation-toggle:not([hidden]) {
  background: var(--header-control);
  border-color: var(--header-edge);
  box-shadow: inset 0 1px 0 #dbf7ff35;
}
header.site .appearance-dock :is(.language-switch, .appearance-control):hover,
header.site button.mobile-navigation-toggle:not([hidden]):hover { border-color: var(--header-highlight); }
header.site .navigation-links a { cursor: pointer; }
header.site .navigation-links a:hover { color: var(--header-highlight); }

.home header.site { border-bottom: 0; }
.home header.site:not(.is-scrolled)::before {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
@media (max-width: 760px) {
  header.site.navigation-enhanced nav { background: #101c30b3; }
  html[data-directsol-theme="light"] header.site.navigation-enhanced nav { background: #eaf2fb85; }
  body:has(header.site.navigation-open) > :is(main, .site-footer) { visibility: hidden; }
}
