/* Main Ataris homepage. Scoped under html.ataris-home so its tokens can
   never collide with the coming-soon page's, even if both stylesheets
   were ever loaded on the same document. */

html.ataris-home {
  /* Redesign v2 token values (IMPLEMENTATION.md section 3) - variable
     NAMES are unchanged on purpose (every selector below already keys
     off these), only the colour values move to the new system. */
  --ah-page-bg: #FAFBFF;
  --ah-surface: #FFFFFF;
  --ah-surface-alt: #F0F3FB;
  --ah-text: #17233C;
  --ah-text-secondary: #53617A;
  --ah-primary: #2455EB;
  --ah-primary-text: #FFFFFF;
  --ah-accent: #2455EB;
  --ah-border: #DCE3F0;
  --ah-focus: #2455EB;
  --ataris-mark: #2455EB;
  --ataris-word: #17233C;
  --ataris-logo-knockout: #FAFBFF;
  /* Relative to this CSS file's own URL (assets/css/), not the page's -
     CSS url() is never PHP-processed, unlike the template markup. */
  --ah-contact-bg-desktop: url('../img/editorial/contact-orbit-light-2048.webp');
  --ah-contact-bg-mobile: url('../img/editorial/contact-orbit-light-1024.webp');
  --ah-galaxy-glow: rgba(255, 214, 160, 0.30);
  --ah-galaxy-blend: normal;
  --ah-header-h: 80px;
  /* WP admin bar: fixed (and needs compensating for) only at >=783px,
     WP core's own breakpoint - below that it switches to position:
     absolute and scrolls away with the page, so it needs no offset
     there. See the >=783px override below. */
  --ah-admin-bar-h: 0px;
}
@media screen and (min-width: 783px) {
  body.admin-bar.ataris-home { --ah-admin-bar-h: 32px; }
}

html.ataris-home[data-theme="dark"] {
  --ah-page-bg: #080C16;
  --ah-surface: #0D1421;
  --ah-surface-alt: #101725;
  --ah-text: #F4F6FC;
  --ah-text-secondary: #BCC6D8;
  --ah-primary: #2455EB;
  --ah-primary-text: #FFFFFF;
  --ah-accent: #B8B6FF;
  --ah-border: #28354C;
  --ah-focus: #B8B6FF;
  --ataris-mark: #B8B6FF;
  --ataris-word: #F4F6FC;
  --ataris-logo-knockout: #080C16;
  --ah-contact-bg-desktop: url('../img/editorial/contact-orbit-dark-2048.webp');
  --ah-contact-bg-mobile: url('../img/editorial/contact-orbit-dark-1024.webp');
  --ah-galaxy-glow: rgba(255, 228, 188, 0.34);
  --ah-galaxy-blend: screen;
}

@media (prefers-color-scheme: dark) {
  html.ataris-home:not([data-theme]) {
    --ah-page-bg: #080C16;
    --ah-surface: #0D1421;
    --ah-surface-alt: #101725;
    --ah-text: #F4F6FC;
    --ah-text-secondary: #BCC6D8;
    --ah-accent: #B8B6FF;
    --ah-border: #28354C;
    --ah-focus: #B8B6FF;
    --ataris-mark: #B8B6FF;
    --ataris-word: #F4F6FC;
    --ah-contact-bg-desktop: url('../img/editorial/contact-orbit-dark-2048.webp');
    --ah-contact-bg-mobile: url('../img/editorial/contact-orbit-dark-1024.webp');
    --ah-galaxy-glow: rgba(255, 228, 188, 0.34);
    --ah-galaxy-blend: screen;
    --ataris-logo-knockout: #080C16;
  }
}

html.ataris-home { background: var(--ah-page-bg); }
body.ataris-home * { box-sizing: border-box; }

body.ataris-home {
  margin: 0;
  background: var(--ah-page-bg);
  color: var(--ah-text);
  /* --ah-font-body / --ah-font-heading are only set by site skins
     (skins.css); the default look keeps this exact stack. */
  font-family: var(--ah-font-body, "Inter", "Segoe UI", system-ui, -apple-system, sans-serif);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 600px) {
  body.ataris-home { font-size: 17px; line-height: 1.6; }
}
@media (min-width: 1024px) {
  body.ataris-home { font-size: 18px; line-height: 1.6; }
}

.ataris-home .ah-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ah-surface);
  color: var(--ah-text);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.ataris-home .ah-skip-link:focus { left: 0; }

/* +16px so the destination heading clears the sticky header with a
   little breathing room, not flush against it. Includes the WP admin
   bar's height when it's actually fixed (see --ah-admin-bar-h above) -
   both scrollIntoView() (homepage-galaxy.js) and the browser's own
   hash-navigation scrolling (homepage.js) respect scroll-margin-top.
   .ah-service-card keeps its own scroll-margin-top too, for the case of
   a browser jumping straight to a #service-* fragment on its own
   (typed/pasted URL) rather than through the star's JS, which scrolls
   .ah-service-card h3 itself - not the card - so its icon and top
   padding don't add extra distance above the heading. */
.ataris-home :is(section, header, footer, .ah-service-card),
.ataris-home .ah-service-card h3 {
  scroll-margin-top: calc(var(--ah-header-h) + var(--ah-admin-bar-h) + 16px);
}

