/* Dashboard transitions run through Digital Portal on both orientations. */
@view-transition { navigation: none; }
/* One CSS3D coordinate system. No opacity/filter on its ancestor chain: depth sorting is physical. */
@scope(body[data-academy=home]){
 :scope{margin:0;overflow:hidden;min-height:100dvh;background:#093b40;isolation:isolate}.atmosphere{display:none}
 .atelier-header{position:fixed;inset:0 0 auto;z-index:80;padding:18px 28px 30px;background:linear-gradient(#073f48ed,#164f5480 72%,transparent);border:0;box-shadow:none}.atelier-brand{font-size:15px;letter-spacing:.02em}.atelier-brand,.atelier-brand small,.header-name{color:#f4fff7}.atelier-brand img{width:60px;height:44px;object-fit:contain}.atelier-menu-trigger{background:#075e4dcc;color:#f1fff7;border-color:#80dac580}.header-right{gap:14px}.academy-settings summary{background:#075e4dcc;color:#effff7;border-color:#80dac580}
 .atelier-main{position:relative;z-index:3;max-width:none;width:100%;padding:0;margin:0;pointer-events:none}.atelier-document,.page-body,.academy-hub{height:100dvh}.atelier-page-head{display:none}.academy-hub{position:relative;pointer-events:none}
 .digital-stage{position:absolute;inset:0;pointer-events:auto;touch-action:none;outline:none;overflow:hidden}.digital-stage:not(.digital-ready){display:flex;align-items:flex-end;gap:20px;overflow-x:auto;padding:0 40px 140px;touch-action:pan-x}.digital-depth{position:absolute!important;inset:0;pointer-events:none}.digital-depth>div{pointer-events:none}.digital-depth *{box-sizing:border-box}.digital-stage.digital-ready .academy-route-card{position:absolute;width:290px;height:144px;margin:0}
 .academy-route-card{--card-accent:#16795f;flex:0 0 290px;display:grid;grid-template-columns:1fr 54px;grid-template-rows:1fr;gap:4px 12px;position:relative;width:290px;height:144px;padding:14px 20px;border:1px solid #a1efda9c;border-radius:22px;box-shadow:0 16px 32px #031d30a1,inset 0 1px #bbffed56;overflow:hidden;text-decoration:none;backface-visibility:hidden;cursor:pointer;touch-action:none}
 .academy-route-card[aria-current=true]{border-color:#aaffce;box-shadow:0 0 0 1px #91f3c880,0 10px 34px #07554b77,inset 0 1px #bfffe34d}.academy-route-card:focus-visible{outline:3px solid #defbc2;outline-offset:5px}.route-card-copy{grid-column:1;grid-row:1;align-self:center}.route-card-copy h2{font-size:26px;font-weight:760;line-height:1.08;letter-spacing:-.025em;margin:6px 0;color:inherit;overflow-wrap:normal}.route-card-visual{grid-column:2;grid-row:1;align-self:center;width:48px;height:48px;display:grid;place-items:center}.route-card-visual svg{width:38px;height:38px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.route-card-orbit{display:none}
 .digital-orb{width:490px;height:490px;pointer-events:auto}.digital-orb canvas{position:absolute;inset:0;width:100%!important;height:100%!important;display:block}.digital-orb-brand{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;color:#f2fff8;pointer-events:none;text-shadow:0 2px 8px #002e32,0 0 20px #003f42;transform:translateZ(2px)}.digital-orb-brand img{width:88px;height:66px;object-fit:contain}.digital-orb-brand strong{font-size:31px;line-height:1.08;letter-spacing:-.02em;font-weight:800}.digital-orb-brand>span{font-size:9px;line-height:1.7;font-weight:650;letter-spacing:.19em}.digital-orb-fallback{position:absolute;inset:18%;border:1px solid #a1ffe8;border-radius:50%;background:radial-gradient(circle at 35% 24%,#51c8a6,#075b60 55%,#032e3c);box-shadow:inset -20px -5px 40px #002c3c,0 0 24px #69e8c766}.digital-orb[data-globe-renderer=webgl] .digital-orb-fallback{display:none}.digital-orb-fallback i{position:absolute;inset:-10%;border:1px solid #a1f8df;border-radius:50%;transform:rotateX(65deg) rotateY(20deg)}.digital-orb-fallback i:nth-child(2){transform:rotateY(64deg) rotateZ(20deg)}.digital-orb-fallback i:nth-child(3){inset:15%;transform:rotateY(30deg)}
 .digital-platform{width:850px;height:850px;border-radius:50%;border:1px solid #b4ffe08a;background:radial-gradient(circle,transparent 45%,#43dcaf18 48%,#b7f7df28 49%,transparent 50%,transparent 64%,#7bedca33 65%,transparent 67%);pointer-events:none!important}.digital-platform:before,.digital-platform:after{content:'';position:absolute;inset:15%;border:2px solid #91f5d260;border-radius:50%;box-shadow:0 0 14px #4bffc146}.digital-platform:after{inset:4%;border-width:1px}.digital-platform i{position:absolute;inset:30%;border:1px dashed #a9f6dca6;border-radius:50%;animation:digital-platform-flow 70s linear infinite}.digital-platform b{position:absolute;inset:48%;background:#e6fff1;border-radius:50%;box-shadow:0 0 30px #62ffd6}
 
 .home-contacts{position:fixed;right:26px;bottom:28px;z-index:85;width:auto;max-width:calc(100vw - 32px);margin:0;pointer-events:auto}.academy-contacts{position:relative}.academy-contacts button{display:flex;align-items:center;gap:14px;min-height:46px;padding:12px 16px;border:1px solid #a0e9cf;border-radius:24px;background:#08674fe8;color:#effff5;font-size:12px;font-weight:700;box-shadow:0 0 20px #69edb533}
 .academy-scene{position:fixed;inset:0;z-index:0;overflow:hidden;background:#166775;pointer-events:none;--scene-x:0;--scene-y:0;--world-y:0px;--world-light:0}.digital-environment-set{position:absolute;inset:0;opacity:0;isolation:isolate}.digital-environment-set.is-ready{opacity:1}.digital-environment-set img{position:absolute;display:block;max-width:none;object-fit:cover;border-radius:0}.digital-env-art{width:110%;height:max(150dvh,145vw,calc(100dvh + 452px));left:-5%;top:50%;transform:translate3d(calc(var(--scene-x)*-8px),calc(-50% + var(--world-y)*1.05 + var(--scene-y)*-5px),0);mask-image:linear-gradient(transparent 43%,#000 55%)}.digital-env-far{inset:-10%;width:120%;height:120%;transform:translate3d(calc(var(--scene-x)*-3px),calc(var(--world-y)*.32 + var(--scene-y)*-2px),0)}.digital-env-front{width:116%;height:calc(100% + 176px);left:-8%;top:-88px;object-fit:fill!important;transform:translate3d(calc(var(--scene-x)*22px),calc(var(--world-y)*.46 + var(--scene-y)*12px),0)}.academy-scene-light{position:absolute;inset:0;z-index:6;background:radial-gradient(ellipse at 15% 18%,#fff1bc2e,transparent 60%);animation:digital-light 18s ease-in-out infinite alternate}.academy-scene-vignette{position:absolute;inset:0;z-index:8;background:linear-gradient(#063f4933,transparent 30% 70%,#07584b40)}.academy-scene-weather{position:absolute;inset:0;z-index:7;overflow:hidden}.academy-scene-weather i{position:absolute;top:-30px;left:var(--x);width:var(--size);height:calc(var(--size)*.7);opacity:.7;animation:digital-weather var(--duration) var(--delay) linear infinite;border-radius:80% 0;background:#d2a751}
 .digital-quality{display:block;width:100%;padding:14px 20px;border-radius:12px;color:#164737;background:#e2f2e9;border:1px solid #a6d3bf;text-align:left;margin-top:16px}
 @media(max-width:700px){.atelier-header{padding:12px 16px 24px;gap:10px}.atelier-brand{font-size:12px;gap:8px}.atelier-brand img{width:42px;height:34px}.atelier-brand small{font-size:8px}.header-right{gap:8px}.atelier-menu-trigger{font-size:0;padding:8px;min-width:42px}.atelier-menu-trigger span{font-size:18px;margin:0}.digital-stage.digital-ready .academy-route-card,.academy-route-card{width:238px;height:126px;padding:12px 16px;grid-template-columns:1fr 40px;grid-template-rows:1fr;border-radius:19px}.route-card-copy h2{font-size:22px}.route-card-visual{width:36px;height:36px}.route-card-visual svg{width:32px;height:32px}.digital-orb-brand{gap:10px}.digital-orb-brand img{width:64px;height:48px}.digital-orb-brand strong{font-size:23px}.digital-orb-brand>span{font-size:6.5px;letter-spacing:.13em}.digital-platform{width:540px;height:540px}.home-contacts{right:14px;bottom:22px}.academy-contacts button{font-size:10px;min-height:40px;padding:10px 12px;gap:8px}.digital-env-art{width:110%;height:128dvh;top:-14dvh;left:-5%;mask-image:none;transform:translate3d(0,calc(var(--world-y)*.25),0)}}
 @media(max-height:700px){.digital-orb-brand{gap:8px}.home-contacts{bottom:12px}}
 @media(prefers-reduced-motion:reduce){.academy-scene *,.digital-platform *{animation:none!important;transition:none!important}.academy-scene-weather{display:none}.digital-env-art,.digital-env-front,.digital-env-far{transform:none}.digital-env-art{top:50%;translate:0 -50%}}
}
body[data-academy=home] [data-scene-season=spring] .academy-scene-weather i{background:#f8d4e3;border-radius:65% 20%}body[data-academy=home] [data-scene-season=summer] .academy-scene-weather i{display:none}body[data-academy=home] [data-scene-season=winter] .academy-scene-weather i{background:#fff;border-radius:50%;height:var(--size)}body[data-academy=home] [data-scene-time=night] .digital-env-far{filter:brightness(.48) saturate(1.2)}body[data-academy=home] [data-scene-time=evening] .digital-env-far{filter:brightness(.7) sepia(.1)}body[data-academy=home] [data-scene-time=night] .digital-env-front{filter:brightness(.5)}body[data-academy=home] [data-scene-time=evening] .digital-env-front{filter:brightness(.7)}body[data-academy=home].academy-hidden .academy-scene *{animation-play-state:paused!important}
@keyframes digital-weather{0%{transform:translate3d(0,-20px,0) rotate(0)}50%{transform:translate3d(calc(var(--drift)*.4),52dvh,0) rotate(calc(var(--turn)*.5))}100%{transform:translate3d(var(--drift),108dvh,0) rotate(var(--turn))}}@keyframes digital-platform-flow{to{rotate:360deg}}@keyframes digital-light{to{opacity:.65}}

@scope(body[data-academy=home]){.academy-contacts button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}@media(max-width:700px){.academy-contacts button .contact-label{display:none}.academy-contacts button{width:44px;height:44px;padding:10px;justify-content:center;border-radius:50%}}}

@scope(body[data-academy=home]){.digital-env-far{inset:auto;left:-5%;top:50%;width:110%;height:max(150dvh,145vw,calc(100dvh + 452px));object-fit:cover;transform:translate3d(calc(var(--scene-x)*-3px),calc(-50% + var(--world-y)*.12 + var(--scene-y)*-2px),0)}@media(prefers-reduced-motion:reduce){.digital-env-far{transform:none;translate:0 -50%}}}

@scope(body[data-academy=home]){.digital-orb canvas{pointer-events:none}.digital-orb-hit{position:absolute;inset:17%;border-radius:50%;clip-path:circle(50%);pointer-events:auto}}

@scope(body[data-academy=home]){.digital-accessible-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@scope(body[data-academy=home]){
 .atelier-header{padding-top:calc(18px + env(safe-area-inset-top,0px));padding-left:max(28px,env(safe-area-inset-left,0px));padding-right:max(28px,env(safe-area-inset-right,0px))}.home-contacts{right:max(26px,env(safe-area-inset-right,0px));bottom:calc(28px + env(safe-area-inset-bottom,0px))}.academy-theme-panel{max-height:calc(70dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
 @media(max-width:700px){.atelier-header{padding-top:calc(12px + env(safe-area-inset-top,0px));padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}.home-contacts{right:max(14px,env(safe-area-inset-right,0px));bottom:calc(22px + env(safe-area-inset-bottom,0px))}}
 @media(max-height:700px){.home-contacts{bottom:calc(12px + env(safe-area-inset-bottom,0px))}}
}


/* The orbit controls depth and selection. The glass has the same finish at every depth. */
.academy-hub .digital-stage .academy-route-card {
 background: transparent;
 color: #f4fffc;
}
.academy-hub .digital-stage .academy-route-card::before {
 content: "";
 position: absolute;
 inset: 0;
 z-index: 0;
 border-radius: inherit;
 pointer-events: none;
 background:
  linear-gradient(115deg, #9ae5f22c, transparent 36%, #caffef17 68%, transparent),
  linear-gradient(95deg, rgb(7 26 42 / .90), rgb(9 35 50 / .77) 63%, rgb(11 48 62 / .53));
}
.academy-hub .digital-stage .academy-route-card > div {
 position: relative;
 z-index: 1;
}

.academy-hub .route-card-visual { color: #a8ffe5; }
.academy-mobile-hero { display: none; }

@media (max-width: 700px), (max-width: 1000px) and (pointer: coarse) {

 body.atelier-home {
  overflow: visible;
  min-height: 100svh;
  margin: 0;
  background: #0b424a;
 }
 body.atelier-home :is(.atelier-document, .page-body, .academy-hub) {
  height: auto;
  min-height: 0;
 }
 body.atelier-home .atelier-header {
  padding: calc(10px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 16px max(12px, env(safe-area-inset-left));
 }
 body.atelier-home .atelier-main {
  pointer-events: auto;
 }
 body.atelier-home .academy-hub {
  display: block;
  max-width: 650px;
  overflow-x: clip;
  margin-inline: auto;
  padding: calc(clamp(130px, 18.5svh, 178px) + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) calc(86px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
 }
 .academy-mobile-hero {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(190px, min(66vw, 34svh), 304px);
  transform: translateY(var(--mobile-globe-y, 0px));
  isolation: isolate;
  z-index: 2;
  pointer-events: none;
 }
 .academy-mobile-globe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(186px, min(64vw, 33svh), 284px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
 }
 .mobile-globe-sphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid #8ffff0ba;
  background: #075653;
  box-shadow: 0 0 26px #5fffdc75;
 }
 .mobile-globe-map {
  position: absolute;
  inset: 0 auto 0 0;
  width: 200%;
  background: url('/static/atelier/mobile-world151.svg') repeat-x left center / 50% 100%;
  animation: mobile-globe-revolve 16s linear infinite;
 }
 .mobile-globe-sphere::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 34% 25%, #a2fff044, transparent 44%, #052b3cbf 100%),
   radial-gradient(ellipse at 50% 53%, #063b41ae, #063b4100 72%);
  box-shadow: inset 0 0 22px #1bd8c975;
 }
 .mobile-globe-ring {
  rotate: var(--mobile-ring-tilt, 0deg);
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px solid #84ffe5b8;
  transform: rotate(-20deg) scaleY(.40);
  animation: mobile-ring-outer 12s ease-in-out infinite alternate;
 }
 .mobile-globe-ring--inner {
  inset: -6%;
  border-color: #c8ffbca8;
  transform: rotate(53deg) scaleY(.47);
  animation: mobile-ring-inner 9s ease-in-out infinite alternate;
 }
 .mobile-globe-ring::after {
  content: "";
  position: absolute;
  top: 14%;
  right: 13%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ddfff7;
  box-shadow: 0 0 6px #6effdc;
 }
 body.academy-hidden .academy-mobile-globe * { animation-play-state: paused; }
 .academy-mobile-globe canvas {
  display: none;
  position: absolute;
  width: 144% !important;
  height: 144% !important;
  inset: -22%;
 }
 .academy-mobile-globe[data-globe-renderer=webgl] canvas { display: block; }
 .academy-mobile-globe[data-globe-renderer=webgl] :is(.mobile-globe-sphere,.mobile-globe-ring) { display: none; }
 @media (prefers-reduced-motion: reduce) {
  .academy-mobile-globe * { animation: none; }
 }
 .academy-mobile-brand {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #f4fffa;
  text-align: center;
  text-shadow: 0 1px 8px #03292f, 0 0 13px #03292f;
 }
 .academy-mobile-brand img { width: 58px; height: 43px; object-fit: contain; }
 .academy-mobile-brand strong { font-size: 21px; line-height: 1.05; font-weight: 800; }
 .academy-mobile-brand span { font-size: 7px; line-height: 1.5; letter-spacing: .11em; font-weight: 700; }

 body.atelier-home .academy-hub .digital-stage {
  --mobile-card-width: clamp(154px, min(50vw, 36svh), 218px);
  --mobile-card-height: calc(var(--mobile-card-width) * .74);
  position: relative;
  display: block;
  width: 100%;
  height: clamp(258px, 37svh, 320px);
  min-height: 0;
  margin-top: -96px;
  padding: 0;
  overflow: visible;
  touch-action: pan-y pinch-zoom;
 }
 body.atelier-home .academy-hub .digital-stage .academy-route-card {
  position: absolute;
  top: 75px;
  left: calc((100% - var(--mobile-card-width)) / 2);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 42px auto;
  align-content: center;
  gap: 6px 10px;
  width: var(--mobile-card-width);
  height: var(--mobile-card-height);
  min-width: 0;
  margin: 0;
  padding: 12px 15px 0;
  touch-action: pan-y pinch-zoom;
  border-radius: 17px;
  box-shadow: 0 5px 14px #021b32a1, inset 0 1px #bbffed56;
  -webkit-tap-highlight-color: transparent;
 }
 body.atelier-home .academy-hub .digital-stage:not(.mobile-orbit-ready) .academy-route-card:not(:first-child),
 body.atelier-home .academy-hub .digital-stage .academy-route-card[hidden] { display: none; }
 body.atelier-home .academy-hub .route-card-visual { grid-column: 1; grid-row: 1; width: 40px; height: 40px; }
 body.atelier-home .academy-hub .route-card-visual svg { width: 36px; height: 36px; stroke: currentColor; }
 body.atelier-home .academy-hub .route-card-copy { grid-column: 1; grid-row: 2; }
 body.atelier-home .academy-hub .route-card-copy h2 {
  margin: 3px 0 0;
  font-size: clamp(17px, 5.2vw, 24px);
  line-height: 1.15;
  font-weight: 750;
 }
 body.atelier-home .academy-hub .academy-route-card:active { border-color: #3a7b65; }
 body.atelier-home .academy-hub .academy-route-card:focus-visible { outline: 3px solid #defbc2; outline-offset: 2px; }
 body.atelier-home .academy-hub .academy-route-card[aria-current=true] { border-color: #aaffce; }

 body.atelier-home .academy-scene {
  inset: 0 0 auto;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none;
 }
 body.atelier-home .academy-scene .digital-env-art {
  inset: -132px 0 auto;
  width: 100%;
  height: calc(100% + 264px);
  object-fit: cover;
  object-position: center;
  mask-image: none;
  transform: translate3d(0,calc(var(--world-y) * .82),0);
  translate: none;
  animation: none;
 }
 body.atelier-home .academy-scene .academy-scene-light { animation: none; }
 body.atelier-home .academy-scene .academy-scene-weather i {
  animation-name: mobile-home-weather;
  animation-timing-function: linear;
  background: #f2bf62;
  border-radius: 75% 10%;
  width: calc(var(--size) + 4px);
  height: calc(var(--size) + 1px);
 }
 body.atelier-home [data-scene-season=spring] .academy-scene-weather i { background: #ffd3e4; }
 body.atelier-home [data-scene-season=winter] .academy-scene-weather i {
  background: #f3feff;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
 }
 body.atelier-home [data-scene-season=summer] .academy-scene-weather { display: none; }

 body.atelier-home .academy-hub .academy-news-v21 {
  top: calc(67px + env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  width: auto;
  max-width: 626px;
  margin: 0 auto;
  padding: 0;
 }
 body.atelier-home .academy-hub .academy-news-v21 .news-header { min-height: 48px; padding: 8px 10px; }
 body.atelier-home .academy-hub .academy-news-v21 .news-header h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
 }
 body.atelier-home .academy-hub .academy-news-v21 .news-content:not([hidden]) {
  position: absolute;
  inset: calc(100% + 6px) 0 auto;
  max-width: 620px;
  margin-inline: auto;
  max-height: min(45dvh, calc(100dvh - 140px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--news-edge);
  touch-action: pan-y;
 }
 body.atelier-home .academy-hub .academy-news-v21 .news-content p { font-size: 13px; }
 body.atelier-home .academy-hub .news-pending .news-content:not([hidden]) { display: none; }
 body.atelier-home .atelier-menu::backdrop { backdrop-filter: none; }

 @media (max-height: 500px) and (orientation: landscape) {
  body.atelier-home .academy-hub { padding-top: calc(124px + env(safe-area-inset-top)); }
  .academy-mobile-hero { height: 144px; }
  .academy-mobile-globe { width: 144px; }
  body.atelier-home .academy-hub .digital-stage .academy-route-card { top: 72px; height: 126px; grid-template-rows: 36px auto; }
  .academy-mobile-brand img { width: 48px; height: 34px; }
  .academy-mobile-brand strong { font-size: 17px; }
 }
}
@keyframes mobile-home-weather {
 0% { transform: translate(0,-15px) rotate(0); opacity: 0; }
 12%, 85% { opacity: var(--depth); }
 50% { transform: translate(calc(var(--drift)*.25),52lvh) rotate(calc(var(--turn)*.5)); }
 100% { transform: translate(var(--drift),106lvh) rotate(var(--turn)); opacity: 0; }
}

@keyframes mobile-globe-revolve { to { transform: translateX(-50%); } }
@keyframes mobile-ring-outer { to { transform: rotate(-36deg) scaleY(.52); } }
@keyframes mobile-ring-inner { to { transform: rotate(67deg) scaleY(.33); } }

/* Illumination, airborne detail and the panorama share the camera phase. */
@scope (body[data-academy=home]) {
 .digital-environment-set {
  --sky-tint: #3f9ce626;
  --sun-tint: #fff3b954;
  --ground-tint: #f8d47139;
  --season-tint: #81d7b82b;
  --mist-strength: .22;
 }
 .academy-scene-light {
  background:
   radial-gradient(ellipse at 14% 12%, var(--sun-tint), transparent 55%),
   radial-gradient(ellipse at 73% 86%, var(--ground-tint), transparent 60%),
   linear-gradient(var(--sky-tint), transparent 70%);
  animation: none;
  opacity: calc(.76 + var(--world-light) * .24);
  transform: translate3d(0,calc(var(--world-y) * .11),0) scale(1.13);
 }
 .academy-scene-mist {
  position: absolute;
  inset: -5%;
  z-index: 5;
  background:
   radial-gradient(ellipse 29% 6% at 25% 29%, #e2f7ff6b, transparent),
   radial-gradient(ellipse 42% 9% at 77% 37%, #d0eced62, transparent),
   radial-gradient(ellipse 50% 15% at 50% 66%, var(--season-tint), transparent);
  opacity: var(--mist-strength);
  transform: translate3d(0,calc(var(--world-y) * .19),0);
  animation: academy-mist-drift 36s ease-in-out infinite alternate;
 }
 .academy-scene-weather {
  transform: translate3d(0,calc(var(--world-y) * .12),0);
  inset: -30px 0;
 }
 .academy-scene-weather i {
  animation-name: mobile-home-weather;
 }
 [data-scene-season=spring] { --season-tint: #f8c2d76b; --mist-strength: .48; }
 [data-scene-season=spring] .academy-scene-weather i:nth-child(even) { background: #fff6f2; }
 [data-scene-season=summer] {
  --season-tint: #a8ec9b50;
  --sun-tint: #fff5b76a;
  --ground-tint: #ffd46f53;
 }
 [data-scene-season=summer] .academy-scene-light {
  animation: academy-summer-reflection 18s ease-in-out infinite alternate;
 }
 [data-scene-season=autumn] { --season-tint: #ffb96574; --mist-strength: .35; }
 [data-scene-season=autumn] .academy-scene-weather i { background: #e9a03d; border-radius: 82% 14%; }
 [data-scene-season=autumn] .academy-scene-weather i:nth-child(3n) { background: #d66945; }
 [data-scene-season=winter] { --season-tint: #c7edffab; --mist-strength: .64; }
 [data-scene-season=winter] .academy-scene-weather i:nth-child(odd) { animation-timing-function: ease-in-out; }
 [data-scene-time=morning] {
  --sun-x: 34%;
  --sun-y: 15%;
  --sun-size: 17px;
  --mist-strength: .75;
 }
 [data-scene-time=day] {
  --sky-tint: #6cc8f828;
  --sun-tint: #f8fdde35;
  --ground-tint: #f8e6a323;
  --mist-strength: .12;
 }
 [data-scene-time=evening] {
  --sun-x: 61%;
  --sun-y: 16%;
  --sun-size: 22px;
  --mist-strength: .31;
 }
 [data-scene-time=night] {
  --sky-tint: #071a3d;
  --sun-tint: #739eef30;
  --ground-tint: #4cf2e73e;
  --mist-strength: .22;
 }
 :is([data-scene-time=morning], [data-scene-time=evening])::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at var(--sun-x) var(--sun-y),
   var(--sun-disc) 0 calc(var(--sun-size) * .44), var(--sun-edge) calc(var(--sun-size) * .5),
   var(--sun-halo) calc(var(--sun-size) * 1.2), transparent calc(var(--sun-size) * 6));
 }
 [data-scene-time=morning] {
  --sun-disc: #fff9da;
  --sun-edge: #fff0beef;
  --sun-halo: #ffdca581;
 }
 [data-scene-time=evening] {
  --sun-disc: #ffe7a5;
  --sun-edge: #ffb566f2;
  --sun-halo: #ff915e8a;
 }
 [data-scene-time=morning] .academy-scene-light {
  background:
   radial-gradient(ellipse at 26% 24%, #ffdfad80, transparent 62%),
   radial-gradient(ellipse at 33% 85%, #ffe2ae5c, transparent 54%),
   linear-gradient(#507da142, #ffe4bb49 37%, transparent 71%);
 }
 [data-scene-time=evening] .academy-scene-light {
  background:
   radial-gradient(ellipse at 71% 29%, #ff925d90, transparent 60%),
   radial-gradient(ellipse at 68% 80%, #ff9d575e, transparent 63%),
   linear-gradient(#33214eac, #a9495c6e 32%, #7c384d24 69%);
 }
 [data-scene-time=night] .academy-scene-light {
  background:
   radial-gradient(ellipse 49% 16% at 50% 81%, #57e3df37, transparent),
   radial-gradient(ellipse 32% 16% at 7% 62%, #3d7df33f, transparent),
   radial-gradient(ellipse 28% 17% at 92% 58%, #5989fa3d, transparent),
   linear-gradient(#050c28b8, #0c245768 38%, transparent 74%);
 }
 [data-scene-time=night] .academy-scene-vignette {
  background: linear-gradient(#0309204f, transparent 49%, #07193675);
 }
 .academy-stars {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 19%;
  z-index: 7;
  fill: #e1f3ff;
  pointer-events: none;
  mask-image: linear-gradient(transparent 9%, #000 43%, #000 67%, transparent);
 }
 .is-portrait .academy-stars { height: 43%; }
 .is-portrait[data-scene-time=morning] { --sun-x: 15%; --sun-y: 24%; --sun-size: 19px; }
 .is-portrait[data-scene-time=evening] { --sun-x: 84%; --sun-y: 28%; --sun-size: 23px; }
 :scope[data-daytime=night] .digital-platform {
  box-shadow: inset 0 0 24px #50f9d53d, 0 0 16px #6bdccb42;
 }
 :scope.academy-hidden .digital-platform * { animation-play-state: paused; }
 .digital-orb[data-globe-renderer=css-fallback] canvas { display: none; }
 @media (max-width:700px), (max-width:1000px) and (pointer:coarse) {
  .academy-scene-mist { animation-duration: 46s; }
  .academy-mobile-hero .mobile-globe-sphere {
   background: radial-gradient(circle at 37% 28%, #207b73, #073a47 68%, #041c32);
  }
  .academy-mobile-hero .mobile-globe-sphere::after {
   background:
    radial-gradient(circle at 29% 19%, #b0fff064, transparent 39%),
    radial-gradient(circle at 49% 48%, transparent 30%, #072239c0 84%);
   box-shadow: inset 0 0 15px #72ffdd99, inset -22px -19px 42px #021525aa;
  }
 }
 @media (prefers-reduced-motion: reduce) {
  .academy-scene .is-portrait .digital-env-art { translate: none; transform: none; }
 }
}
@keyframes academy-mist-drift { to { translate: 4% -1%; } }
@keyframes academy-summer-reflection { from { translate: -1% 0; } to { translate: 3% -1%; } }

@scope (body[data-academy=home]) {
 :is(.digital-platform, .mobile-globe-sphere, .digital-orb-fallback) {
  transition: box-shadow var(--academy-theme-duration, 0ms) ease-in-out;
 }
 :scope[data-daytime=night] :is(.mobile-globe-sphere, .digital-orb-fallback) {
  box-shadow: inset 0 0 26px #72ffdd82, 0 0 32px #5fffdca0;
 }
 @media (prefers-reduced-motion: reduce) {
  :is(.digital-platform, .mobile-globe-sphere, .digital-orb-fallback) { transition: none; }
 }
}

/* Sky, foliage and reflections remain separate from the panorama. */
@scope (body[data-academy=home]) {
 .digital-environment-set {
  --wind-angle: .75deg;
  --wind-period: 9s;
  --cloud-opacity: .64;
 }
 [data-scene-season=summer] { --wind-angle: .42deg; --wind-period: 13s; }
 [data-scene-season=autumn] { --wind-angle: 1.35deg; --wind-period: 6.5s; }
 [data-scene-season=winter] { --wind-angle: .54deg; --wind-period: 11s; }
 [data-scene-time=night] { --cloud-opacity: .27; }
 [data-scene-time=evening] { --cloud-opacity: .49; }

 .digital-environment-set .academy-cloud {
  z-index: 3;
  width: clamp(220px, 39vw, 670px);
  height: auto;
  aspect-ratio: 480 / 148;
  left: -6%;
  top: 14%;
  opacity: var(--cloud-opacity);
  transform: translate3d(0,calc(var(--world-y) * .14),0);
  animation: academy-cloud-near 67s ease-in-out -21s infinite alternate;
 }
 .digital-environment-set .academy-cloud--far {
  top: 23%;
  left: 45%;
  width: clamp(140px, 29vw, 480px);
  opacity: calc(var(--cloud-opacity) * .65);
  transform: translate3d(0,calc(var(--world-y) * .07),0);
  animation: academy-cloud-far 104s ease-in-out -24s infinite alternate;
 }
 .digital-environment-set .foliage-wing {
  z-index: 4;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover !important;
  transform: translate3d(calc(var(--scene-x) * 10px),calc(var(--world-y) * .045),0);
  animation: academy-branch-sway var(--wind-period) ease-in-out -2s infinite alternate;
 }
 .foliage-wing--left {
  clip-path: inset(0 50% 0 0);
  transform-origin: 0 1%;
  object-position: left center;
 }
 .foliage-wing--right {
  clip-path: inset(0 0 0 50%);
  transform-origin: 100% 1%;
  object-position: right center;
  --wind-side: -1;
  animation-delay: -4s;
 }
 @media (max-width:700px), (max-width:1000px) and (pointer:coarse) {
  .digital-environment-set .academy-cloud { top: 17%; width: 62vw; }
  .digital-environment-set .academy-cloud--far { top: 25%; width: 42vw; }
  .digital-environment-set .foliage-wing {
   top: max(36px, env(safe-area-inset-top));
   height: 44%;
   object-position: left top;
   clip-path: inset(0 50% 35% 0);
  }
  .digital-environment-set .foliage-wing--right {
   object-position: right top;
   clip-path: inset(0 0 35% 50%);
  }
 }
}
@keyframes academy-cloud-near { from { translate: -6vw 0; } to { translate: 19vw -1.2svh; } }
@keyframes academy-cloud-far { from { translate: 8vw 0; } to { translate: -9vw .8svh; } }
@keyframes academy-branch-sway { from { rotate: calc(var(--crown-wind) * var(--wind-side, 1) * -.65); } to { rotate: calc(var(--crown-wind) * var(--wind-side, 1)); } }

@scope (body[data-academy=home]) {
  .route-card-mark {
  position: absolute;
  top: 12px;
  left: 19px;
  width: 26px;
  height: 19px;
  object-fit: contain;
  opacity: .32;
  pointer-events: none;
 }
 @media (max-width:700px), (max-width:1000px) and (pointer:coarse) {
  .route-card-mark { left: auto; right: 13px; top: 12px; width: 22px; height: 16px; }
 }
 .route-card-copy { min-width: 0; }
 .route-card-copy h2 { overflow-wrap: anywhere; text-wrap: pretty; }
}

@scope (body[data-academy=home]) {
 .academy-water { position: absolute; display: block; z-index: 1; pointer-events: none; object-fit: cover; }
 .academy-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 12;
  opacity: var(--camera-gate, 0);
  background: repeating-linear-gradient(0deg, transparent 0 17px, #a1fff10b 18px, transparent 19px), radial-gradient(ellipse at 50% 52%, #1d6a72 0%, #0a3649 55%, #061e31 100%);
 }
 .digital-platform { opacity: calc(1 - var(--camera-gate, 0)); }
 @media (min-width:701px) {
  .is-landscape .foliage-wing--left { clip-path: inset(0 50% 67% 0); }
  .is-landscape .foliage-wing--right { clip-path: inset(0 0 67% 50%); }
 }
 .digital-environment-set .foliage-wing { --crown-wind: clamp(.9deg,var(--wind-angle) * 1.2,1.6deg); }
 @media (prefers-reduced-motion:reduce) {
  .academy-water { display: none; }
 }
}



@scope (body[data-academy=home]) {
 .atelier-header > .atelier-brand { flex: 0 0 auto; }
 .atelier-header .header-right { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
 :scope.portal-app.atelier.atelier-home .atelier-header .header-name {
  display: block;
  min-width: 0;
  max-width: min(46vw, 36ch);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
 }
 .atelier-header :is(.atelier-menu-trigger, .academy-settings) { flex: 0 0 auto; }

 [data-contact-panel] {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(365px, calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: min(65dvh, 490px, calc(100dvh - 145px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  overflow: hidden;
  border: 1px solid #7be8c5a6;
  border-radius: 21px;
  background: linear-gradient(145deg, #133e47fa, #082b34f5 64%, #0a3d3ff5);
  color: #ecfff7;
  box-shadow: 0 16px 44px #03282c70, inset 0 1px 0 #c2ffeb2e;
  font-family: Academy, system-ui, sans-serif;
 }
 [data-contact-panel][hidden] { display: none; }
 .contact-panel-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 15px 16px 12px;
  border-bottom: 1px solid #8ee7cc45;
 }
 .contact-panel-head::after {
  content: "";
  position: absolute;
  inset: auto auto -1px 16px;
  width: 44px;
  height: 1px;
  background: #9dffdd;
  box-shadow: 0 0 8px #80ffdfb0;
 }
 .contact-panel-head small {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #b4e6da;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
 }
 .contact-panel-head small i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #95ffe1; box-shadow: 0 0 8px #95ffe1;
 }
 .contact-panel-head h2 { margin: 3px 0 0; color: #f0fff8; font-size: 21px; line-height: 1.2; }
 .academy-contacts [data-contact-close] {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
  border: 1px solid #81dabb6e;
  border-radius: 12px;
  background: #c5ffec14;
  box-shadow: none;
  font: 25px/1 system-ui, sans-serif;
 }
 .contact-panel-list {
  min-height: 0;
  margin: 0;
  padding: 10px 12px 13px;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  list-style: none;
  display: grid;
  gap: 7px;
 }
 .contact-panel-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 12px;
  padding: 7px 9px;
  border: 1px solid #8debd137;
  border-radius: 12px;
  background: #a7ffe30b;
 }
 .contact-panel-person { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
 .contact-panel-person small { color: #b4e6da; font-size: 11px; line-height: 1.45; }
 .contact-panel-person strong { color: #f2fff8; font-size: 14px; line-height: 1.35; }
 .contact-panel-call {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 9px;
  background: #6effd323;
  color: #e2fff3;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
 }
 .contact-panel-call svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
 .contact-panel-call:hover, [data-contact-close]:hover { background: #a1ffe943; }
 :is(.contact-panel-call, [data-contact-close]):focus-visible { outline: 2px solid #a8ffe6; outline-offset: 2px; }
 .academy-distant-trees {
  position: absolute;
  display: block;
  z-index: 1;
  pointer-events: none;
  opacity: .64;
 }
 [data-scene-time=night] .academy-distant-trees { opacity: .34; }
 .academy-distant-canopies { animation: academy-canopy-breeze 14s ease-in-out -3s infinite alternate; }
 :scope.academy-hidden .academy-distant-canopies { animation-play-state: paused; }
 @media (prefers-reduced-motion: reduce) {
  .academy-distant-trees { display: none; }
 }
 @media (max-width:700px), (max-width:1000px) and (pointer:coarse) {
  :scope.portal-app.atelier.atelier-home .atelier-header .header-name {
   display: -webkit-box;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 2;
   max-width: min(60vw, 36ch);
   font-size: clamp(11px, 3.1vw, 13px);
   white-space: normal;
   overflow-wrap: anywhere;
  }
  .academy-distant-canopies { animation-duration: 17s; }
 }
}
@keyframes academy-canopy-breeze {
 from { transform: translateX(-.11px) skewX(-.025deg); }
 to { transform: translateX(.14px) skewX(.025deg); }
}
@scope (body[data-academy=home]) {
 .home-editor-trigger { margin: 8px 12px; width: max-content; min-height: 42px; }
 .home-editor-dialog {
  pointer-events: auto;
  touch-action: pan-y;
  width: min(620px, calc(100vw - 24px));
  max-height: min(85dvh, 750px);
  padding: 18px;
  border: 1px solid #8bdbc6;
  border-radius: 20px;
  background: #103941;
  color: #eafff6;
  overflow: auto;
  overscroll-behavior: contain;
 }
 .home-editor-dialog::backdrop { background: #062630b5; }
 .home-editor-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
 .home-editor-dialog h2 { margin: 0; color: #f3fff9; }
 .home-editor-dialog form, .home-editor-dialog fieldset, .home-editor-dialog label { display: grid; gap: 8px; min-width: 0; }
 .home-editor-dialog fieldset { margin: 8px 0; padding: 10px; border: 1px solid #69a898; border-radius: 12px; }
 .home-editor-dialog :is(input:not([type=hidden]), textarea) {
  width: 100%; padding: 8px; font: inherit; border: 1px solid #78ae9d;
  border-radius: 8px; color: #143831; background: #f2fbf5;
 }
 .home-editor-dialog button, .home-editor-articles a, .home-editor-trigger {
  border: 1px solid #78c9b2; border-radius: 9px; padding: 7px 10px; min-height: 40px;
  color: #f1fff9; background: #1a564f; font: inherit; text-decoration: none; cursor: pointer;
 }
 .news-content .home-editor-trigger { background: #115d49; color: #f5fff7; margin: 8px 0 0; }
 .home-editor-articles, .home-editor-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0; }
 .home-editor-articles a[aria-current] { background: #d5f6e3; color: #193b34; }
 .home-editor-dialog [data-home-contact-rows]:empty::before { content: 'Контактов пока нет'; }
}

/* Keep the fixed desktop reader viewport-relative by blurring a separate layer. */
body.atelier-home #academy-news-v21 {
 --news-glass: linear-gradient(150deg, #103b40e8, #071f2bf5 76%);
 --news-edge: #6fe5c580;
 --news-glow: inset 0 1px #c2fff22b, 0 0 20px #44e2b62b, 0 12px 32px #031b2a80;
 border-color: var(--news-edge);
 background: var(--news-glass);
 color: #e0f4ee;
 box-shadow: var(--news-glow);
}

body.atelier-home #academy-news-v21::before {
 content: "";
 position: absolute;
 inset: 0;
 z-index: -1;
 border-radius: inherit;
 backdrop-filter: blur(14px) saturate(125%);
 pointer-events: none;
}

body.atelier-home #academy-news-v21::after {
 content: "";
 position: absolute;
 top: -1px;
 left: 16px;
 width: 58px;
 height: 1px;
 background: linear-gradient(90deg, #9dffe2, transparent);
 box-shadow: 0 0 8px #62ffd79c;
 pointer-events: none;
}

body.atelier-home #academy-news-v21 .news-header {
 grid-template-columns: minmax(0, 1fr) auto;
}

body.atelier-home #academy-news-v21 .news-type {
 color: #a3f8d8;
 font-size: 9px;
 font-weight: 750;
 letter-spacing: .13em;
 text-transform: uppercase;
}

body.atelier-home #academy-news-v21 .news-type::before {
 content: "";
 display: inline-block;
 width: 5px;
 height: 5px;
 margin-inline-end: 7px;
 border-radius: 50%;
 background: currentColor;
 box-shadow: 0 0 8px #68ffd8;
 vertical-align: .12em;
}

body.atelier-home #academy-news-v21 .news-header h2 {
 color: #f1fff9;
 font-size: 14px;
 font-weight: 750;
 line-height: 1.35;
 overflow-wrap: anywhere;
}

body.atelier-home #academy-news-v21 :is(.news-toggle, .home-editor-trigger) {
 width: auto;
 border: 1px solid #70d8be80;
 border-radius: 10px;
 background: linear-gradient(160deg, #1a5653, #103c44);
 color: #e9fff7;
 font: 700 11px/1.25 Manrope, system-ui, sans-serif;
}

body.atelier-home #academy-news-v21 .news-toggle:not([hidden]) {
 display: inline-flex;
 min-height: 40px;
 align-items: center;
 justify-content: center;
 gap: 7px;
}

body.atelier-home #academy-news-v21 .news-toggle::after {
 content: "";
 width: 6px;
 height: 6px;
 border: solid #a3f8d8;
 border-width: 0 1.5px 1.5px 0;
 transform: translateY(-2px) rotate(45deg);
}

body.atelier-home #academy-news-v21 .news-toggle[aria-expanded="true"]::after {
 transform: translateY(2px) rotate(225deg);
}

body.atelier-home #academy-news-v21 :is(.news-toggle, .home-editor-trigger):hover {
 border-color: #a3f8d8;
 background: #205e59;
}

body.atelier-home #academy-news-v21 :is(.news-toggle, .home-editor-trigger, .news-content):focus-visible {
 outline: 2px solid #a3f8d8;
 outline-offset: -3px;
}

body.atelier-home #academy-news-v21 .news-content {
 scrollbar-color: #67c9b0 #102f3b;
}

body.atelier-home #academy-news-v21 .news-content p {
 color: #e0f4ee;
 line-height: 1.65;
}

body.atelier-home #academy-news-v21.news-reading .news-content {
 background: var(--news-glass);
 border-top: 1px solid var(--news-edge);
 box-shadow: var(--news-glow);
 backdrop-filter: blur(14px) saturate(125%);
}

@media (max-width: 700px), (max-width: 1000px) and (pointer: coarse) {
 body.atelier-home #academy-news-v21 .news-header {
  padding: 4px 10px;
 }
 body.atelier-home #academy-news-v21 .news-toggle:not([hidden]) {
  min-height: 44px;
 }
 body.atelier-home #academy-news-v21 .news-content:not([hidden]) {
  background: var(--news-glass);
  box-shadow: var(--news-glow);
  backdrop-filter: blur(14px) saturate(125%);
 }
}

