/* Product-specific environments, behind every page and its readable surface.
   Still images + compositor-only drift; no additional video decoders. */
:root { --neutral-500: #aaaab8; }
body { isolation: isolate; }
.site-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #10141d;
  contain: strict;
}
.atmosphere__scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  background: var(--scene-base);
  transition: opacity 900ms ease;
}
.atmosphere__scene.is-visible { opacity: 1; }
.atmosphere__art {
  position: absolute;
  inset: -32px;
  transform: translate3d(0, var(--atmosphere-drift, 0px), 0);
}
.atmosphere__image {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
  filter: saturate(.72) brightness(.82);
}
.atmosphere__image--secondary { opacity: .28; }
.atmosphere__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(10 13 22 / .9), rgb(10 13 22 / .82) 38%, rgb(10 13 22 / .5) 80%, rgb(10 13 22 / .4)),
    linear-gradient(180deg, rgb(10 13 22 / .5), transparent 40%, rgb(10 13 22 / .62));
}
.site-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.6' filter='url(%23n)'/%3E%3C/svg%3E");
}
.atmosphere__drawing { position: absolute; inset: 0; opacity: .5; }
.atmosphere__drawing svg { width: 100%; height: 100%; object-fit: cover; }

/* Home: a studio contact sheet, with room for the introduction on the left. */
.atmosphere__scene--home .atmosphere__image--primary {
  width: 85%; height: 80%; right: -17%; top: 3%;
  transform: rotate(-9deg); border: 1px solid #b9d7e633;
}
.atmosphere__scene--home .atmosphere__image--secondary {
  width: 60%; height: 50%; right: 4%; bottom: -15%;
  transform: rotate(8deg); border: 1px solid #b9d7e633;
}

/* Eva: its artwork (the two hands) full-bleed and dimmed, with a finished
   frame from the work in the margin. */
.atmosphere__scene--eva-composite .atmosphere__image--primary {
  object-position: 50% 52%;
  opacity: .5;
  filter: saturate(.55) brightness(.7) sepia(.15);
}
.atmosphere__scene--eva-composite .atmosphere__image--secondary {
  width: 33%; height: 30%; right: -3%; bottom: -8%;
  transform: rotate(-9deg); border: 8px solid #050c12;
}
.atmosphere__scene--eva-composite .atmosphere__veil {
  background: linear-gradient(90deg, #0a111ce8, #0a111cc9 45%, #0a111c60), linear-gradient(180deg, #0a111c99, transparent 45%, #0a111cb8);
}

/* T-Note: the real reference board becomes the world around the workspace. */
.atmosphere__scene--tnote .atmosphere__image--primary {
  width: 115%; height: 115%; left: -5%; top: -9%;
  object-position: center 55%; transform: rotate(-7deg) scale(1.04);
  opacity: .68;
}
.atmosphere__scene--tnote .atmosphere__image--secondary {
  width: 41%; height: 47%; right: -12%; bottom: -15%;
  transform: rotate(9deg); border: 1px solid #c0c9ff66;
}
.atmosphere__scene--tnote .atmosphere__veil {
  background: linear-gradient(90deg, #0d101de8, #0d101dd1 42%, #0d101d88 82%, #0d101d77), linear-gradient(180deg, #0d101d77, transparent 45%, #0d101d99);
}

/* Dottie: acoustic space and a loose harmonic field. */
.atmosphere__scene--audio-engine .atmosphere__image--primary { object-position: 65% center; opacity: .56; }
.atmosphere__scene--audio-engine .atmosphere__drawing { color: #eab5bb; opacity: .19; transform: rotate(-13deg) scale(1.2); }
.atmosphere__scene--audio-engine .atmosphere__veil {
  background: linear-gradient(90deg, #1a1019f2, #1a1019d9 45%, #1a10199c), linear-gradient(180deg, #1a101980, transparent 40%, #1a101999);
}

/* Abstract patterns for products without supplied screen imagery. */
.atmosphere__scene--studio-pipe .atmosphere__drawing { color: #68cdc1; transform: rotate(-7deg) scale(1.2); opacity: .67; }
.atmosphere__scene--studio-pipe .atmosphere__veil { background: linear-gradient(90deg, #0c181aee 12%, #0c181ac9 40%, #0c181a55), linear-gradient(180deg, #0c181a66, transparent 40%, #0c181a99); }
.atmosphere__scene--roma .atmosphere__drawing { color: #96b1eb; transform: rotate(-8deg) scale(1.12); opacity: .65; }
.atmosphere__scene--roma .atmosphere__veil { background: linear-gradient(90deg, #101723ee 12%, #101723d4 45%, #10172355), linear-gradient(180deg, #10172366, transparent 45%, #101723bb); }
.atmosphere__scene--invoice-kit .atmosphere__drawing { opacity: .25; transform: scale(1.15); }
.atmosphere__scene--invoice-kit .atmosphere__veil { background: linear-gradient(90deg, #1b1511f5 12%, #1b1511d9 40%, #1b151166), linear-gradient(180deg, #1b151166, transparent 40%, #1b1511aa); }
.atmosphere__scene--studio-pipe .atmosphere__image,
.atmosphere__scene--roma .atmosphere__image,
.atmosphere__scene--invoice-kit .atmosphere__image {
  width: 60%; height: 78%; top: 15%; right: -6%;
  object-fit: contain; transform: rotate(-8deg); opacity: .35;
}

/* The backdrop carries the atmosphere, so the old fixed grid can retire. */
.landing-intro::after { display: none; }
.landing-intro__ambient { opacity: .35; }
.landing-map { background: rgb(14 18 29 / .36); }
.p-hero__name, .p-hero__tagline, .p-problem h2, .p-breakdown h2 { text-shadow: 0 3px 26px #05081155; }
.masthead { background: color-mix(in srgb, var(--ground) 92%, transparent); }
.rail-wrap { background: color-mix(in srgb, var(--ground) 95%, transparent); }

@media (max-width: 720px) {
  .atmosphere__art { inset: 0; transform: none; }
  .atmosphere__image--secondary { display: none; }
  .atmosphere__scene--tnote .atmosphere__image--primary { width: 160%; left: -45%; object-position: 60% center; }
  .atmosphere__drawing { min-width: 850px; left: -380px; }
  .atmosphere__veil { background: linear-gradient(90deg, #0a0d16c9, #0a0d16b8), linear-gradient(180deg, #0a0d1666, transparent 45%, #0a0d1699); }
  .atmosphere__scene--tnote .atmosphere__veil { background: linear-gradient(90deg, #0d101dd9, #0d101dad), linear-gradient(180deg, #0d101d66, transparent 45%, #0d101d99); }
}
@media (prefers-reduced-motion: reduce) {
  .atmosphere__scene { transition: none; }
  .atmosphere__art { transform: none; }
}