.ataris-home h1, .ataris-home h2, .ataris-home h3 {
  font-family: var(--ah-font-heading, inherit);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
.ataris-home h2.ah-section-heading {
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.15;
  margin-bottom: 0.6em;
}
.ataris-home h3 { font-size: 21px; line-height: 1.25; }

.ataris-home a { color: inherit; }

.ataris-home :is(button, a):focus-visible {
  outline: 3px solid var(--ah-focus);
  outline-offset: 2px;
}

/* Shared container */
.ataris-home .ah-hero-inner,
.ataris-home .ah-header-inner,
.ataris-home .ah-services,
.ataris-home .ah-solutions,
.ataris-home .ah-examples,
.ataris-home .ah-process,
.ataris-home .ah-about,
.ataris-home .ah-contact-inner,
.ataris-home .ah-footer-inner,
.ataris-home .ah-audience {
  max-width: 1248px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 600px) {
  .ataris-home .ah-hero-inner, .ataris-home .ah-header-inner, .ataris-home .ah-services,
  .ataris-home .ah-solutions, .ataris-home .ah-examples, .ataris-home .ah-process, .ataris-home .ah-about,
  .ataris-home .ah-contact-inner, .ataris-home .ah-footer-inner, .ataris-home .ah-audience {
    padding-left: 32px; padding-right: 32px;
  }
}
@media (min-width: 1024px) {
  .ataris-home .ah-hero-inner, .ataris-home .ah-header-inner, .ataris-home .ah-services,
  .ataris-home .ah-solutions, .ataris-home .ah-examples, .ataris-home .ah-process, .ataris-home .ah-about,
  .ataris-home .ah-contact-inner, .ataris-home .ah-footer-inner, .ataris-home .ah-audience {
    padding-left: 48px; padding-right: 48px;
  }
}

/* ---------- Buttons ---------- */
.ataris-home .ah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.ataris-home .ah-btn-primary { background: var(--ah-primary); color: var(--ah-primary-text); }
.ataris-home .ah-btn-primary:hover { filter: brightness(1.08); }
.ataris-home .ah-btn-secondary { background: transparent; color: var(--ah-text); border-color: var(--ah-border); }
.ataris-home .ah-btn-secondary:hover { border-color: var(--ah-accent); }

/* ---------- Header ---------- */
.ataris-home .ah-header {
  position: sticky;
  /* Sticks below the WP admin bar instead of scrolling under it (the
     admin bar's z-index is far higher than the header's) when the bar
     is actually fixed - see --ah-admin-bar-h above. */
  top: var(--ah-admin-bar-h);
  z-index: 100;
  background: color-mix(in srgb, var(--ah-page-bg) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--ah-border);
}
.ataris-home .ah-header-inner {
  height: var(--ah-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 1023px) {
  html.ataris-home { --ah-header-h: 64px; }
}

.ataris-home .ah-brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ah-text);
  flex: none;
}

.ataris-home .ah-nav {
  display: none;
  gap: 24px;
  font-weight: 600;
  font-size: 0.95rem;
}
.ataris-home .ah-nav a { text-decoration: none; }
.ataris-home .ah-nav a:hover { color: var(--ah-accent); }
.ataris-home .ah-nav a[aria-current="page"] { color: var(--ah-accent); }

@media (min-width: 1100px) {
  .ataris-home .ah-nav { display: flex; }
}

.ataris-home .ah-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.ataris-home .ah-lang-switch {
  display: inline-flex;
  border: 1px solid var(--ah-border);
  border-radius: 999px;
  padding: 3px;
  background: var(--ah-surface);
}
.ataris-home .ah-lang-btn {
  text-decoration: none;
  color: var(--ah-text-secondary);
  border-radius: 999px;
  padding: 0.4em 0.8em;
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 34px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ataris-home .ah-lang-btn[aria-current="page"] { background: var(--ah-primary); color: var(--ah-primary-text); }

.ataris-home .ah-theme-btn {
  appearance: none;
  border: 1px solid var(--ah-border);
  background: var(--ah-surface);
  color: var(--ah-text);
  border-radius: 999px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.ataris-home .ah-theme-btn:hover { border-color: var(--ah-accent); }
.ataris-home .ah-icon-sun, .ataris-home .ah-icon-moon { width: 20px; height: 20px; }
.ataris-home .ah-icon-sun { display: none; }
.ataris-home .ah-icon-moon { display: block; }
html.ataris-home[data-theme="dark"] .ataris-home .ah-icon-moon { display: none; }
html.ataris-home[data-theme="dark"] .ataris-home .ah-icon-sun { display: block; }

.ataris-home .ah-cta-header { display: none; }
@media (min-width: 1100px) {
  .ataris-home .ah-cta-header {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 0 16px; border-radius: 999px;
    background: var(--ah-primary); color: var(--ah-primary-text);
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
  }
}

.ataris-home .ah-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--ah-border);
  background: var(--ah-surface);
  border-radius: 10px;
  color: var(--ah-text);
  cursor: pointer;
}
.ataris-home .ah-menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 1100px) { .ataris-home .ah-menu-btn { display: none; } }

.ataris-home .ah-drawer {
  border-top: 1px solid var(--ah-border);
  background: var(--ah-page-bg);
}
.ataris-home .ah-drawer[hidden] { display: none; }
.ataris-home .ah-drawer nav {
  display: flex; flex-direction: column;
  padding: 12px 20px 20px;
}
.ataris-home .ah-drawer a {
  padding: 12px 0;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--ah-border);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.ataris-home .screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ---------- Hero ---------- */
.ataris-home .ah-hero { padding: 48px 0 0; }
.ataris-home .ah-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}
@media (min-width: 1100px) {
  .ataris-home .ah-hero-inner {
    flex-direction: row;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 48px;
    gap: clamp(24px, 4vw, 40px);
  }
  .ataris-home .ah-hero-copy { flex: 0 0 48%; max-width: 48%; }
  .ataris-home .ah-hero-art { flex: 0 0 52%; max-width: 52%; }
}

.ataris-home .ah-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ah-accent);
  margin: 0 0 0.75em;
}

.ataris-home .ah-heading {
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.1;
  font-weight: 750;
  max-width: 600px;
  margin: 0 0 0.5em;
}
.ataris-home .ah-heading-accent { color: var(--ah-accent); display: block; }

.ataris-home .ah-hero-body {
  color: var(--ah-text-secondary);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 52ch;
  margin: 0 0 1.5em;
}

.ataris-home .ah-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ataris-home .ah-audience {
  text-align: center;
  color: var(--ah-text-secondary);
  font-size: 0.95rem;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--ah-border);
  margin-top: 0;
}

/* ---------- Hero galaxy stage + stars ---------- */
/* Column, not row: .ah-hero-art now holds both the stage and the
   pause/resume control stacked vertically (the control sits below/
   beside the stage, not next to it as a second row item). */
