/* Final AtraByte homepage hero — scoped to the production home page. */
.home-page {
  --studio-bg: #f7f7fa;
  --studio-ink: #11121a;
  --studio-muted: #5d6070;
  --studio-rule: #d9dae2;
  --studio-violet: #6044dc;
  --studio-stage: #dfe2ff;
  background: var(--studio-bg);
}

.home-page #nb {
  position: absolute;
  color: var(--studio-ink);
  background: transparent;
  border: 0;
  backdrop-filter: none;
}
.home-page #nb.scrolled {
  position: fixed;
  background: rgba(247, 247, 250, .94);
  border-bottom: 1px solid var(--studio-rule);
  backdrop-filter: blur(14px);
}
.home-page .nb-inner {
  width: min(calc(100% - 6rem), 1320px);
  min-height: 5.4rem;
  padding: 0;
  direction: ltr;
}
.home-page .nb-logo {
  width: 108px;
  height: 34px;
  position: relative;
  overflow: hidden;
}
.home-page .nb-logo__studio {
  width: 160px;
  max-width: none;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  transform: translate(-50%, -50%);
}
.home-page .nb-links { direction: ltr; gap: clamp(1rem, 2.2vw, 2.25rem); }
.home-page .nb-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .5rem 0;
  border-radius: 0;
  color: var(--studio-muted);
  background: transparent;
  font-size: .75rem;
  font-weight: 500;
}
.home-page .nb-links a:hover { color: var(--studio-ink); background: transparent; }
.home-page .nb-utilities { display: flex; align-items: center; gap: .9rem; }
.home-page .nb-language { padding: 0; border: 0; border-radius: 0; }
.home-page .nb-language a {
  min-width: 31px;
  min-height: 33px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 0;
  color: var(--studio-muted);
  font-size: .58rem;
}
.home-page .nb-language a:hover { color: var(--studio-ink); }
.home-page .nb-language a.is-active { color: #fff; background: var(--studio-ink); }
.home-page .nb-studio-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .65rem 1rem;
  border: 1px solid var(--studio-ink);
  border-radius: 999px;
  color: var(--studio-ink);
  font-size: .72rem;
  font-weight: 600;
  text-decoration: none;
}
.home-page .nb-studio-cta:hover { color: #fff; background: var(--studio-ink); }
.home-page .nb-tog { color: var(--studio-ink); background: transparent; border-color: var(--studio-rule); }

.home-page #atrabyte-hero.studio-hero {
  min-height: 0;
  display: block;
  padding: 5.4rem 0 0;
  overflow: hidden;
  background: var(--studio-bg);
  color: var(--studio-ink);
  text-align: initial;
}
.studio-hero__primary {
  width: min(calc(100% - 6rem), 1320px);
  min-height: 0;
  margin-inline: auto;
  padding: clamp(1.75rem, 3vw, 2.8rem) 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy orb";
  align-items: center;
  column-gap: clamp(2.5rem, 4.5vw, 4.5rem);
  direction: ltr;
}
html[dir="rtl"] .studio-hero__primary { grid-template-areas: "orb copy"; }
.studio-hero__copy {
  grid-area: copy;
  max-width: 44rem;
  text-align: start;
  direction: ltr;
}
html[dir="rtl"] .studio-hero__copy { direction: rtl; }
.studio-hero__position {
  margin: 0 0 1rem;
  color: var(--studio-violet);
  font-size: .76rem;
  font-weight: 600;
}
.studio-hero__title {
  max-width: 22ch;
  margin: 0;
  color: var(--studio-ink);
  font-size: clamp(3rem, 3.55vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 600;
  text-wrap: balance;
}
html[lang="en"] .studio-hero__title { max-width: 22ch; }
html[lang="de"] .studio-hero__title { max-width: 22ch; font-size: clamp(2.7rem, 3.25vw, 3.35rem); }
.studio-hero__title em { color: var(--studio-violet); font-style: normal; }
.studio-hero__support {
  max-width: 44ch;
  margin: 1.1rem 0 0;
  color: var(--studio-muted);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.studio-hero__benefits {
  display: grid;
  gap: .55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.studio-hero__benefits li { display: flex; align-items: flex-start; gap: .7rem; font-size: .78rem; line-height: 1.5; }
.studio-hero__benefits i {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-top: .05rem;
  border-radius: 50%;
  background: var(--studio-stage);
  color: var(--studio-violet);
  font: 700 .7rem "Space Grotesk", sans-serif;
}
.studio-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }
.studio-hero__primary-action,
.studio-hero__secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--studio-ink);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}
.studio-hero__primary-action { gap: 2.5rem; padding: .75rem 1.1rem; border-radius: 999px; color: #fff; background: var(--studio-ink); }
.studio-hero__primary-action:hover { color: #fff; }
.studio-hero__primary-action b { font: 600 1rem "Space Grotesk", sans-serif; transition: transform .2s ease; }
.studio-hero__primary-action:hover b { transform: translate(3px, -3px); }
.studio-hero__secondary-action { border-bottom: 1px solid var(--studio-ink); }

/* The scene keeps its existing dimensions; orbit geometry stays inside it. */
.studio-orb {
  grid-area: orb;
  position: relative;
  width: min(100%, clamp(32.5rem, 45vw, 40.625rem));
  aspect-ratio: 802 / 768;
  min-width: 0;
  justify-self: center;
  isolation: isolate;
  direction: ltr;
  pointer-events: none;
}
@media (min-width: 961px) {
  .studio-orb { transform: translateX(calc(var(--orb-toward-copy, -1) * clamp(12px, 2vw, 28px))); }
  html[dir="rtl"] .studio-orb { --orb-toward-copy: 1; }
}
.studio-orb__video,
.studio-orb__still {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}
.studio-orbits { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.studio-orbits--back { z-index: 0; stroke: #a3abc3; stroke-opacity: .32; stroke-width: .65; }
.studio-orbits--front { z-index: 3; stroke: #929ebc; stroke-opacity: .40; stroke-width: .65; }
.studio-orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: max-content;
  color: var(--studio-muted);
  font-family: "Space Grotesk", var(--fa), sans-serif;
  font-size: clamp(.6875rem, .9vw, .8125rem);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.studio-orbit-node i { width: 4px; height: 4px; flex: none; border-radius: 50%; background: #807caa; }
.studio-orbit-node > span {
  padding: .12rem .35rem;
  border: .5px solid rgba(163, 171, 195, .35);
  border-radius: 999px;
  background: rgba(247, 247, 250, .9);
  color: var(--studio-ink);
}
@media (max-width: 520px) {
  .studio-orbit-node { gap: .25rem; font-size: .625rem; }
  .studio-orbit-node > span { padding: .08rem .25rem; }
  .studio-orbit-node i { width: 3px; height: 3px; }
}
.studio-orb__video { visibility: hidden; }
.studio-orb.is-playing .studio-orb__video { visibility: visible; }
.studio-orb.is-playing .studio-orb__still { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .studio-orb.is-playing .studio-orb__video { visibility: hidden; }
  .studio-orb.is-playing .studio-orb__still { visibility: visible; }
}

.studio-search {
  width: min(calc(100% - 6rem), 1320px);
  margin: 0 auto;
  padding: .5rem 0 2rem;
  color: var(--studio-ink);
  direction: ltr;
}
html[dir="rtl"] .studio-search { direction: rtl; }
.studio-search__scopes { min-height: 2.2rem; display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .8rem; margin-bottom: 1.25rem; padding-inline: .45rem; color: var(--studio-muted); font-size: .62rem; }
.studio-search__scopes strong { color: var(--studio-ink); font-weight: 600; }
.studio-search__scopes > span:not(.is-active) { opacity: .45; }
.studio-search__scopes a,
.studio-search__scopes .is-active { min-height: 30px; display: inline-flex; align-items: center; padding: .25rem .6rem; color: var(--studio-muted); text-decoration: none; }
.studio-search__scopes .is-active { border-radius: 999px; color: var(--studio-violet); background: var(--studio-stage); font-weight: 600; }
.studio-search__scopes a:hover { color: var(--studio-ink); }
.studio-search__form { height: 3.75rem; display: flex; align-items: center; padding: .35rem; border: 1px solid transparent; border-radius: 999px; background: #ececf2; transition: border-color .2s ease, background .2s ease; }
.studio-search__form:focus-within { border-color: var(--studio-violet); background: #fff; }
.home-page .studio-search__form #searchInput { min-width: 0; flex: 1; width: auto; height: 100%; padding: 0 1.1rem; border: 0; outline: 0; position: static; z-index: auto; background: transparent; color: var(--studio-ink); caret-color: var(--studio-violet); font: 500 .78rem var(--fa); }
html[dir="ltr"] .home-page .studio-search__form #searchInput { font-family: "Space Grotesk", sans-serif; }
.home-page .studio-search__form #searchInput::placeholder { color: #626575; opacity: 1; }
.studio-search__form button { width: 3rem; height: 3rem; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--studio-ink); color: #fff; cursor: pointer; }
.studio-search__form button svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.studio-search__keywords { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1rem; margin-top: .9rem; padding-inline: .45rem; font-size: .58rem; }
.studio-search__keywords span { color: var(--studio-muted); }
.studio-search__keywords a { color: var(--studio-ink); text-decoration-color: var(--studio-rule); text-underline-offset: .3rem; }
.studio-search__keywords a:hover { color: var(--studio-violet); text-decoration-color: var(--studio-violet); }

.studio-proof {
  width: min(calc(100% - 6rem), 1320px);
  min-height: 6.25rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  border-top: 1px solid var(--studio-rule);
  color: var(--studio-ink);
  direction: ltr;
}
.studio-proof > p,
.studio-proof > a { margin: 0; display: grid; align-content: center; padding: 1rem; }
.studio-proof > p { padding-inline-start: 0; color: var(--studio-muted); font-size: .67rem; }
.studio-proof > a { position: relative; border-inline-start: 1px solid var(--studio-rule); color: var(--studio-ink); text-decoration: none; }
.studio-proof > a strong { font: 600 .75rem "Space Grotesk", sans-serif; }
.studio-proof > a span { margin-top: .2rem; color: var(--studio-muted); font-size: .57rem; }
.studio-proof > a.is-active::after { content: ""; position: absolute; inset: auto 1rem 0; height: 3px; background: var(--studio-violet); }
html[dir="rtl"] .studio-proof > a span { direction: rtl; text-align: right; }

@media (max-width: 1120px) {
  .home-page .nb-inner,
  .studio-hero__primary,
  .studio-search,
  .studio-proof { width: calc(100% - 3rem); }
  .studio-hero__primary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; }
  .studio-hero__title { max-width: 17ch; font-size: clamp(2.75rem, 4.7vw, 3.65rem); }
  html[lang="de"] .studio-hero__title { max-width: 18ch; font-size: clamp(2.4rem, 4vw, 3.15rem); }
  .home-page .nb-studio-cta { display: none; }
}

@media (max-width: 960px) {
  .home-page .nb-inner,
  .studio-hero__primary,
  .studio-search,
  .studio-proof { width: calc(100% - 2rem); }
  .home-page .nb-inner { min-height: 4.75rem; }
  .home-page .nb-logo { width: 92px; height: 30px; }
  .home-page .nb-logo__studio { width: 136px; left: 50%; }
  .home-page .nb-links,
  .home-page .nb-language { display: none; }
  .home-page .nb-tog { display: flex; }
  .home-page #atrabyte-hero.studio-hero { padding-top: 4.75rem; }
  .studio-hero__primary,
  html[dir="rtl"] .studio-hero__primary { min-height: 0; display: flex; flex-direction: column; align-items: stretch; padding: 2.5rem 0 1rem; }
  .studio-hero__copy { width: 100%; max-width: 44rem; order: 1; }
  .studio-hero__title { max-width: 17ch; font-size: clamp(2.55rem, 7vw, 3.4rem); line-height: 1.11; }
  html[lang="de"] .studio-hero__title { max-width: 18ch; font-size: clamp(2.25rem, 6.2vw, 3rem); }
  .studio-orb { width: min(100%, 30rem); align-self: center; margin-top: 2.2rem; order: 2; }
  .studio-search { padding: .5rem 0 2rem; }
  .studio-proof { grid-template-columns: repeat(2, 1fr); }
  .studio-proof > p { grid-column: 1 / -1; min-height: 4rem; border-bottom: 1px solid var(--studio-rule); }
  .studio-proof > a:nth-last-child(-n+2) { display: none; }
  .studio-proof > a:nth-of-type(odd) { border-inline-start: 0; }
}

@media (max-width: 520px) {
  .home-page .nb-inner,
  .studio-hero__primary,
  .studio-search,
  .studio-proof { width: calc(100% - 1.5rem); }
  .studio-hero__primary { padding-top: 1.8rem; }
  .studio-hero__position { max-width: 30ch; font-size: .68rem; line-height: 1.6; }
  .studio-hero__title { max-width: 16ch; font-size: clamp(2.2rem, 9.6vw, 2.5rem); line-height: 1.15; }
  html[lang="de"] .studio-hero__title { max-width: 17ch; font-size: clamp(1.9rem, 8.5vw, 2.2rem); }
  .studio-hero__support { margin-top: 1rem; font-size: .94rem; line-height: 1.7; }
  .studio-hero__benefits { margin-top: 1.1rem; }
  .studio-hero__benefits li { font-size: .75rem; }
  .studio-hero__actions { gap: .75rem; margin-top: 1.25rem; }
  .studio-hero__primary-action,
  .studio-hero__secondary-action { font-size: .7rem; }
  .studio-hero__primary-action { gap: 1.4rem; }
  .studio-orb { width: min(100%, 23.75rem); margin-top: 1.7rem; }
  .studio-search__scopes { flex-wrap: nowrap; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
  .studio-search__scopes::-webkit-scrollbar { display: none; }
  .studio-search__scopes > * { white-space: nowrap; }
  .studio-search__form { height: 3.5rem; }
  .home-page .studio-search__form #searchInput { padding-inline: .85rem; font-size: .72rem; }
  .studio-search__form button { width: 2.75rem; height: 2.75rem; }
  .studio-search__keywords { gap: .35rem .75rem; font-size: .54rem; }
  .studio-proof { min-height: 4.8rem; }
  .studio-proof > a { padding: .7rem .55rem; }
}

@media (pointer: coarse) {
  .studio-search__scopes a,
  .studio-search__keywords a { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-hero *,
  .home-page #nb * { transition: none !important; }
}

/* The proof rail is full-bleed; its content remains on the homepage grid. */
.home-page .studio-proof {
  width: 100%;
  min-height: 0;
  margin: 0;
  display: block;
  border-top: 1px solid var(--studio-rule);
  border-bottom: 1px solid var(--studio-rule);
}
.home-page .studio-proof__inner {
  width: min(calc(100% - 6rem), 1320px);
  min-height: 6.25rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  direction: ltr;
}
.home-page .studio-proof__inner > p,
.home-page .studio-proof__inner > a { margin: 0; display: grid; align-content: center; padding: 1rem; }
.home-page .studio-proof__inner > p { padding-inline-start: 0; color: var(--studio-muted); font-size: .67rem; }
.home-page .studio-proof__inner > a { position: relative; border-inline-start: 1px solid var(--studio-rule); color: var(--studio-ink); text-decoration: none; }
.home-page .studio-proof__inner > a strong { font: 600 .75rem "Space Grotesk", sans-serif; }
.home-page .studio-proof__inner > a span { margin-top: .2rem; color: var(--studio-muted); font-size: .57rem; }
.home-page .studio-proof__inner > a.is-active::after { content: ""; position: absolute; inset: auto 1rem 0; height: 3px; background: var(--studio-violet); }
html[dir="rtl"] .home-page .studio-proof__inner > a span { direction: rtl; text-align: right; }
@media (max-width: 1120px) { .home-page .studio-proof__inner { width: calc(100% - 3rem); } }
@media (max-width: 960px) {
  .home-page .studio-proof__inner { width: calc(100% - 2rem); grid-template-columns: repeat(2, 1fr); }
  .home-page .studio-proof__inner > p { grid-column: 1 / -1; min-height: 4rem; border-bottom: 1px solid var(--studio-rule); }
  .home-page .studio-proof__inner > a:nth-last-child(-n+2) { display: none; }
  .home-page .studio-proof__inner > a:nth-of-type(odd) { border-inline-start: 0; }
}
@media (max-width: 520px) {
  .home-page .studio-proof__inner { width: calc(100% - 1.5rem); min-height: 4.8rem; }
  .home-page .studio-proof__inner > a { padding: .7rem .55rem; }
}

/* Keep legacy homepage sections legible and direction-correct in every locale. */
.home-page #portfolio .stitle,
.home-page #how .stitle,
.home-page #testimonials .stitle { color: #11121a; }
.home-page #portfolio .ssub,
.home-page #how .text-center > p { color: #565b6c !important; }
.home-page #how .gc p,
.home-page #portfolio .gc p { color: #b9bbca !important; }
html[dir="ltr"] .home-page .contact-form-panel input,
html[dir="ltr"] .home-page .contact-form-panel textarea { direction: ltr; text-align: left; }
