/* Orbit (includes/visuals/orbit.php): an art direction concept at the centre, its media floating around it */
.ob { position: relative; min-width: 0; }
.ob-params, .ob-media { list-style: none; margin: 0; padding: 0; }

/* the shared visual motif: forest ground, a low sun, a raking light */
.ob-motif { display: block; border-radius: 3px;
  background:
    linear-gradient(118deg, transparent 52%, rgba(184, 225, 205, .28) 52% 60%, transparent 60%),
    radial-gradient(circle at 74% 32%, var(--green) 0 13%, transparent 14%),
    linear-gradient(165deg, var(--forest-2), var(--forest) 70%); }
.ob-mock { position: relative; display: block; margin: 0 auto 10px; background: var(--white); border-radius: 6px; box-shadow: 0 14px 26px -16px rgba(12, 43, 21, .45), 0 0 0 1px rgba(12, 43, 21, .08); }
.ob-mock::after { content: ""; display: block; height: 10px; margin: 6px 0 0;
  background: linear-gradient(var(--line), var(--line)) 0 0 / 80% 3px no-repeat, linear-gradient(var(--line), var(--line)) 0 7px / 55% 3px no-repeat; }
.ob-mock--site { width: 100%; padding: 14px 7px 7px; }
.ob-mock--site::before { content: ""; position: absolute; top: 5px; left: 7px; width: 22px; height: 4px;
  background: radial-gradient(circle, #b9b3aa 0 1.6px, transparent 2px) 0 0 / 7px 4px repeat-x; }
.ob-mock--site .ob-motif { aspect-ratio: 16 / 7; }
.ob-mock--social { width: 64%; padding: 7px; }
.ob-mock--social::before { content: ""; display: block; height: 8px; margin-bottom: 6px;
  background: radial-gradient(circle at 4px 4px, var(--sage) 0 3.6px, transparent 4px) 0 0 / 8px 8px no-repeat, linear-gradient(var(--line), var(--line)) 12px 3px / 40% 3px no-repeat; }
.ob-mock--social .ob-motif { aspect-ratio: 1; }
.ob-mock--print { width: 50%; padding: 6px 6px 8px; border-radius: 2px; }
.ob-mock--print .ob-motif { aspect-ratio: 210 / 190; }
.ob-mock--print::after { height: 14px; background: linear-gradient(var(--forest), var(--forest)) 0 0 / 70% 4px no-repeat, linear-gradient(var(--line), var(--line)) 0 8px / 85% 3px no-repeat; }
.ob-mock--video { width: 100%; padding: 0; overflow: hidden; background: var(--ink); }
.ob-mock--video .ob-motif { aspect-ratio: 16 / 9; border-radius: 0; }
.ob-mock--video::before { content: ""; position: absolute; left: 50%; top: 40%; width: 0; height: 0; transform: translate(-30%, -50%);
  border-left: 13px solid var(--white); border-top: 8px solid transparent; border-bottom: 8px solid transparent; z-index: 1; }
.ob-mock--video::after { height: 3px; margin: 0;
  background: linear-gradient(var(--green), var(--green)) 0 0 / 38% 100% no-repeat, rgba(255, 255, 255, .25); }
.ob-mock--event { width: 38%; padding: 4px 4px 0; border-radius: 2px 2px 0 0; }
.ob-mock--event .ob-motif { aspect-ratio: 1 / 2.1; }
.ob-mock--event::after { height: 6px; margin: 4px -10px 0; border-radius: 2px; background: #7d8a80; }

.ob-m-t { margin: 0; font-weight: 600; font-size: 14.5px; line-height: 1.25; color: var(--forest); text-align: center; }
.ob-m-t span { display: block; margin-top: 2px; font-weight: 400; font-size: 12.5px; color: var(--ink-2); }

.ob-core { background: var(--forest); color: var(--white); text-align: center; }
.ob-core-l { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.ob-core-t { margin: 0; font-family: var(--font-serif); font-size: 22px; line-height: 1.18; }

.ob-p-in { display: block; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.ob-p-in strong { display: block; font-size: 13px; color: var(--forest); }

/* ---------- stage (wide screens): a square with two rings ---------- */
@media (min-width: 640px) {
  .ob { width: 100%; max-width: 680px; margin-inline: auto; aspect-ratio: 1; }
  .ob-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .ob-ring { fill: none; }
  .ob-ring--in { stroke: var(--line); stroke-width: .3; }
  .ob-ring--out { stroke: #7d8a80; stroke-width: .25; stroke-dasharray: .8 1.2; }
  .ob-spoke { stroke: var(--sage); stroke-width: .35; stroke-dasharray: 1 1.4; }
  .ob-moon { fill: var(--green-2); }
  .ob-moon--b { fill: var(--forest); }
  .ob-spin { transform-box: view-box; transform-origin: 50px 50px; }

  .ob-core { position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%;
    display: grid; place-content: center; padding: 0 5%; box-shadow: 0 0 0 10px rgba(150, 248, 120, .12), 0 0 0 22px rgba(150, 248, 120, .06); }
  .ob-core-t { font-size: 19px; font-size: clamp(15px, 1.5vw, 23px); }

  .ob-p, .ob-m { position: absolute; translate: -50% -50%; }
  .ob-p { width: 19%; text-align: center; }
  .ob-p-in { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 7px; font-size: 11.5px; }
  .ob-p-in strong { font-size: 12.5px; }
  /* inner ring r = 27, slots between the media (-54, 18, 90, 162, 234 degrees) */
  .ob-p--1 { left: 65.9%; top: 28.2%; }
  .ob-p--2 { left: 75.7%; top: 58.3%; }
  .ob-p--3 { left: 50%; top: 77%; }
  .ob-p--4 { left: 24.3%; top: 58.3%; }
  .ob-p--5 { left: 34.1%; top: 28.2%; }

  .ob-m { width: 23%; }
  /* outer orbit r = 40 (-90, -18, 54, 126, 198 degrees) */
  .ob-m--1 { left: 50%; top: 10%; }
  .ob-m--2 { left: 88%; top: 37.6%; }
  .ob-m--3 { left: 73.5%; top: 82.4%; }
  .ob-m--4 { left: 26.5%; top: 82.4%; }
  .ob-m--5 { left: 12%; top: 37.6%; }
  .ob-m-t { width: max-content; max-width: 220px; margin-left: 50%; translate: -50% 0; padding: 2px 8px 3px; border-radius: 6px; background: var(--white); font-size: 13.5px; font-size: clamp(12.5px, 1.05vw, 15px); }
  .section--paper .ob-m-t { background: var(--paper); }
  .ob-m-t span { font-size: 12px; }
  .section--paper .ob-p-in { border-color: transparent; }
}
@media (min-width: 640px) and (max-width: 1199px) {
  .ob-m-t span { display: none; }
}

/* ---------- phones: stacked ---------- */
@media (max-width: 639px) {
  .ob-rings { display: none; }
  .ob-core { border-radius: var(--radius); padding: 22px 20px; }
  .ob-params { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 22px; }
  .ob-p { background: var(--paper); border-radius: var(--radius-sm); padding: 10px 12px; }
  .section--paper .ob-p { background: var(--white); }
  .ob-p--5 { grid-column: 1 / -1; }
  .ob-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; align-items: end; }
  .ob-m--5 { grid-column: 1 / -1; }
  .ob-m--5 .ob-mock--event { width: 18%; }
}

/* animation: the concept appears, rings draw, the partis pris settle, then the media leave the centre for
   their orbit and float gently; a small moon travels on the outer orbit */
.js .vz-figure .ob-core { opacity: 0; scale: .7; transition: opacity .6s ease .1s, scale .9s cubic-bezier(.2, .7, .2, 1) .1s; }
.js .vz-figure .ob-ring--in { stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s ease .3s; }
.js .vz-figure .ob-ring--out { opacity: 0; transition: opacity 1s ease .6s; }
.js .vz-figure .ob-spokes, .js .vz-figure .ob-spin { opacity: 0; transition: opacity .8s ease 1.6s; }
.js .vz-figure .ob-p-in { opacity: 0; transform: scale(.8); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .vz-figure .ob-p--1 .ob-p-in { transition-delay: .6s; }
.js .vz-figure .ob-p--2 .ob-p-in { transition-delay: .7s; }
.js .vz-figure .ob-p--3 .ob-p-in { transition-delay: .8s; }
.js .vz-figure .ob-p--4 .ob-p-in { transition-delay: .9s; }
.js .vz-figure .ob-p--5 .ob-p-in { transition-delay: 1s; }
.js .vz-figure .ob-m-fly { opacity: 0; transition: opacity .6s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js .vz-figure .ob-m--1 .ob-m-fly { transform: translate(0, 90%) scale(.5); transition-delay: 1.1s; }
.js .vz-figure .ob-m--2 .ob-m-fly { transform: translate(-80%, 30%) scale(.5); transition-delay: 1.25s; }
.js .vz-figure .ob-m--3 .ob-m-fly { transform: translate(-50%, -70%) scale(.5); transition-delay: 1.4s; }
.js .vz-figure .ob-m--4 .ob-m-fly { transform: translate(50%, -70%) scale(.5); transition-delay: 1.55s; }
.js .vz-figure .ob-m--5 .ob-m-fly { transform: translate(80%, 30%) scale(.5); transition-delay: 1.7s; }

.js .vz-figure.is-visible .ob-core { opacity: 1; scale: 1; }
.js .vz-figure.is-visible .ob-ring--in { stroke-dashoffset: 0; }
.js .vz-figure.is-visible .ob-ring--out { opacity: 1; }
.js .vz-figure.is-visible .ob-spokes, .js .vz-figure.is-visible .ob-spin { opacity: 1; }
.js .vz-figure.is-visible .ob-p-in { opacity: 1; transform: none; }
.js .vz-figure.is-visible .ob-m-fly { opacity: 1; transform: none; }
.vz-figure.is-visible .ob-spin { animation: ob-spin 48s linear 2s infinite; }
.vz-figure.is-visible .ob-spoke { animation: ob-flow 2.4s linear 2.4s infinite; }
.vz-figure.is-visible .ob-m-float { animation: ob-float 6s ease-in-out 3s infinite; }
.vz-figure.is-visible .ob-m--2 .ob-m-float { animation-delay: 3.8s; }
.vz-figure.is-visible .ob-m--3 .ob-m-float { animation-delay: 4.6s; }
.vz-figure.is-visible .ob-m--4 .ob-m-float { animation-delay: 3.4s; }
.vz-figure.is-visible .ob-m--5 .ob-m-float { animation-delay: 4.2s; }
@keyframes ob-spin { to { transform: rotate(360deg); } }
@keyframes ob-flow { to { stroke-dashoffset: -4.8; } }
@keyframes ob-float { 0%, 100% { transform: none; } 50% { transform: translateY(-6px); } }
@media (max-width: 639px) {
  .js .vz-figure .ob-m-fly { transform: translateY(20px) !important; }
  .js .vz-figure.is-visible .ob-m-fly { transform: none !important; }
  .vz-figure.is-visible .ob-m-float { animation: none; }
}