.ataris-home .ah-hero-art { display: flex; flex-direction: column; align-items: center; }
.ataris-home .hero-galaxy-stage {
  position: relative;
  width: 100%;
  max-width: 620px;
}
@media (max-width: 1099px) {
  .ataris-home .hero-galaxy-stage { max-width: 540px; }
}
@media (max-width: 767px) {
  .ataris-home .hero-galaxy-stage { max-width: 480px; }
}

/* The square image area is a separate element from the stage itself, so
   the stage (and star-layer, its sibling) can grow taller than the
   square on mobile without the images stretching to cover the stars -
   see the max-width:599px override below. */
.ataris-home .galaxy-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  /* The rotating/tilted rings' square boxes (transparent corners) stick
     out past this square and made the page scroll sideways. Clip only this
     decorative layer - the stars, labels and focus rings are siblings. */
  overflow: hidden;
}

/* Three stacked copies of the artwork, each rotated by homepage-galaxy.js
   (same rAF clock as the star orbit, so every pause source freezes all of
   them). Inner rings are masked to the centre so they blend into the ring
   beneath; the JS keeps their offset bounded, so arms never ghost. */
.ataris-home .galaxy-ring {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  will-change: transform;
}
.ataris-home .galaxy-ring[data-ring="mid"] {
  -webkit-mask-image: radial-gradient(circle closest-side at center, #000 50%, transparent 72%);
  mask-image: radial-gradient(circle closest-side at center, #000 50%, transparent 72%);
}
.ataris-home .galaxy-ring[data-ring="core"] {
  -webkit-mask-image: radial-gradient(circle closest-side at center, #000 22%, transparent 42%);
  mask-image: radial-gradient(circle closest-side at center, #000 22%, transparent 42%);
}

.ataris-home .galaxy-core-glow {
  position: absolute;
  left: 35%;
  top: 35%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--ah-galaxy-glow), transparent);
  mix-blend-mode: var(--ah-galaxy-blend);
  opacity: 0.7;
  pointer-events: none;
  will-change: opacity, transform;
}

/* Tilted (side-on) variant: enable with .is-tilted on .hero-galaxy-stage.
   This transform is the single source of truth - homepage-galaxy.js reads
   it back (computed matrix) and appends the in-plane spin, and uses the
   same matrix to project the sparkle canvas onto the disc. */
.ataris-home .hero-galaxy-stage.is-tilted .galaxy-ring {
  transform: perspective(1600px) rotate(-24deg) rotateX(52deg) scale(1.1);
}
/* Service stars ride on the disc (positioned by JS); --depth is the
   perspective scale of their point on the disc (near side larger). */
.ataris-home .hero-galaxy-stage.is-tilted .star-dot {
  scale: var(--depth, 1);
}
.ataris-home .hero-galaxy-stage.is-tilted .galaxy-core-glow {
  left: 29%;
  top: 38%;
  width: 42%;
  height: 24%;
  background: radial-gradient(closest-side, rgba(255, 238, 210, 0.6), var(--ah-galaxy-glow) 45%, transparent);
  transform: rotate(-24deg);
}

.ataris-home .galaxy-sparkle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: var(--ah-galaxy-blend);
}

.ataris-home .home-galaxy {
  position: absolute;
  inset: 0;
  display: none;
}
html.ataris-home:not([data-theme="dark"]) .ataris-home .home-galaxy[data-theme-img="light"] { display: block; }
html.ataris-home[data-theme="dark"] .ataris-home .home-galaxy[data-theme-img="dark"] { display: block; }

.ataris-home .home-galaxy img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* "circle" with no explicit size defaults to farthest-corner, which
     only fades the image's corners and leaves its straight edges fully
     opaque - the exact rectangular-boundary artifact this mask exists
     to remove. closest-side sizes the circle to the (square) box's own
     edge distance, so the fade reaches all four sides symmetrically. */
  -webkit-mask-image: radial-gradient(circle closest-side at center, #000 82%, transparent 100%);
  mask-image: radial-gradient(circle closest-side at center, #000 82%, transparent 100%);
}

.ataris-home .star-layer {
  position: absolute;
  inset: 0;
}

.ataris-home .star {
  /* homepage-galaxy.js orbits stars (>=600px) by appending a second
     translate() to this same property - never a separate element or a
     rotate(), so labels stay upright and the hit area always tracks the
     visible position. Below 600px, or if JS never runs, this base
     translate is all that applies (the original static composition). */
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ah-text);
  padding: 8px;
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

/* Bounded activation flare: a soft radial burst centered on the dot,
   invisible until .is-flaring is toggled on click. A separate element
   (not a change to .star-dot's own box-shadow) so it can't interfere
   with the hover/focus glow or the focus outline, which live on their
   own elements independently. pointer-events:none keeps it from ever
   affecting the hit area. */
.ataris-home .star-flare {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  margin-top: -19px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.9) 0%, rgb(var(--c) / 0.6) 30%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}
.ataris-home .star.is-flaring .star-flare {
  animation: ah-star-flare 220ms ease-out;
}
@keyframes ah-star-flare {
  0% { opacity: 0; transform: scale(0.5); }
  35% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
@media (prefers-reduced-motion: reduce) {
  /* Belt-and-braces: JS already skips adding .is-flaring under reduced
     motion, this just guarantees no animation plays even if it did. */
  .ataris-home .star.is-flaring .star-flare { animation: none; opacity: 0; }
}

/* Each service star has its own stellar colour (RGB triplet): --cl is the
   luminous tint used on the dark sky, --cd a deeper version that still
   reads on the pale light-theme background. --tw (0-1) is the twinkle
   level written per frame by homepage-galaxy.js; defaults to 1 without JS. */
.ataris-home .star { --cl: 170 196 255; --cd: 36 85 235; --c: var(--cd); --tw: 1; }
.ataris-home .star[data-star="web"] { --cl: 150 186 255; --cd: 32 84 232; }
.ataris-home .star[data-star="it"] { --cl: 255 224 160; --cd: 190 124 18; }
.ataris-home .star[data-star="ai"] { --cl: 200 178 255; --cd: 112 76 228; }
.ataris-home .star[data-star="automation"] { --cl: 255 164 104; --cd: 212 92 28; }
html.ataris-home[data-theme="dark"] .ataris-home .star { --c: var(--cl); }

/* White-hot core, coloured corona, and a four-point diffraction cross
   (::before/::after) whose brightness and length follow the twinkle. */
.ataris-home .star-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0 38%, rgb(var(--c)) 75%, rgb(var(--c) / 0.6) 100%);
  box-shadow:
    0 0 3px 1px rgb(255 255 255 / 0.85),
    0 0 8px 2px rgb(var(--c) / 0.9),
    0 0 18px 6px rgb(var(--c) / calc(0.3 + 0.25 * var(--tw))),
    0 0 36px 14px rgb(var(--c) / calc(0.08 + 0.1 * var(--tw)));
}
.ataris-home .star-dot::before,
.ataris-home .star-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 1.5px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--c) / 0.75) 40%, #FFFFFF 50%, rgb(var(--c) / 0.75) 60%, transparent);
  opacity: calc(0.4 + 0.6 * var(--tw));
  transform: translate(-50%, -50%) scaleX(calc(0.7 + 0.3 * var(--tw)));
  pointer-events: none;
}
.ataris-home .star-dot::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(calc(0.7 + 0.3 * var(--tw)));
}

.ataris-home .star-label {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  background: color-mix(in srgb, var(--ah-surface) 88%, transparent);
  border: 1px solid var(--ah-border);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Full label visible by default (desktop, tablet, and the mobile
   star-overlay layout); short label only appears in the narrow
   compact-grid fallback below 376px - see that breakpoint below. */
.ataris-home .star-label-short { display: none; }

.ataris-home .star:hover .star-dot,
.ataris-home .star:focus-visible .star-dot {
  transform: scale(1.3);
  box-shadow:
    0 0 4px 2px rgb(255 255 255 / 0.95),
    0 0 10px 3px rgb(var(--c) / 1),
    0 0 24px 9px rgb(var(--c) / 0.6),
    0 0 44px 18px rgb(var(--c) / 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  .ataris-home .star-dot { transition: transform 180ms ease, box-shadow 180ms ease; }
}

/* Below ~1100px the stage itself is smaller (540px, then 480px) - shrink
   the label so full names keep clearing each other at those sizes too. */
@media (max-width: 1099px) {
  .ataris-home .star-label { font-size: 0.72rem; padding: 3px 8px; }
}

/* Mobile star-overlay layout (376-767px): stars stay positioned around
   the galaxy inside its own stage, same mechanism as desktop, just with
   a smaller label to fit the smaller stage. */
@media (max-width: 767px) {
  .ataris-home .star-label { font-size: 0.68rem; padding: 2px 7px; }
  .ataris-home .star-dot { width: 7px; height: 7px; }
}

/* Compact static grid fallback: only below 376px. Verified at 360px by
   temporarily forcing the overlay layout - the four labels don't collide
   with each other, but the widest pill ("Optimizacija in avtomatizacija" /
   "Automation") sits far enough round the shrunk ~320px stage that it
   runs off the right edge of the viewport by ~40px, which would clip
   the label or force horizontal scroll. Kept as the documented exception
   the design review allowed, not the default. */
@media (max-width: 375px) {
  .ataris-home .hero-galaxy-stage { max-width: 100%; }
  .ataris-home .star-layer {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 16px;
  }
  .ataris-home .star {
    position: static;
    transform: none;
    flex-direction: row;
    background: var(--ah-surface);
    border: 1px solid var(--ah-border);
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 44px;
  }
  .ataris-home .star-label { background: transparent; border: none; padding: 0; font-size: 0.85rem; }
  .ataris-home .star-label-full { display: none; }
  .ataris-home .star-label-short { display: inline; }
  /* .star is position:static here, so the flare's position:absolute
     would anchor to the stage instead of the star - just skip it at
     this compact, no-frills breakpoint rather than position it wrong. */
  .ataris-home .star-flare { display: none; }
}

/* ---------- Galaxy pause/resume control ----------
   Redesign v2: moved from a separate row beneath the galaxy into a
   quiet corner INSIDE the stage itself (bottom-right, clear of every
   star label at every tested width/phase - the stage's own padding-box
   keeps it inset from the circular artwork's edge). */
.ataris-home .ah-galaxy-pause {
  position: absolute;
  right: 2%;
  bottom: 2%;
  z-index: 2;
  appearance: none;
  border: 1px solid var(--ah-border);
  background: color-mix(in srgb, var(--ah-surface) 88%, transparent);
  backdrop-filter: blur(4px);
  color: var(--ah-text-secondary);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
/* The [hidden] attribute is how JS hides this control entirely under
   reduced motion (there's nothing to pause) - needs its own rule since
   `display: inline-flex` above outranks the UA stylesheet's own
   [hidden] { display: none }. */
.ataris-home .ah-galaxy-pause[hidden] { display: none; }
.ataris-home .ah-galaxy-pause:hover { border-color: var(--ah-accent); color: var(--ah-text); }
.ataris-home .ah-galaxy-pause svg { width: 16px; height: 16px; }
.ataris-home .ah-icon-play { display: none; }
.ataris-home .ah-galaxy-pause.is-paused .ah-icon-pause { display: none; }
.ataris-home .ah-galaxy-pause.is-paused .ah-icon-play { display: block; }

/* ---------- Services ---------- */
.ataris-home .ah-services { padding-top: 48px; padding-bottom: 48px; text-align: left; }
@media (min-width: 1024px) { .ataris-home .ah-services { padding-top: 80px; padding-bottom: 80px; } }
.ataris-home .ah-section-head { max-width: 720px; }
.ataris-home .ah-section-head .ah-section-intro { margin: 0; }

.ataris-home .ah-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: left;
  margin-top: 32px;
}
@media (min-width: 600px) { .ataris-home .ah-service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ataris-home .ah-service-grid { grid-template-columns: repeat(4, 1fr); } }

.ataris-home .ah-service-card {
  border: 1px solid var(--ah-border);
  border-radius: 12px;
  padding: 20px;
  background: var(--ah-surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 600px) { .ataris-home .ah-service-card { padding: 24px; } }

.ataris-home .ah-service-icon { width: 28px; height: 28px; color: var(--ah-accent); }
.ataris-home .ah-service-card p { color: var(--ah-text-secondary); margin: 0; flex: 1; }
/* Single link per card (redesign v2 removes the second "Discuss a
   project" action) - align-self keeps it pinned to the card's own
   bottom edge via the card's flex column, without a fixed text height. */
.ataris-home .ah-card-link {
  align-self: flex-start;
  font-weight: 600;
  color: var(--ah-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Solutions ---------- */
.ataris-home .ah-solutions {
  padding-top: 48px;
  padding-bottom: 48px;
  background: var(--ah-surface-alt);
  text-align: center;
}
@media (min-width: 1024px) { .ataris-home .ah-solutions { padding-top: 80px; padding-bottom: 80px; } }
.ataris-home .ah-section-intro { color: var(--ah-text-secondary); max-width: 60ch; margin: 0 auto 32px; }
.ataris-home .ah-solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: left;
}
@media (min-width: 900px) { .ataris-home .ah-solution-grid { grid-template-columns: repeat(3, 1fr); } }
.ataris-home .ah-solution-card {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 12px;
  padding: 20px;
}
.ataris-home .ah-solution-card p { color: var(--ah-text-secondary); margin: 0.5em 0 0; }

/* ---------- Examples (illustrative only) ---------- */
.ataris-home .ah-examples { padding-top: 48px; padding-bottom: 48px; text-align: center; }
@media (min-width: 1024px) { .ataris-home .ah-examples { padding-top: 80px; padding-bottom: 80px; } }
.ataris-home .ah-example-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: left;
}
@media (min-width: 900px) { .ataris-home .ah-example-grid { grid-template-columns: repeat(3, 1fr); } }
.ataris-home .ah-example-card {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 12px;
  padding: 20px;
}
.ataris-home .ah-example-card p { color: var(--ah-text-secondary); margin: 0.5em 0 0; }
/* Owner-supplied raster illustration (ataris-image-pack) - reserves
   the full source ratio (3:2) so there's no layout shift, shows the
   complete composition (object-fit:contain, never cropped/stretched),
   corners match the card's own radius. */
.ataris-home .ah-example-media {
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ah-surface-alt);
}
.ataris-home .ah-example-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
/* Repeats the "illustrative example" disclaimer on every card, not just
   the section intro - so it still reads correctly if a card is seen out
   of context (e.g. shared as a link preview, or scrolled to directly). */
.ataris-home .ah-example-badge,
.ataris-home .ah-il-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ah-text-secondary);
  background: var(--ah-surface-alt);
  border: 1px solid var(--ah-border);
  /* A smaller radius (not a full pill) reads correctly whether the
     longer "Illustrative example" text sits on one line or wraps to
     two on a narrow card - a stretched pill around two lines looks
     broken, a rounded rectangle doesn't. */
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 10px;
  max-width: 100%;
  white-space: normal;
}

/* ---------- Process / company introduction (combined) ---------- */
.ataris-home .ah-process { padding-top: 48px; padding-bottom: 48px; text-align: left; background: var(--ah-surface-alt); }
@media (min-width: 1024px) { .ataris-home .ah-process { padding-top: 80px; padding-bottom: 80px; } }
.ataris-home .ah-process-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .ataris-home .ah-process-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
  }
  .ataris-home .ah-process-intro {
    border-right: 1px solid var(--ah-border);
    padding-right: 40px;
  }
}
.ataris-home .ah-process-intro p { color: var(--ah-text-secondary); margin: 0.75em 0 0; }
.ataris-home .ah-about-more {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--ah-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ataris-home .ah-process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ataris-home .ah-process-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding-bottom: 32px;
}
.ataris-home .ah-process-step:last-child { padding-bottom: 0; }
/* Vertical connecting line between numbered steps - stops short of the
   last step's own number (no dangling line below it). */
.ataris-home .ah-process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--ah-border);
}
.ataris-home .ah-process-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ah-primary);
  color: var(--ah-primary-text);
  font-weight: 700;
  flex: none;
}
.ataris-home .ah-process-step-body { display: flex; flex-direction: column; gap: 10px; }
.ataris-home .ah-process-step-body p { color: var(--ah-text-secondary); margin: 0; }
.ataris-home .ah-process-outcome {
  grid-column: 2;
  justify-self: start;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ah-accent);
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- About (legacy standalone section CSS - kept for the
   #about compatibility anchor's rendering; no longer used as a
   dedicated section, see template-homepage.php) ---------- */
.ataris-home .ah-about { padding-top: 48px; padding-bottom: 48px; text-align: center; }
.ataris-home .ah-about-body {
  max-width: 65ch;
  margin: 0 auto;
  color: var(--ah-text-secondary);
  font-size: 1.05rem;
}

/* ---------- Contact ---------- */
.ataris-home .ah-contact { padding: 48px 0; }
@media (min-width: 1024px) { .ataris-home .ah-contact { padding: 80px 0; } }
.ataris-home .ah-contact-inner {
  position: relative;
  overflow: hidden;
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 900px) {
  .ataris-home .ah-contact-inner {
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 48px; min-height: 280px;
  }
}
.ataris-home .ah-contact-text,
.ataris-home .ah-contact-action { position: relative; z-index: 1; }
.ataris-home .ah-contact-text p { color: var(--ah-text-secondary); margin: 0.5em 0 0; }
.ataris-home .ah-contact-action { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ataris-home .ah-contact-email { color: var(--ah-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Contact-panel background artwork (ataris-image-pack) - decorative
   only, clipped by the panel's own overflow:hidden above, never
   intercepts pointer events. Desktop: covers the panel, artwork's own
   quiet left 55-60% sits behind the text column. Mobile: height-fit
   instead of stretched tall, pinned bottom-right, with a strong
   theme-coloured overlay (::after) so the orbit stays subtle and text
   stays readable - the same visual role the old plain SVG arc had, at
   real photographic weight this time. Two file sizes (1024/2048) per
   theme, swapped the same way as everywhere else in this theme: the
   explicit data-theme attribute wins over system preference. */
.ataris-home .ah-contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image: var(--ah-contact-bg-desktop);
  background-size: cover;
  background-position: center right;
}
@media (max-width: 767px) {
  .ataris-home .ah-contact-bg {
    background-image: var(--ah-contact-bg-mobile);
    background-size: auto 100%;
    background-position: right bottom;
  }
  .ataris-home .ah-contact-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--ah-surface) 90%, transparent);
  }
}

/* ---------- Footer ---------- */
.ataris-home .ah-footer { border-top: 1px solid var(--ah-border); padding: 32px 0; }
.ataris-home .ah-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--ah-text-secondary);
  font-size: 0.9rem;
}
.ataris-home .ah-footer-brand { font-weight: 700; color: var(--ah-text); }
.ataris-home .ah-footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
.ataris-home .ah-footer-inner nav a { text-decoration: none; }
.ataris-home .ah-footer-inner nav a:hover { color: var(--ah-accent); }

/* ---------- Sub-pages (service/about/contact) ---------- */
.ataris-home .ah-subpage-hero { padding: 48px 0 24px; text-align: center; }
@media (min-width: 1024px) { .ataris-home .ah-subpage-hero { padding: 72px 0 32px; } }
.ataris-home .ah-subpage-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 600px) { .ataris-home .ah-subpage-hero-inner { padding: 0 32px; } }
.ataris-home .ah-subpage-hero-inner h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.15;
  font-weight: 750;
  margin: 0.4em 0 0.3em;
}
.ataris-home .ah-subpage-lead { color: var(--ah-text-secondary); font-size: 1.1rem; max-width: 56ch; margin: 0 auto; }
.ataris-home .ah-subpage-back {
  /* display:flex (not inline-flex) so this takes its own row - an
     inline-level box doesn't force a line break before the next
     sibling (the icon), which is what put them side by side. */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ah-text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}
.ataris-home .ah-subpage-back:hover { color: var(--ah-accent); }
.ataris-home .ah-subpage-icon {
  /* display:block so margin:auto actually centers it (auto margins do
     nothing on inline elements) and so it starts its own row after
     the back link, same reasoning as above. */
  display: block;
  width: 40px;
  height: 40px;
  color: var(--ah-primary);
  margin: 12px auto 0;
}

.ataris-home .ah-subpage-section { padding: 24px 0 48px; }
.ataris-home .ah-subpage-section-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 600px) { .ataris-home .ah-subpage-section-inner { padding: 0 32px; } }
.ataris-home .ah-subpage-prose p { color: var(--ah-text-secondary); font-size: 1.05rem; }
.ataris-home .ah-subpage-includes h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  margin: 0 0 20px;
}

.ataris-home .ah-service-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ataris-home .ah-service-points li {
  position: relative;
  padding-left: 28px;
  color: var(--ah-text-secondary);
}
.ataris-home .ah-service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ah-primary);
}

.ataris-home .ah-subpage-cta { padding: 0 0 64px; text-align: center; }
.ataris-home .ah-subpage-cta-inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 600px) { .ataris-home .ah-subpage-cta-inner { padding: 0 32px; } }
.ataris-home .ah-subpage-cta-inner p { color: var(--ah-text-secondary); margin-bottom: 20px; }
.ataris-home .ah-subpage-cta .ah-hero-ctas { justify-content: center; }

/* ---------- Contact form ---------- */
.ataris-home .ah-contact-form-layout {
  max-width: 640px;
  margin: 0 auto;
}
.ataris-home .ah-contact-form {
  display: flex;
  flex-direction: column;
  /* ~24px between field groups, per the correction pass - the row's
     own 6px gap (label/input/error) is internal to each row, not
     between rows, so this is the number that actually sets the visible
     gap between one field group and the next. */
  gap: 24px;
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 12px;
  padding: 24px;
}
.ataris-home .ah-form-row { display: flex; flex-direction: column; gap: 6px; }
.ataris-home .ah-form-row-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 560px) { .ataris-home .ah-form-row-group { grid-template-columns: 1fr 1fr; } }
.ataris-home .ah-form-row label,
.ataris-home .ah-hp-field label { font-weight: 600; font-size: 0.92rem; }
.ataris-home .ah-form-row input,
.ataris-home .ah-form-row select,
.ataris-home .ah-form-row textarea {
  font: inherit;
  color: var(--ah-text);
  background: var(--ah-page-bg);
  border: 1px solid var(--ah-border);
  border-radius: 8px;
  padding: 0.65em 0.85em;
}
.ataris-home .ah-form-row input:focus-visible,
.ataris-home .ah-form-row select:focus-visible,
.ataris-home .ah-form-row textarea:focus-visible {
  outline: 3px solid var(--ah-focus);
  outline-offset: 1px;
}
.ataris-home .ah-form-row input[aria-invalid="true"],
.ataris-home .ah-form-row select[aria-invalid="true"],
.ataris-home .ah-form-row textarea[aria-invalid="true"] {
  border-color: #D64545;
}
.ataris-home .ah-form-err { color: #D64545; font-size: 0.85rem; min-height: 1.2em; }
/* Collapsed when there's no error text - the reserved height even
   when empty was stacking with the row/form gaps to make the space
   between field groups read as much larger than intended (measured at
   ~41px; 6px row gap + 18px form gap + a 24px+ empty min-height. Now
   6px + 18px = 24px, the "approximately 24px between field groups"
   target - only WHEN an error is shown does the row grow to fit it,
   which is expected and fine). */
.ataris-home .ah-form-err:empty { min-height: 0; }

.ataris-home .ah-form-next-step {
  font-size: 0.95rem;
  color: var(--ah-text-secondary);
  margin: 0;
}
.ataris-home .ah-form-required-note {
  font-size: 0.82rem;
  color: var(--ah-text-secondary);
  margin: 0;
}
.ataris-home .ah-form-row-required-mark { color: #D64545; }

/* Honeypot: off-screen, not display:none (some bots skip hidden
   fields entirely rather than actually checking computed visibility),
   never reachable by keyboard (tabindex="-1") or announced (aria-hidden
   on the wrapper). */
.ataris-home .ah-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ataris-home .ah-form-status:empty { display: none; }
.ataris-home .ah-form-status-msg {
  margin: 0 0 4px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}
.ataris-home .ah-form-status-msg.is-success { background: color-mix(in srgb, #2E9E5B 16%, transparent); color: #1E7A44; }
html.ataris-home[data-theme="dark"] .ataris-home .ah-form-status-msg.is-success { color: #6FE3A2; }
.ataris-home .ah-form-status-msg.is-error { background: color-mix(in srgb, #D64545 14%, transparent); color: #B3261E; }
html.ataris-home[data-theme="dark"] .ataris-home .ah-form-status-msg.is-error { color: #FF9A93; }
.ataris-home .ah-form-status-msg.is-unconfigured { background: color-mix(in srgb, #B8860B 16%, transparent); color: #8A6100; }
html.ataris-home[data-theme="dark"] .ataris-home .ah-form-status-msg.is-unconfigured { color: #E8C46A; }

.ataris-home .ah-form-dev-notice {
  font-size: 0.8rem;
  color: var(--ah-text-secondary);
  border-top: 1px dashed var(--ah-border);
  padding-top: 12px;
  margin: 0;
}

/* Mailto link shown right under the contact intro (item 1) - a plain
   inline link, not a panel, since the boxed .ah-contact-direct panel
   this used to only live in was removed as a duplicate. */
.ataris-home .ah-subpage-contact-email {
  margin: 4px 0 0;
}
.ataris-home .ah-subpage-contact-email a {
  color: var(--ah-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Public fallback (item 5): shown instead of the form when delivery
   isn't confirmed ready for a public visitor - see
   ataris_contact_show_interactive_form() in inc/contact-form.php. */
.ataris-home .ah-contact-fallback {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 12px;
  padding: 32px 24px;
}
.ataris-home .ah-contact-fallback p { color: var(--ah-text-secondary); margin: 0 0 16px; }

/* ================= Redesign v2 additions ================= */

/* ---------- Logo (concept 02/ORBIT) ---------- */
.ataris-home .ah-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: none;
}
/* Real approved artwork (cropped from the reference board), not a
   redrawn approximation - two images, same on/off toggle pattern as
   the homepage's own galaxy art (see html.ataris-home .home-galaxy). */
.ataris-home .ah-logo-img { height: 34px; width: auto; display: none; }
html.ataris-home:not([data-theme="dark"]) .ataris-home .ah-logo-img-light { display: block; }
html.ataris-home[data-theme="dark"] .ataris-home .ah-logo-img-dark { display: block; }
.ataris-home .ah-footer-brand.ah-logo .ah-logo-img { height: 26px; }
@media (max-width: 380px) {
  /* Keep the lockup from crowding SL/EN + theme + menu controls on the
     narrowest phones. */
  .ataris-home .ah-logo-img { height: 28px; }
}

/* ---------- Illustration primitives (section 7) ----------
   Shared 10px panel radii / subtle borders / matching icon strokes, one
   primitive style reused at two scales via [data-scale]. Purely
   decorative (aria-hidden in markup) - adjacent visible heading/body
   text always carries the actual information. */
.ataris-home .ah-illustration {
  position: relative;
  background: var(--ah-surface-alt);
  border: 1px solid var(--ah-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}
.ataris-home .ah-illustration[data-scale="hero"] { min-height: 260px; }
@media (min-width: 640px) { .ataris-home .ah-illustration[data-scale="hero"] { min-height: 320px; } }
.ataris-home .ah-illustration .ah-il-badge { align-self: flex-start; margin: auto 0 0; }
.ataris-home .ah-illustration svg { width: 16px; height: 16px; flex: none; color: var(--ah-accent); }

/* website */
.ataris-home .ah-il-browser { background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ataris-home .ah-il-browser-bar { display: flex; gap: 4px; }
.ataris-home .ah-il-browser-bar span { width: 6px; height: 6px; border-radius: 50%; background: var(--ah-border); }
.ataris-home .ah-il-browser-nav { display: flex; gap: 10px; font-size: 0.62rem; color: var(--ah-text-secondary); font-weight: 600; }
.ataris-home .ah-il-browser-heading { font-size: 0.85rem; font-weight: 700; margin: 0; color: var(--ah-text); }
.ataris-home .ah-il-browser-blocks { display: flex; gap: 6px; }
.ataris-home .ah-il-browser-blocks span { flex: 1; height: 20px; border-radius: 6px; background: var(--ah-surface-alt); border: 1px solid var(--ah-border); }
.ataris-home .ah-il-chip { align-self: flex-start; font-size: 0.62rem; font-weight: 700; border-radius: 999px; padding: 4px 10px; }
.ataris-home .ah-il-chip-primary { background: var(--ah-primary); color: var(--ah-primary-text); }
.ataris-home .ah-il-phone { display: none; }
@media (min-width: 460px) {
  .ataris-home .ah-il-phone {
    display: block;
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 34px;
    height: 58px;
    background: var(--ah-surface);
    border: 1px solid var(--ah-border);
    border-radius: 8px;
    box-shadow: -4px 0 10px -6px rgba(0,0,0,0.25);
  }
  .ataris-home .ah-il-phone span { display: block; height: 8px; margin: 8px 6px; border-radius: 4px; background: var(--ah-surface-alt); border: 1px solid var(--ah-border); }
}

/* quote workflow */
.ataris-home .ah-il-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ataris-home .ah-il-tile { background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 600; color: var(--ah-text); min-width: 84px; text-align: center; }
.ataris-home .ah-il-arrow { color: var(--ah-accent); font-weight: 700; }

/* document search */
.ataris-home .ah-il-docs { display: flex; gap: 8px; flex-wrap: wrap; }
.ataris-home .ah-il-file { background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; gap: 6px; font-size: 0.65rem; font-weight: 600; color: var(--ah-text); }
.ataris-home .ah-il-answer { background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ataris-home .ah-il-search { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; color: var(--ah-text); }
.ataris-home .ah-il-answer-text { margin: 0; font-size: 0.68rem; color: var(--ah-text-secondary); }
.ataris-home .ah-il-source { align-self: flex-start; font-size: 0.6rem; color: var(--ah-accent); background: var(--ah-surface-alt); border: 1px solid var(--ah-border); border-radius: 999px; padding: 2px 8px; }

/* IT connections */
.ataris-home .ah-il-network { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ataris-home .ah-il-node { background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.65rem; font-weight: 600; color: var(--ah-text); min-width: 72px; text-align: center; }
.ataris-home .ah-il-node-main { border-color: var(--ah-accent); }
.ataris-home .ah-il-node-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Service page: hero (two column) ---------- */
.ataris-home .ah-service-hero { padding: 32px 0 0; }
.ataris-home .ah-service-hero-inner { max-width: 1248px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 600px) { .ataris-home .ah-service-hero-inner { padding: 0 32px; } }
@media (min-width: 1024px) { .ataris-home .ah-service-hero-inner { padding: 0 48px; } }
.ataris-home .ah-subpage-back-row { justify-content: flex-start; margin-bottom: 24px; }
.ataris-home .ah-service-hero-grid { display: flex; flex-direction: column; gap: 32px; padding-bottom: 48px; }
@media (min-width: 1024px) {
  .ataris-home .ah-service-hero-grid { flex-direction: row; align-items: center; gap: 48px; padding-bottom: 72px; }
  .ataris-home .ah-service-hero-copy { flex: 0 0 48%; max-width: 48%; }
  .ataris-home .ah-service-hero-art { flex: 0 0 52%; max-width: 52%; }
}
.ataris-home .ah-service-hero-copy h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; font-weight: 750; margin: 0.3em 0 0.4em; }
.ataris-home .ah-service-hero-art .ah-subpage-icon { margin: 0 0 12px; }
/* Owner-supplied hero photo (ataris-service-images) - full composition
   visible (object-fit:contain, never cropped/stretched), reserves the
   3:2 source ratio so there's no layout shift, rounded to match the
   site's existing card corner radius. No device frame/extra panel
   wrapping the whole illustration - the image already frames itself. */
.ataris-home .ah-service-hero-media {
  border-radius: 14px;
  overflow: hidden;
  background: var(--ah-surface-alt);
}
.ataris-home .ah-service-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .ataris-home .ah-service-hero-media { max-width: 560px; }
}

/* ---------- Service page: shared section shells ---------- */
.ataris-home .ah-subpage-alt { padding: 48px 0; background: var(--ah-surface-alt); }
@media (min-width: 1024px) { .ataris-home .ah-subpage-alt { padding: 72px 0; } }
.ataris-home .ah-subpage-inner-wide { max-width: 1100px; }
.ataris-home .ah-subpage-alt .ah-section-heading,
.ataris-home .ah-subpage-section .ah-section-heading { text-align: left; }

.ataris-home .ah-problem-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
@media (min-width: 900px) { .ataris-home .ah-problem-grid { grid-template-columns: repeat(3, 1fr); } }
.ataris-home .ah-problem-card { background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: 12px; padding: 20px; }
.ataris-home .ah-problem-card p { color: var(--ah-text-secondary); margin: 0.5em 0 0; }

.ataris-home .ah-split { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .ataris-home .ah-split { grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr); gap: 48px; align-items: start; } }
.ataris-home .ah-split-text p { color: var(--ah-text-secondary); margin: 0.75em 0 0; }
.ataris-home .ah-deliverable-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ataris-home .ah-deliverable-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--ah-border);
}
.ataris-home .ah-deliverable-list li:first-child { border-top: none; padding-top: 0; }
.ataris-home .ah-deliverable-list svg { width: 24px; height: 24px; flex: none; color: var(--ah-accent); margin-top: 2px; }
.ataris-home .ah-deliverable-list h3 { font-size: 1.05rem; }
.ataris-home .ah-deliverable-list p { color: var(--ah-text-secondary); margin: 0.35em 0 0; }

.ataris-home .ah-demo-panel {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
}
@media (min-width: 1024px) { .ataris-home .ah-demo-panel { padding: 40px; } }
.ataris-home .ah-demo-panel .ah-illustration { margin-top: 20px; }
.ataris-home .ah-demo-columns { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
@media (min-width: 900px) { .ataris-home .ah-demo-columns { grid-template-columns: repeat(3, 1fr); } }
.ataris-home .ah-demo-column p { color: var(--ah-text-secondary); margin: 8px 0 0; font-size: 0.92rem; }
.ataris-home .ah-demo-column h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ah-text-secondary); margin-top: 10px; }

/* ---------- Opening animation (inc/intro.php + assets/js/intro.js) ----------
   The cover is inert unless the head script added html.ah-intro. Failsafe:
   if the intro scripts never run, the cover fades away after 4 s on its own. */
.ah-intro-cover { display: none; }
html.ah-intro .ah-intro-cover {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  background: var(--ah-page-bg);
  animation: ah-intro-failsafe 0.3s ease 4s forwards;
}
.ah-intro-cover svg { position: absolute; inset: 0; display: block; }
.ah-intro-mark { position: absolute; max-width: none; transform-origin: 0 0; pointer-events: none; will-change: transform, clip-path, opacity; opacity: 0; }
.ah-intro-spark { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; pointer-events: none; opacity: 0; }
@keyframes ah-intro-failsafe { to { opacity: 0; visibility: hidden; } }
